[Nut-upsuser] Problems with usbhid-ups and CyberPower CP1500 on 2.6.0
clepple at gmail.com
Thu Mar 17 01:19:13 UTC 2011
On Wed, Mar 16, 2011 at 5:02 PM, Cheetah <fastcat at gmail.com> wrote:
> On 3/15/2011 6:22, Charles Lepple wrote:
>> On Mar 14, 2011, at 1:20 AM, Cheetah wrote:
>>> If I run it under strace, the ioctls on the /dev/bus/usb file descriptor
>>> preceeding each "operation not permitted" error return 0, not an error code
>>> such as EPERM.
>> That seems strange. Would you please compress and send the strace output
>> (without "-u root")?
Looks like Ubuntu fixed 2.4.3 here:
That was committed to NUT here:
This breaks reading larger reports, so it was reverted:
This patch (committed after 2.6.0 was released) claims to restore
Arjen: do we actually have any cases of reports larger than 8 bytes?
If so, should we mark this as a quirk for CyberPower devices? Also, it
seems like we need to distinguish between returning 0 and <0 from the
libusb call. Currently, we are reading errno when a zero-length packet
is being read.
- Charles Lepple
More information about the Nut-upsuser