[Bug 915985] [NEW] usbhid-ups regression (APC BE525-RS)

Arnaud Quette aquette.dev at gmail.com
Fri Jan 13 14:05:18 UTC 2012


Hi Dmitry,

2012/1/13 Dmitry Andreychuk
> Public bug reported:
>
> Ubuntu 11.10
> nut 2.6.1-2ubuntu2
> UPS model: APC Back-UPS ES 525 (BE525-RS)
> driver: usbhid-ups
>
> I get the following error approximately every 30 seconds:
> usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 161 rq 1 len 2 ret -75
> The simalar error is described in the driver's known issues but increasing pollinterval doesn't help - the interval between error messages just increases accordingly.
> I also noticed that battery.charge returned by upsc doesn't change when the UPS is actually discharging. I called upsc, unplugged UPS and called upsc again after a while: ups.status, battery.runtime and input.voltage reasonably changed but battery.charge stayed at 100%. So maybe the retreiving of this variable is working incorrectly.

as per your provided log, both issues are related:
errno -75 is "EOVERFLOW" ("Value too large for defined data type").

We can see 1 successful retrieval of battery. charge (HID path:
UPS.PowerSummary.RemainingCapacity, ReportID: 0x0c), obtained through
the interrupt pipe (ie, not requested explicitly, but sent by the
device itself, upon change)

All other request are failing, with EOVERFLOW, which should mean a
fault from the device (sending more data than it should

> I've tested a few other versions and got this:
> 2.4.3-1ubuntu3.1 - ok
> 2.6.0-1ubuntu3 - ok
> 2.6.1-2ubuntu2 - error
> 2.6.2-1ubuntu1 - error
> 2.6.3 (upstream) - error. Actually I didn't manage to run daemon that I built from source, so I ran just the driver and it reported the same error.

could you please send an output from a working version (preferably
2.6.0)?

cheers,
Arnaud
-- 
Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/915985

Title:
  usbhid-ups regression (APC BE525-RS)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/915985/+subscriptions



More information about the Ubuntu-server-bugs mailing list