Hi Rodrigo,<br><br><div><span class="gmail_quote">2006/7/13, Rodrigo Ventura &lt;<a href="mailto:yoda@isr.ist.utl.pt">yoda@isr.ist.utl.pt</a>&gt;:</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>&gt; &gt; Assuming that MxPS means max packet size, it seems to be 8, which is<br>&gt; &gt; lower than 20, and therefore it looks like the EINVAL error comes from<br>&gt; &gt; there. Am I going in the right direction this time?
<br>&gt;<br>&gt; your guess seems right.<br>&gt; The best to validate your guess is to modify the 20 to 8 in get_interrupt()<br>&gt; and to recompile nut.<br>&gt;<br>&gt; 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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sat Jul&nbsp;&nbsp;8 00:31:34 2006<br>+++ libhid.c&nbsp;&nbsp;&nbsp;&nbsp;Sat Jul&nbsp;&nbsp;8 00:34:38 2006<br>@@ -645,7 +645,7 @@<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;upsdebugx(2, &quot;Waiting for notifications...&quot;);
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* needs libusb-0.1.8 to work =&gt; use ifdef and autoconf */<br>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ((size = libusb_get_interrupt(udev, &amp;buf[0], 20, 5000)) &gt; -1)<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ((size = libusb_get_interrupt(udev, &amp;buf[0], 8, 5000)) &gt; -1)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dump_hex (&quot;Notification&quot;, 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 (&quot;No such device or address&quot;) 
<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&amp;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>