[Nut-upsdev] Bug/Patch for NUT 2.6.0 ; usbhid-ups (libhid.c)

Richard Gerth r.gerth.phd at gmail.com
Thu Feb 10 21:55:45 UTC 2011


On Thu, Feb 10, 2011 at 1:51 PM, Arjen de Korte <nut+devel at de-korte.org> wrote:
[...]
>
> I'd like to know which version of libusb you're using (native libusb-0.1 or
> a wrapper around libusb-1.0) and which OS you're using. Furthermore, some
> debug output at level 5 (-DDDDD) to show as much information as possible
> what happens around the time this triggers an error. If the syslog shows
> something, that might help too.
>
> Best regards, Arjen
> --

I'm using openSUSE 11.2
My usblibs are thus:

bach:/usr/lib # ls -l libusb*
lrwxrwxrwx 1 root root    19 Jan 11  2010 libusb-0.1.so.4 ->
libusb-0.1.so.4.4.4*
-rwxr-xr-x 1 root root 17940 Oct 23  2009 libusb-0.1.so.4.4.4*
lrwxrwxrwx 1 root root    19 Jan 11  2010 libusb-1.0.so -> libusb-1.0.so.0.0.0*
lrwxrwxrwx 1 root root    19 Jan 11  2010 libusb-1.0.so.0 ->
libusb-1.0.so.0.0.0*
-rwxr-xr-x 1 root root 50884 Oct 23  2009 libusb-1.0.so.0.0.0*
lrwxrwxrwx 1 root root    19 Jan 11  2010 libusb.so -> libusb-0.1.so.4.4.4*

My computer's package manager says I have installed:  libusb 1.0  and
a compatibility layer libusb-1_1-4

What would be the best way to provide the debug logs to you?   The
first 5 seconds with -DDDDD yields about 1000 lines.   I have two logs
-- one with each form of the call to     r =
comm_driver->get_report(udev, id, buf, sizeof(buf));   so you can see
the difference.   Much of it is repetitive, but if I just cut/paste a
few lines for you, I might leave out something that I don't recognize
as important.

In both cases, there are no entries in the system log
(/var/log/messages, in my case).

I don't know if this is of interest, but the configure command I used is:
./configure --prefix=/usr/local/ups --sysconfdir=/etc/ups
--with-user=upsd --with-group=nut
and the resulting lines involving usb are:
.
.
checking for libusb version via pkg-config... 0.1.12 found
checking for libusb cflags...
checking for libusb ldflags... -lusb
checking for usb.h... yes
checking for usb_init... yes
checking for usb_detach_kernel_driver_np... yes
.
.

Regards,
Richard Gerth



More information about the Nut-upsdev mailing list