[Nut-upsdev] newhidups... at last.
Patrick Agrain
patrick.agrain at alcatel.fr
Fri Jan 13 08:43:03 UTC 2006
At 06:17 13/01/2006, Peter Selinger wrote:
Dear Patrick,
> [root at xa000000 002]# /sbin/newhidups -a ups_on_usb -DDDDD
> ...
> Unable to get HID descriptor (error sending control message: Device or
> resource busy)
you need to pass the "-u root" option to newhidups (for testing
purposes, to prevent NUT from dropping root privileges).
Once this works (and only if it works!), then you need to set up
hotplugging, so that the device /proc/bus/usb/xxx/yyy is automatically
assigned to the NUT user (not root). See scripts/hotplug/README.
-- Peter
Thanks Peter for your interest.
Your webpage was a good entry point for knowledge about newhidups.
I removed all concerning hotplug and reboot the system without any USB cable.
The plug the UPS cable ( detection is OK, /proc/bus/usb/devices is OK.
002/002 is owned by root:root now ).
Launch your command ... and unfortunately get the same ouput :
<...>
Checking device (0463/FFFF) (002/002)
- VendorID: 0463usbdevfs: process 597 (newhidups) did not claim interface 0
before use
- ProductID: ffff
- Manufacturer: MGE
- Product: ELLIPSE
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
failed to claim USB device...
Unable to get HID descriptor (error sending control message: Device or
resource busy)
<...>
In the meantime, Arnaud told me about an unbind problem due to my kernel
version (too old). To be followed.
Regards,
Patrick Agrain
More information about the Nut-upsdev
mailing list