Bug#583371: nut: usbhid-ups failing to communicate with UPS (libusb_get_report: error sending control message)

2010-10-15 Thread Teodor MICU
Hi Arnaud,

Since the patch is only a 2 line diff [1], can you upload a targeted
fix with this patch for squeeze? I strongly believe that release team
will not object to this small fix which is also included in the
upstream source. Also, this bug is currently RC.

Thanks

[1]  http://boxster.ghz.cc/projects/nut/changeset/2407

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (100, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nut depends on:
ii  adduser  3.112   add and remove users and groups
ii  libc62.11.2-6Embedded GNU C Library: Shared lib
ii  libupsclient12.4.3-1+b1  network UPS tools - client library
ii  libusb-0.1-4 2:0.1.12-16 userspace USB programming library
ii  libwrap0 7.6.q-19Wietse Venema's TCP wrappers libra
ii  lsb-base 3.2-23.1Linux Standard Base 3.2 init scrip
ii  udev 160-1   /dev/ and hotplug management daemo

Versions of packages nut recommends:
ii  bash-completion   1:1.2-2programmable completion for the ba

Versions of packages nut suggests:
pn  nut-cgi   none (no description available)
pn  nut-dev   none (no description available)
pn  nut-snmp  none (no description available)
pn  nut-xml   none (no description available)

-- Configuration Files:
/etc/nut/nut.conf changed [not included]

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#583371: nut: usbhid-ups failing to communicate with UPS (libusb_get_report: error sending control message)

2010-05-27 Thread June Tate-Gans
Package: nut
Version: 2.4.3-1
Severity: grave
Tags: squeeze sid
Justification: renders package unusable


This problem seems identical to the issue previously reported in Ubuntu's BTS
at https://bugs.launchpad.net/ubuntu/+source/nut/+bug/572262. Here's the
shell transcript from my system, twix:

twix:~$ sudo 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: error sending control message: Operation not permitted
Can't initialize data from HID UPS
Driver failed to start (exit status=1)

twix:~$ cat /etc/nut/ups.conf
[cyberpower-ups]
driver = usbhid-ups
port = auto

I have tried unplugging/replugging the device, and I have also tried adjusting
the udev rules file to make my specific UPS (a CyberPower 1200 connected via
USB) show up as a mode 664 device owned by nut:nut. The only way I can start
the driver is by running it manually as root with the '-u root' flag. Here's
the output:

twix:~$ sudo /lib/nut/usbhid-ups -u root -a cyberpower-ups
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: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error
libusb_get_report: No error

twix:~$ ps ax |grep usbhid-ups
32014 ?Ss 0:00 /lib/nut/usbhid-ups -u root -a cyberpower-ups
32017 pts/1S+ 0:00 grep usbhid-ups

twix:~$ sudo /etc/init.d/nut stop
Stopping Network UPS Tools: driver(s) upsd upsmon.

twix:~$ sudo /lib/nut/usbhid-ups -a cyberpower-ups
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: error sending control message: Operation not permitted
Can't initialize data from HID UPS

It should also be noted that prior to this revision of NUT, I was running 2.4.1
and it worked perfectly (with some small bits of elbow grease to get the scripts
working smoothly).

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable'), (300, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nut depends on:
ii  adduser  3.112   add and remove users and groups
ii  libc62.10.2-9Embedded GNU C Library: Shared lib
ii  libupsclient12.4.3-1 network UPS tools - client library
ii  libusb-0.1-4 2:0.1.12-14 userspace USB programming library
ii  libwrap0 7.6.q-18Wietse Venema's TCP wrappers libra
ii  lsb-base 3.2-23.1Linux Standard Base 3.2 init scrip
ii  udev 154-1   /dev/ and hotplug management daemo

Versions of packages nut recommends:
ii  bash-completion   1:1.1-3programmable completion for the ba

Versions of packages nut suggests:
ii  nut-cgi   2.4.3-1network UPS tools - web interface
pn  nut-dev   none (no description available)
pn  nut-snmp  none (no description available)
pn  nut-xml   none (no description available)

-- Configuration Files:
/etc/nut/nut.conf changed [not included]
/etc/nut/ups.conf changed [not included]
/etc/nut/upsd.conf changed [not included]
/etc/nut/upsd.users changed [not included]
/etc/nut/upsmon.conf changed [not included]

-- debconf information:
  nut/major_upstream_changes:



-- 
To