[Nut-upsuser] usbhid-ups doesn't work after kernel/libs update

Andrew nitr0 at seti.kr.ua
Tue Nov 11 13:41:53 UTC 2014


Hi.
I use NUT on embedded system, and after update distro to fresh one I've 
got a non-working usbhid APC monitoring.

There's 2 troubles:
1) I/O error for root on usbhid device
2) Permissions error for nut user

Root log:

# /usr/bin/usbhid-ups -u root -DDDDDD -a infocom
Network UPS Tools - Generic HID driver 0.38 (5.1.2-beta1-28-g04cd334)
USB communication driver 0.32
    0.000000    send_to_all: SETINFO driver.parameter.port "auto"
    0.000040    debug level is '6'
    0.000095    upsdrv_initups...
    0.000781    Checking device (1D6B/0001) (007/001)
    0.000881    - VendorID: 1d6b
    0.000911    - ProductID: 0001
    0.000935    - Manufacturer: Linux 3.10.57-i686 ehci_hcd
    0.001000    - Product: EHCI Host Controller
    0.001050    - Bus: 007
    0.001075    Trying to match device
    0.001098    Device does not match - skipping
    0.001150    Checking device (1D6B/0001) (006/001)
    0.001242    - VendorID: 1d6b
    0.001271    - ProductID: 0001
    0.001295    - Manufacturer: Linux 3.10.57-i686 ehci_hcd
    0.001320    - Product: EHCI Host Controller
    0.001342    - Serial Number: 0000:00:13.2
    0.001379    - Bus: 006
    0.001402    Trying to match device
    0.001423    Device does not match - skipping
    0.001470    Checking device (1D6B/0001) (005/001)
    0.001532    - VendorID: 1d6b
    0.001560    - ProductID: 0001
    0.001581    - Manufacturer: Linux 3.10.57-i686 ehci_hcd
    0.001614    - Product: EHCI Host Controller
    0.001640    - Serial Number: 0000:00:12.2
    0.001661    - Bus: 005
    0.001685    Trying to match device
    0.001722    Device does not match - skipping
    0.001753    Checking device (1D6B/0001) (003/001)
    0.001814    - VendorID: 1d6b
    0.001848    - ProductID: 0001
    0.001871    - Manufacturer: Linux 3.10.57-i686 ehci_hcd
    0.001896    - Product: EHCI Host Controller
    0.001982    - Serial Number: 0000:00:12.2
    0.002006    - Bus: 003
    0.002030    Trying to match device
    0.002054    Device does not match - skipping
    0.002085    Checking device (1D6B/0002) (002/001)
    0.002149    - VendorID: 1d6b
    0.002216    - ProductID: 0002
    0.002239    - Manufacturer: Linux 3.10.57-i686 ehci_hcd
    0.002265    - Product: EHCI Host Controller
    0.002289    - Serial Number: 0000:00:13.2
    0.002309    - Bus: 002
    0.002335    Trying to match device
    0.002360    Device does not match - skipping
    0.002388    Checking device (1D6B/0002) (001/001)
    0.002500    - VendorID: 1d6b
    0.002529    - ProductID: 0002
    0.002550    - Manufacturer: Linux 3.10.57-i686 ehci_hcd
    0.002579    - Product: EHCI Host Controller
    0.002603    - Serial Number: 0000:00:12.2
    0.002630    - Bus: 001
    0.002683    Trying to match device
    0.002724    Device does not match - skipping
    0.002753    Checking device (051D/0002) (004/002)
    0.002789    Failed to open device, skipping. (Input/output error)
    0.002811    Checking device (1D6B/0001) (004/001)
    0.002958    - VendorID: 1d6b
    0.002985    - ProductID: 0001
    0.003010    - Manufacturer: Linux 3.10.57-i686 ehci_hcd
    0.003034    - Product: EHCI Host Controller
    0.003053    - Serial Number: 0000:00:13.2
    0.003082    - Bus: 004
    0.003108    Trying to match device
    0.003131    Device does not match - skipping
    0.003211    No appropriate HID device found
    0.003238    No matching HID UPS found

User log:
# /usr/bin/usbhid-ups -u nut -DDDDDD -a infocom
Network UPS Tools - Generic HID driver 0.38 (5.1.2-beta1-28-g04cd334)
USB communication driver 0.32
    0.000000    send_to_all: SETINFO driver.parameter.port "auto"
    0.000063    debug level is '6'
    0.000147    upsdrv_initups...
    0.000670    Checking device (1D6B/0001) (007/001)
    0.000735    Failed to open device, skipping. (Permission denied)
    0.000780    Checking device (1D6B/0001) (006/001)
    0.000810    Failed to open device, skipping. (Permission denied)
    0.000834    Checking device (1D6B/0001) (005/001)
    0.000906    Failed to open device, skipping. (Permission denied)
    0.000931    Checking device (1D6B/0001) (003/001)
    0.000966    Failed to open device, skipping. (Permission denied)
    0.001019    Checking device (1D6B/0002) (002/001)
    0.001047    Failed to open device, skipping. (Permission denied)
    0.001070    Checking device (1D6B/0002) (001/001)
    0.001105    Failed to open device, skipping. (Permission denied)
    0.001145    Checking device (051D/0002) (004/002)
    0.001171    Failed to open device, skipping. (Permission denied)
    0.001216    Checking device (1D6B/0001) (004/001)
    0.001255    Failed to open device, skipping. (Permission denied)
    0.001281    No appropriate HID device found
    0.001304    No matching HID UPS found

# ls -l /dev/bus/usb/004
crw-rw----    1 root     nut       189, 128 Nov 11 14:53 001
crw-rw----    1 root     nut       189, 129 Nov 11 08:56 002


libusb 1.0.19, lubusb-compat 0.1.5, nut 2.7.2



More information about the Nut-upsuser mailing list