Hello, all,
I had been using NUT's Ubuntu package (64 bit) with no problems until
upgrading to Ubuntu 11.04. 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
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
Package information:
$ apt-cache showpkg nut
Package: nut
Versions:
2.6.0-1ubuntu3
(/var/lib/apt/lists/ubuntu.media.mit.edu_ubuntu_dists_natty_main_binary-amd64_Packages)
(/var/lib/dpkg/status)
Description Language:
File:
/var/lib/apt/lists/ubuntu.media.mit.edu_ubuntu_dists_natty_main_binary-amd64_Packages
MD5: 1bb170829951b1b6cfee27c4bdc599b8
Reverse Depends:
nut-xml,nut 2.2.2
collectd-core,nut
nut-snmp,nut 1.4.0
nut-snmp,nut 1.4.1-pre1
nut-cgi,nut 1.1.11
nut-cgi,nut
Dependencies:
2.6.0-1ubuntu3 - libc6 (2 2.4) libupsclient1 (2 2.4.1) libusb-0.1-4 (2
2:0.1.12) libwrap0 (2 7.6-4~) adduser (0 (null)) lsb-base (2 3.0-6) udev (2
136-1) nut-cgi (0 (null)) nut-snmp (0 (null)) nut-dev (0 (null)) nut-xml (0
(null)) bash-completion (0 (null)) nut-dev (3 2.2.2) nut-doc (0 (null))
nut-hal-drivers (0 (null)) nut-usb (3 2.1.0-3) ups-monitor (0 (null))
nut-doc (0 (null))
Provides:
2.6.0-1ubuntu3 - ups-monitor nut-usb nut-doc
Reverse Provides:
----------------------
So, what to try next? Do I have a udev problem?
Thanks for any pointers.
Martin
--
Martin Ewing
Branford, Connecticut
martin.s.ewing at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110624/4dbff4f9/attachment.html>