[Nut-upsuser] USB problems

Charles Lepple clepple at gmail.com
Mon May 10 12:31:16 UTC 2010

On Mon, May 10, 2010 at 1:49 AM, James <bjlockie at lockie.ca> wrote:
> I was getting:
> "Can't claim USB device [0764:0501]: could not detach kernel driver from
> interface 0: Operation not permitted"
> so I manually installed the udev rules the source (I installed the Gentoo
> ebuild).
> I am now getting:
> #  upsdrvctl start
> Network UPS Tools - UPS driver controller 2.4.3
> Network UPS Tools - Generic HID driver 0.34 (2.4.3)
> USB communication driver 0.31
> Using subdriver: CyberPower HID 0.3
> libusb_get_report: could not claim interface 0: Device or resource busy
> Got disconnected by another driver: Device or resource busy
> Can't initialize data from HID UPS
> Driver failed to start (exit status=1)
> which seems a bit better.

This seems to be a recent regression. What kernel version are you using?

> $ lsusb
> Bus 002 Device 005: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
> The udev rule is:
> #  Dynex DX-800U?  - usbhid-ups
> ATTR{idVendor}=="0764", ATTR{idProduct}=="0501", MODE="664", GROUP="nobody"

Can you also post the output from 'lsusb -vvv -d0764:', preferably run as root?

The vendor name from lsusb (without -v) is usually a good guess, but
often it is the name of the OEM (lsusb looks that up in a static
number-to-name mapping file). The product and vendor strings returned
by 'lsusb' with one or more '-v' flags are usually customized to match
the name printed on the unit.

- Charles Lepple

More information about the Nut-upsuser mailing list