On Fri, Feb 14, 2014 at 04:26:07PM +0100, Martin Pieuchot wrote: > > Hello Andre, > > On 14/02/14(Fri) 14:07, Andre de Oliveira wrote: > > hello. > > > > blambert@ suggested me to write a driver for exposing usb-based > > uninterruptable power systems devices data as sysctl(8) sensors, thus > > enabling people to write "shutdown policies" using sensorsd(8), which > > can replaces apcupsd in some cases. > > > > I received some feedback from reyk@ and blambert@, hope it's now ok for > > tech@ comments. > > I'll take more time to review your driver, it looks good. One thing > for the moment, could you try to use usbd_get_report() and not rewrite > your own version here ? :)
Martin, thanks for this tip. I was in the hope of get more feedback from "usb-skilled" people posting to tech. I still couldn't realize how to properly use the hid-dev API without attaching it to uhidev(4). Currently upd(4) attaches to uhub(4) due to my lack of skill to make it attaches to uhidev(4) correctly. I will summarize the problems I faced and a list of questions for you, thanks in advance. -a