[Nut-upsuser] Belkin F6C1200-UNV on Ubuntu 11.04
Martin Ewing
martin.s.ewing at gmail.com
Sat Jun 25 23:15:55 UTC 2011
On Sat, Jun 25, 2011 at 5:48 PM, Charles Lepple <clepple at gmail.com> wrote:
> 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.
>
Charles,
Tried -u root -- different response, but still not right:
$ sudo /lib/nut/usbhid-ups -a mybelkin -u root
Network UPS Tools - Generic HID driver 0.35 (2.6.0)
USB communication driver 0.31
Using subdriver: Belkin HID 0.12
libusb_get_report: could not claim interface 0: Device or resource busy
libusb_get_report: could not claim interface 0: Device or resource busy
Got disconnected by another driver: Device or resource busy
Can't initialize data from HID UPS
Device:
$ ls -l /dev/bus/usb/006/001
crw-rw-r-- 1 root root 189, 640 2011-06-24 18:29 /dev/bus/usb/006/001
Not in group nut.
But I tried one more thing. I powered down the UPS completely and restarted
everything. (I wondered if the Belkin's USB was hung up.) Now, I get
something different:
$ sudo /lib/nut/usbhid-ups -a mybelkin
Network UPS Tools - Generic HID driver 0.35 (2.6.0)
USB communication driver 0.31
Using subdriver: Belkin HID 0.12
libusb_get_report: error sending control message: Operation not permitted
libusb_get_report: error sending control message: Operation not permitted
Can't initialize data from HID UPS
and
$ ls -l /dev/usb
total 0
crw------- 1 root root 180, 96 2011-06-25 18:58 hiddev0
crw-rw---- 1 root lp 180, 0 2011-06-25 18:58 lp0
martin at gimli:~$ ls -l /dev/bus/usb/006/001
crw-rw-r-- 1 root root 189, 640 2011-06-25 18:58 /dev/bus/usb/006/001
If I try -u root
$ sudo /lib/nut/usbhid-ups -a mybelkin -u root
Network UPS Tools - Generic HID driver 0.35 (2.6.0)
USB communication driver 0.31
Using subdriver: Belkin HID 0.12
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
...
and now there is a process
3544 ? Ss 0:00 /lib/nut/usbhid-ups -a mybelkin -u root
I think I am understanding less and less!
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/20110625/9e006f40/attachment.html>
More information about the Nut-upsuser
mailing list