Hi Rodrigo,

2006/7/13, Rodrigo Ventura <[EMAIL PROTECTED]>:
On Friday 07 July 2006 20:42, Arnaud Quette wrote:
> > Assuming that MxPS means max packet size, it seems to be 8, which is
> > lower than 20, and therefore it looks like the EINVAL error comes from
> > there. Am I going in the right direction this time?
>
> your guess seems right.
> The best to validate your guess is to modify the 20 to 8 in get_interrupt()
> and to recompile nut.
>
> Let me know the result, and I'll fix that for 2.0.4-pre2 next week.

I did the following patch:

--- libhid.c.orig       Sat Jul  8 00:31:34 2006
+++ libhid.c    Sat Jul  8 00:34:38 2006
@@ -645,7 +645,7 @@
        upsdebugx(2, "Waiting for notifications...");

        /* needs libusb-0.1.8 to work => use ifdef and autoconf */
-       if ((size = libusb_get_interrupt(udev, &buf[0], 20, 5000)) > -1)
+       if ((size = libusb_get_interrupt(udev, &buf[0], 8, 5000)) > -1)
        {
                dump_hex ("Notification", buf, size);


but I can't interpret the result: instead of -22 error, I got
usbdevfs: usb_submit_urb returned -6

strange: -6 is ENXIO ("No such device or address")
that should definitly be a kernel bug.
if you have some time to submit it to their bug tracker, they might be interested in...

so I gave up and switched to a brand new gentoo server with kernel 2.6. All
seems to be working fine now. No dmesg stuff. Therefore, it definitely looks
like a kernel 2.4 problem (and/or uhci driver).

Anyway, in case you need further testing with the 2.4, please let me know what
you need me to do.

I don't have much to do apart from what has already been done.

Arnaud
--
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/
_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to