On 05/10/10 22:09, Charles Lepple wrote:
On Mon, May 10, 2010 at 8:35 PM, James<bjloc...@lockie.ca> wrote:
On 05/10/10 14:37, Jason Englander wrote:
On Mon, 10 May 2010, James wrote:
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)
FYI, I got that error yesterday with NUT 2.4.3, kernel 2.6.33.3, and a
CyberPower CP1500AVRLCD using usbhid-ups and it seems fine after applying
this patch:
http://boxster.ghz.cc/projects/nut/changeset/2407?format=diff&new=2407
I applied the patch and it loaded the driver once. :-(
I had problems with starting upsd so I tried to fix it but I think the
driver crashed.
Now I can't restart it even after rebooting.
nut-2.4.3/drivers $ sudo ./usbhid-ups -a CP550SLG -D -D
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
0.000000 debug level is '2'
0.000408 upsdrv_initups...
0.000583 Checking device (0764/0501) (002/007)
0.000611 - VendorID: 0764
0.000617 - ProductID: 0501
0.000622 - Manufacturer: unknown
0.000626 - Product: unknown
0.000631 - Serial Number: unknown
0.000636 - Bus: 002
0.000640 Trying to match device
0.000655 Device matches
0.000663 failed to claim USB device: could not claim interface 0:
Operation not permitted
0.000671 failed to detach kernel driver from USB device: could not
detach kernel driver from interface 0: Operation not permitted
This error is different ("operation not permitted" versus "Device or
resource busy"). Is your source build using a different user than the
Gentoo build? (Some distributions have a specific NUT userid instead
of using "nobody" - not sure how they do it in Gentoo).
I'm compiling it with root but I followed the instructions (I think):
./configure --with-user=ups --with-group=nut
What user should perform the #8 step, /usr/local/ups/bin/upsdrvctl start
_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser