[Nut-upsdev] FreeBSD + nut usbhid-ups

Charles Lepple clepple at gmail.com
Mon Aug 13 11:21:49 UTC 2012


On Mon, Aug 13, 2012 at 6:03 AM, Sergey Samoyloff <gonzahq at gmail.com> wrote:
> root at hq: # /usr/local/libexec/nut/usbhid-ups
> -DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD -a dell
> Network UPS Tools - Generic HID driver 0.37 (2.6.4)
> USB communication driver 0.31
> 0.000000 send_to_all: SETINFO driver.parameter.port "auto"
> 0.000057 debug level is '31'
> 0.000996 upsdrv_initups...
> 0.001306 Checking device (0424/2514) (/dev/usb//dev/ugen1.4)
> 0.001381 - VendorID: 0424
> 0.001392 - ProductID: 2514
> 0.001398 - Manufacturer: unknown
> 0.001404 - Product: unknown
> 0.001410 - Serial Number: unknown
> 0.001416 - Bus: /dev/usb
> 0.001421 Trying to match device
> 0.001435 Device does not match - skipping
> 0.001456 No appropriate HID device found
> 0.001465 No matching HID UPS found

Even though you are starting the driver as root, it drops to the
unprivileged user selected by the configure script. So ugen1.4 is
probably the only device it can open.

Also note that the driver can only see the devices that libusb
enumerates. I don't know if the BSD libusb uses the USB_DEBUG
environment variable, but that might show more detail.

-- 
- Charles Lepple



More information about the Nut-upsdev mailing list