Hi Rodrigo,<br><br><div><span class="gmail_quote">2006/7/13, Rodrigo Ventura <<a href="mailto:yoda@isr.ist.utl.pt">yoda@isr.ist.utl.pt</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Friday 07 July 2006 20:42, Arnaud Quette wrote:<br>> > Assuming that MxPS means max packet size, it seems to be 8, which is<br>> > lower than 20, and therefore it looks like the EINVAL error comes from<br>> > there. Am I going in the right direction this time?
<br>><br>> your guess seems right.<br>> The best to validate your guess is to modify the 20 to 8 in get_interrupt()<br>> and to recompile nut.<br>><br>> Let me know the result, and I'll fix that for 2.0.4-pre2
next week.<br><br>I did the following patch:<br><br>--- libhid.c.orig Sat Jul 8 00:31:34 2006<br>+++ libhid.c Sat Jul 8 00:34:38 2006<br>@@ -645,7 +645,7 @@<br> upsdebugx(2, "Waiting for notifications...");
<br><br> /* needs libusb-0.1.8 to work => use ifdef and autoconf */<br>- if ((size = libusb_get_interrupt(udev, &buf[0], 20, 5000)) > -1)<br>+ if ((size = libusb_get_interrupt(udev, &buf[0], 8, 5000)) > -1)
<br> {<br> dump_hex ("Notification", buf, size);<br><br><br>but I can't interpret the result: instead of -22 error, I got<br>usbdevfs: usb_submit_urb returned -6</blockquote><div><br>strange: -6 is ENXIO ("No such device or address")
<br></div>that should definitly be a kernel bug.<br>if you have some time to submit it to their bug tracker, they might be interested in...<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
so I gave up and switched to a brand new gentoo server with kernel 2.6. All<br>seems to be working fine now. No dmesg stuff. Therefore, it definitely looks<br>like a kernel 2.4 problem (and/or uhci driver).<br><br>Anyway, in case you need further testing with the
2.4, please let me know what<br>you need me to do.<br></blockquote></div><br>I don't have much to do apart from what has already been done.<br><br clear="all">Arnaud<br>-- <br>Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
<br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://people.debian.org/~aquette/">http://people.debian.org/~aquette/
</a><br>OpenSource Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</a>