2007/2/3, Joey Hess <[EMAIL PROTECTED]>:
Arnaud Quette wrote:
> back-ups rs usb are listed to work.
>
> the test to validate yours is:
> - having the right dev. perms (root:nut, 664)
> - stop nut if it was started
> - launch /lib/nut/newhidups -DD auto
> and send me back the output.
> If your unit isn't supported, you'll get a "No matching HID UPS found"
> Otherwise, everything works, and you can break this test and relaunch nut.
Checking device (051D/0002) (001/003)
- VendorID: 051d
- ProductID: 0002
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device matches
failed to claim USB device, trying 2 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
failed to claim USB device, trying 1 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
failed to claim USB device, trying 0 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
Unable to get HID descriptor (error sending control message: Operation not
permitted)
HID descriptor retrieved (Reportlen = 1217)
Unable to get Report descriptor (-1): Operation not permitted
that's really a privilege issue
the hiddev driver can't be unbound, nor the usb dev. addressed
[EMAIL PROTECTED]:~joey>ls -l /dev/usb
total 0
crw-rw-r-- 1 root nut 180, 96 Jan 30 19:06 hiddev0
crw-rw-r-- 1 root nut 180, 97 Jan 30 19:06 hiddev1
crw-rw-r-- 1 root nut 180, 98 Jan 30 19:06 hiddev2
crw-rw-rw- 1 root root 180, 254 Jan 30 19:08 iplc0
newhidups is libusb based.
so you need to look at /dev/bus/usb/<bus-num>/<dev-num>
with the above, you get: /dev/bus/usb/001/003
it must be root:nut 664
otherwise, try to unplug/replug your ups' usb cord, and retry
Arnaud
--
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]