Charles,<br><br>Sorry for delay.  Some answers follow<br><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 9:36 PM, Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Sat, Jun 25, 2011 at 7:15 PM, Martin Ewing <<a href="mailto:martin.s.ewing@gmail.com" target="_blank">martin.s.ewing@gmail.com</a>> wrote:<br>
><br>
> On Sat, Jun 25, 2011 at 5:48 PM, Charles Lepple <<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>> wrote:<br>
>><br>
>> On Jun 24, 2011, at 8:50 PM, Martin Ewing wrote:<br>
>><br>
>>> I had been using NUT's Ubuntu package (64 bit) with no problems until<br>
>>> upgrading to Ubuntu 11.04.<br>
>><br>
>> What was the previous NUT package version?<br>
<br>
</div>^^^ Previous question still stands. Is there an upgrade log<br>
(/var/log/dpkg.log or similar) which mentions the old .deb version?<br></blockquote><div><br>Previous version from dpkg.log appears to have been nut  2.4.3-1ubuntu5 (Ubuntu 10.10 Maverick) ... now 2.6.0-1ubuntu3 (Ubuntu 11.04 Natty).<br>


</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div><br>
>> If I have time later this weekend, I'll swap out that UPS for one which<br>
>> uses the usbhid-ups driver and see if I can reproduce the problem.<br>
<br>
</div>I seem to have hardware problems with the UPS which is compatible with<br>
that driver, so I can't test with usbhid-ups.<br>
<div><br>
> Device:<br>
> $ ls -l /dev/bus/usb/006/001<br>
> crw-rw-r-- 1 root root 189, 640 2011-06-24 18:29 /dev/bus/usb/006/001<br>
><br>
> Not in group nut.<br>
<br>
</div>I think that part might be a bug in Ubuntu's combination of NUT and<br>
udev (at some point, udev changed the way it matches USB devices). Are<br>
there any messages from udev in syslog?<br></blockquote><div><br>I tend to agree.  Here is what is happening as I see it now.  Immediately after boot, no UPS attached, I see<br>$ ls -l /dev/usb<br>total 0<br>crw------- 1 root root 180, 96 2011-07-01 13:30 hiddev0<br>

crw-rw---- 1 root lp   180,  0 2011-07-01 13:30 lp0<br><br>I have a wireless connected USB keyboard/mouse and an HP printer attached, along with a QuickCam:<br>~$ lsusb<br>Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>

Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>

Bus 003 Device 003: ID 03f0:0317 Hewlett-Packard LaserJet 1200<br>Bus 003 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser<br>Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 002 Device 003: ID 046d:09a1 Logitech, Inc. QuickCam Communicate MP/S5500<br>

Bus 002 Device 002: ID 058f:6364 Alcor Micro Corp. <br>Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br>Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br><br>Now, I plug in the UPS:<br>Bus 006 Device 002: ID 050d:1100 Belkin Components <br>

<br>And in /dev/usb:<br>$ ls -l /dev/usb<br>total 0<br>crw------- 1 root root 180, 96 2011-07-01 13:30 hiddev0<br>crw------- 1 root root 180, 97 2011-07-01 13:35 hiddev1<br>crw-rw---- 1 root lp   180,  0 2011-07-01 13:30 lp0<br>

<br>Note hiddev1 is not in nut group.<br><br>Syslog has this:<br>Jul  1 13:35:57 gimli kernel: [  370.566651] usb 6-1: new low speed USB device using uhci_hcd and address 2<br>Jul  1 13:35:57 gimli kernel: [  371.024582] generic-usb 0003:050D:1100.0004: hiddev0,hidraw2: USB HID v1.11 Device [Belkin  Belkin UPS] on usb-0000:00:1d.0-1/input0<br>

<br>Note that hiddev0 is mentioned, but hiddev1 is created.  Is that right? (I don't know much about udev or usb!) It does create hidraw2.<br><br>[At boot time, we had the following in syslog:<br>logitech 0003:046D:C517.0002: input,hiddev0,hidraw1: USB HID v1.10 Mouse [Logitech USB Receiver] on usb-0000:00:1a.0-1/input1<br>
So hiddev0 / hidraw1 is the Logitech mouse/keyboard.]<br><br>In /dev I see:<br>$ ls -l /dev/hid*<br>crw------- 1 root root 251, 0 2011-07-01 13:30 /dev/hidraw0<br>crw------- 1 root root 251, 1 2011-07-01 13:30 /dev/hidraw1<br>

crw------- 1 root root 251, 2 2011-07-01 13:35 /dev/hidraw2<br><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<div><div></div><div><br>
> But I tried one more thing.  I powered down the UPS completely and restarted<br>
> everything.  (I wondered if the Belkin's USB was hung up.)  Now, I get<br>
> something different:<br>
><br>
> $ sudo /lib/nut/usbhid-ups -a mybelkin<br>
> Network UPS Tools - Generic HID driver 0.35 (2.6.0)<br>
> USB communication driver 0.31<br>
> Using subdriver: Belkin HID 0.12<br>
> libusb_get_report: error sending control message: Operation not permitted<br>
> libusb_get_report: error sending control message: Operation not permitted<br>
> Can't initialize data from HID UPS<br>
><br>
> and<br>
> $ ls -l /dev/usb<br>
> total 0<br>
> crw------- 1 root root 180, 96 2011-06-25 18:58 hiddev0<br>
> crw-rw---- 1 root lp   180,  0 2011-06-25 18:58 lp0<br>
> martin@gimli:~$ ls -l /dev/bus/usb/006/001<br>
> crw-rw-r-- 1 root root 189, 640 2011-06-25 18:58 /dev/bus/usb/006/001<br>
><br>
> If I try -u root<br>
> $ sudo /lib/nut/usbhid-ups -a mybelkin -u root<br>
> Network UPS Tools - Generic HID driver 0.35 (2.6.0)<br>
> USB communication driver 0.31<br>
> Using subdriver: Belkin HID 0.12<br>
> libusb_get_report: No error<br>
> libusb_get_report: No error<br>
> libusb_get_report: No error<br>
> libusb_get_report: No error<br>
> libusb_get_report: No error<br>
> libusb_get_report: No error<br>
> libusb_get_report: No error<br>
> ...<br>
<br>
</div></div>This was fixed in v2.6.1, or more specifically, in r2893:<br>
<br>
<a href="http://trac.networkupstools.org/projects/nut/changeset/2893" target="_blank">http://trac.networkupstools.org/projects/nut/changeset/2893</a><br>
<br>
Can you file a bug? A similar problem was filed here:<br>
<br>
<a href="https://bugs.launchpad.net/ubuntu/+source/nut/+bug/572262" target="_blank">https://bugs.aslaunchpad.net/ubuntu/+source/nut/+bug/572262</a><br>
<br>
and here:<br>
<br>
<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583371" target="_blank">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583371</a><br></blockquote><div><br>Will consider.<br>Thanks for help!<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
--<br>
<font color="#888888">- Charles Lepple<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Martin Ewing<br>Branford, Connecticut<br><a href="mailto:martin.s.ewing@gmail.com" target="_blank">martin.s.ewing@gmail.com</a><br>