[Nut-upsuser] Re: tripp lite omnivs1500xl and usb

Bryan Olmstead olmstead at b2mail.net
Mon Aug 8 23:35:07 UTC 2005


>
>> ...
>> but, when i run newhidups this is what i get:
>>
>> [/usr/local/nut-2.0.2](10)# ./bin/newhidups -DDDDD auto
>> Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2)
>> ...
>> No USB/HID UPS found
>>
>>
>> from looking at the newhidups source i know that this ups isn't supported
>> yet, but it doesn't even print out the "manufacturer not supported"
>> message even though the vendor id 09ae matches.
>>
>> hopefully i haven't missed something obvious but i would really like to
>> help get this ups working with nut if it's possible.
>
> you should have miss the hotplug files installation.
> try "export USB_DEBUG=3", and you should get
> some "operation not permitted errors".
> For the solution, look at (search for hotplug):
> http://lists.alioth.debian.org/pipermail/nut-upsuser/2005-August/000110.html

yup, there were a lot of "operation not permitted" errors.  i've been 
working on it a lot and still stuck so i appreciate anymore advice.

ok, i have hotplug installed and the libhid files:

   marty[/etc/hotplug/usb](188)# ls -l
   total 12
   -rw-r--r--  1 root root 1304 Aug  8 18:28 libhid.usermap
   -rwxr-xr-x  1 root root  478 Aug  8 18:27 libhidups
   -rw-r--r--  1 root root  488 Aug  8 18:27 libhidups.in


and, just for grins, i also added a line for tripplite to the 
libhid.usermap file:

   # This file is installed by the libhid Debian package.
   #
   [snip]
   # MGE UPS SYSTEMS units
   libhidups      0x0003      0x0463   0xffff    0x0000       0x0000
   0x00         0x00            0x00            0x00            0x00
   0x00               0x00000000
   [snip]
   # TrippLite units
   libhidups      0x0003      0x09ae   0x0001    0x0000       0x0000
   0x00         0x00            0x00            0x00            0x00
   0x00               0x00000000


when i plug the ups in, this is what the kernel spits out in the logs 
(you'll notice it's plugged into a hub and not directly into the machine):

   kernel: hub 3-2:1.0: state 5 ports 4 chg 0000 evt 0002
   kernel: hub 3-2:1.0: port 1, status 0301, change 0001, 1.5 Mb/s
   kernel: hub 3-2:1.0: debounce: port 1: total 100ms stable 100ms status
 	0x301
   kernel: hub 3-2:1.0: port 1 not reset yet, waiting 10ms
   kernel: usb 3-2.1: new low speed USB device using ehci_hcd and address
 	20
   kernel: hub 3-2:1.0: port 1 not reset yet, waiting 10ms
   kernel: usb 3-2.1: skipped 1 descriptor after interface
   kernel: usb 3-2.1: default language 0x0409
   kernel: usb 3-2.1: new device strings: Mfr=1, Product=2, SerialNumber=0
   kernel: usb 3-2.1: Product: TRIPP LITE OMNIVS1500XL
   kernel: usb 3-2.1: Manufacturer: TRIPP LITE
   kernel: usb 3-2.1: hotplug
   kernel: usb 3-2.1: adding 3-2.1:1.0 (config #1, interface 0)
   kernel: usb 3-2.1:1.0: hotplug
   kernel: usbhid 3-2.1:1.0: usb_probe_interface
   kernel: usbhid 3-2.1:1.0: usb_probe_interface - got id
   kernel: drivers/usb/core/file.c: looking for a minor, starting at 96
   kernel: hiddev96: USB HID v1.00 Device [TRIPP LITE TRIPP LITE
 	OMNIVS1500XL       ] on usb-0000:00:02.2-2.1


everything looked good so far and hotplug says it's there which it didn't 
do before but...

   marty[/etc/hotplug/usb](191)# clear ; ./bin/newhidups -DDDDD auto
   Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2)

   debug level is '5'
   usb_set_debug: Setting debugging level to 3 (on)
   usb_os_init: Found USB VFS at /proc/bus/usb
   usb_os_find_busses: Found 003
   usb_os_find_busses: Found 002
   usb_os_find_busses: Found 001
   usb_os_find_busses: Skipping non bus directory devices
   usb_os_find_devices: Found 020 on 003
   skipped 1 class/vendor specific interface descriptors
   usb_os_find_devices: couldn't get connect info
   usb_os_find_devices: Found 010 on 003
   usb_os_find_devices: couldn't get connect info
   usb_os_find_devices: Found 009 on 003
   usb_os_find_devices: couldn't get connect info
   usb_os_find_devices: Found 003 on 003
   usb_os_find_devices: couldn't get connect info
   usb_os_find_devices: Found 001 on 003
   error obtaining child information: Inappropriate ioctl for device
   error obtaining child information: Operation not permitted
   error obtaining child information: Operation not permitted
   error obtaining child information: Operation not permitted
   error obtaining child information: Operation not permitted
   usb_os_find_devices: couldn't get connect info
   usb_os_find_devices: Found 001 on 002
   error obtaining child information: Operation not permitted
   usb_os_find_devices: couldn't get connect info
   usb_os_find_devices: Found 001 on 001
   error obtaining child information: Operation not permitted
   Opening new device (09AE/0001)
   Opening new device (03F0/1017)
   Opening new device (0409/0058)
   Opening new device (0409/0058)
   Opening new device (0000/0000)
   Opening new device (0000/0000)
   Opening new device (0000/0000)
   found 0 (-1)
   No USB/HID UPS found


i know i'm still missing something obvious here but it just isn't coming 
to mind.


> Lastly, as far as I remember, tripplite doesn't expose much data, and we 
> never succeeded in getting something from that:
> http://lists.alioth.debian.org/pipermail/nut-upsuser/2005-July/000047.html
>
> As always, my recommendation is... MGE!

thanks for the info.  i'll have to keep this in mind next time i'm looking 
for a ups.

-bryan

----------------------------
Bryan Olmstead
http://www.tr1tium.com




More information about the Nut-upsuser mailing list