On Jun 24, 2011, at 8:50 PM, Martin Ewing wrote:
I had been using NUT's Ubuntu package (64 bit) with no problems
until upgrading to Ubuntu 11.04.
What was the previous NUT package version?
Now, I get the following message when I try usbhid-ups:
$ sudo /lib/nut/usbhid-ups -a mybelkin
Network UPS Tools - Generic HID driver 0.35 (2.6.0)
USB communication driver 0.31
Can't claim USB device [050d:1100]: could not detach kernel driver
from interface 0: Operation not permitted
Do you get the same error if you add "-u root" to the command line? If
so, there might be something other than filesystem permissions causing
this error.
ups.conf:
[mybelkin]
driver = usbhid-ups
port = auto
desc = "Belkin 1200 VA UPS"
The udev rule seems OK:
# F6C1100-UNV, F6C1200-UNV - usbhid-ups
ATTR{idVendor}=="050d", ATTR{idProduct}=="1100", MODE="664",
GROUP="nut"
Using udevadm monitor and plugging in the USB:
KERNEL[1308961682.706704] add /devices/pci0000:00/0000:00:1d.0/
usb6/6-1 (usb)
KERNEL[1308961682.709615] add /devices/pci0000:00/0000:00:1d.0/
usb6/6-1/6-1:1.0 (usb)
KERNEL[1308961682.709674] add /devices/pci0000:00/0000:00:1d.0/
usb6/6-1/6-1:1.0/0003:050D:1100.0007 (hid)
KERNEL[1308961682.979776] add /devices/pci0000:00/0000:00:1d.0/
usb6/6-1/6-1:1.0/usb/hiddev0 (usb)
KERNEL[1308961682.979802] add /devices/pci0000:00/0000:00:1d.0/
usb6/6-1/6-1:1.0/0003:050D:1100.0007/hidraw/hidraw0 (hidraw)
However, the usb devices are created in root group and without read
access to nut group.
$ ls -l /dev/usb
crw------- 1 root root 180, 96 2011-06-24 20:43 hiddev0
This device would disappear if the detach error hadn't occurred.
Around the time of the first udev event listed above, udev should have
created /dev/bus/usb/006/001, and that node should be owned by group
nut.
I just upgraded to 11.04, and the tripplite_usb driver did not have a
problem attaching to it. (This driver uses the same method of
detaching the kernel HID driver as usbhid-ups.)
If I have time later this weekend, I'll swap out that UPS for one
which uses the usbhid-ups driver and see if I can reproduce the problem.
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser