Hi, CyberPower CP1500AVRLCD Ubuntu Server 12.04, Nut installed with sudo apt-get install nut $ lsusb Bus 005 Device 002: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub At end of ups.conf I added: [cyberpower-1500] driver = usbhid-ups port = auto Tried this and got error message: $ sudo upsdrvctl start Network UPS Tools - UPS driver controller 2.6.3 Network UPS Tools - Generic HID driver 0.35 (2.6.3) USB communication driver 0.31 Can't claim USB device [0764:0501]: could not detach kernel driver from interface 0: Operation not permitted Driver failed to start (exit status=1) If there's any more info I can supply that would help please let me know. I searched, many have similar problem. Most posts cite a permissions problem. I tried adding a chmod to rc.local but it didn't work and I erased it form rc.local. I would be grateful if someone could help me please. Thanks. Also some dmesg output: [ 2388.220019] usb 5-2: new low-speed USB device number 2 using ohci_hcd [ 2388.394046] usb 5-2: New USB device found, idVendor=0764, idProduct=0501 [ 2388.394049] usb 5-2: New USB device strings: Mfr=3, Product=1, SerialNumber=0 [ 2388.394052] usb 5-2: Product: CP 1500C [ 2388.394054] usb 5-2: Manufacturer: CPS [ 2388.461142] usbcore: registered new interface driver usbhid [ 2388.461147] usbhid: USB HID core driver [ 2388.508201] hid-generic 0003:0764:0501.0001: hiddev0,hidraw0: USB HID v1.10 Device [CPS CP 1500C] on usb-0000:00:13.3-2/input0 -- http://www.fastmail.fm - The professional email service
Lee Gold <leegold at operamail.com> writes:> Ubuntu Server 12.04, Nut installed with sudo apt-get install nut > ... > Tried this and got error message: > Can't claim USB device [0764:0501]: could not detach kernel driver from > interface 0: Operation not permittedDid you reboot after installing the nut package? Just a couple days ago I connected up a USB UPS to a Red Hat machine, and then installed nut, and found that the kernel had already grabbed the device. Apparently nut's hotplug definition files have to be in place at boot time to prevent that. Maybe things work differently on Ubuntu, but it's worth a try. regards, tom lane
The reboot worked. Thank You! Now I get: $ sudo upsdrvctl start [sudo] password for wsadmin: Network UPS Tools - UPS driver controller 2.6.3 Network UPS Tools - Generic HID driver 0.35 (2.6.3) USB communication driver 0.31 Can't chdir to /var/run/nut: No such file or directory Driver failed to start (exit status=1) I'm going to do: mkdir /var/run/nut chown root:nut /var/run/nut chmod 770 /var/run/nut Is this right? Are the chmod permissions correct? Thanks again. ------ On Wed, Aug 7, 2013, at 12:25 PM, Tom Lane wrote:> Lee Gold <leegold at operamail.com> writes: > > Ubuntu Server 12.04, Nut installed with sudo apt-get install nut > > ... > > Tried this and got error message: > > Can't claim USB device [0764:0501]: could not detach kernel driver from > > interface 0: Operation not permitted > > Did you reboot after installing the nut package? Just a couple days ago > I connected up a USB UPS to a Red Hat machine, and then installed nut, > and found that the kernel had already grabbed the device. Apparently > nut's hotplug definition files have to be in place at boot time to > prevent > that. Maybe things work differently on Ubuntu, but it's worth a try. > > regards, tom lane-- http://www.fastmail.fm - Or how I learned to stop worrying and love email again