[Nut-upsdev] APC USB UPS vs FreeBSD 6.x
Arjen de Korte
nut+devel at de-korte.org
Sat May 30 19:49:30 UTC 2009
Citeren Arjen de Korte <nut+users op de-korte.org>:
>> Any ideas? The libusb support in 6.x is pretty crappy so maybe it's
>> that :(
>
> If it is very slow in timing out on the USB communication, that
> could be a problem. The following worries me:
>
> 1.272355 upsdrv_updateinfo...
> 30.839759 file_report_buffer: expected 4 bytes, but got 128!
>
> This means the HIDGetEvents() functions takes almost 30 seconds to
> return, where we expect it to return almost immediately. This means
> the interrupt pipeline is not being handled correctly. Since the
> driver stalls so long here, the server will give up on it. My first
> suggestion would be to check if upgrading libusb helps, possibly by
> trying it out on a more recent OS.
If the latter isn't feasible, you can also checkout the latest version
from the SVN trunk and add the 'pollonly' flag to ups.conf. This will
make the driver ignore the interrupt pipe, hopefully working around
this problem.
Best regards, Arjen
--
Please keep list traffic on the list
More information about the Nut-upsdev
mailing list