Discussion:
[Nut-upsuser] New Tripplite UPS: INTERNET350U
Bossard
2014-06-13 20:45:42 UTC
Permalink
Hello,

I tried to the the driver 'usbhid-ups' for my Tripplite UPS Model:
INTERNET350U. I received the following error:

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

This TrippLite device (09ae:2010) is not (or perhaps not yet) supported

by usbhid-ups. Please make sure you have an up-to-date version of NUT. If

this does not fix the problem, try running the driver with the

'-x productid=2010' option. Please report your results to the NUT user's

mailing list <nut-upsuser at lists.alioth.debian.org>.


No matching HID UPS found

Driver failed to start (exit status=1)


So I tried 'usbhid-ups -x productid=2010' and received the same error.
--
Cya

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140613/3b34e9d1/attachment.html>
Charles Lepple
2014-06-14 00:59:46 UTC
Permalink
Post by Bossard
No matching HID UPS found
Driver failed to start (exit status=1)
So I tried 'usbhid-ups -x productid=2010' and received the same error.
Same exact error?

I suspect it's a permissions error the second time. Add "-u root" to the command line - since this was not a known VendorID:ProductID pair at release time, the udev/hotplug files don't adjust the permissions automatically, which can cause the "No matching HID UPS found error".

A better solution for the long term: you could copy one of the other 09ae:xxxx lines in your NUT udev configuration. (You'll need to unplug and re-plug the USB cable for it to take effect.)
--
Charles Lepple
clepple at gmail
Bossard
2014-06-15 00:06:10 UTC
Permalink
Hello Charles,

Thank you for your suggestion, however it didn't help. I was running it as
root but I went ahead and added the -u root anyways. Nothing changed. So
part or all the problem is that I don't have the "libhidups or
libhid.usermap" files that the man page talks about:

You also need to install manually the legacy hotplug files (libhidups and
libhid.usermap, generally in /etc/hotplug/usb/), or the udev file
(nut-usbups.rules, generally in /etc/udev/rules.d/) to address the
permission settings problem. For more information, refer to the README file
in nut/scripts/hotplug or nut/scripts/udev.

How can I get them and do I really need them?

I copied and modified "/lib/udev/rules.d/52-nut-usbups.rules" and added the
following:

e.g. TrippLite INTERNET350U - usbhid-ups

ATTR{idVendor}=="09ae", ATTR{idProduct}=="2010", MODE="664", GROUP="nut"


Thank you for your time and Patience
Post by Charles Lepple
Post by Bossard
No matching HID UPS found
Driver failed to start (exit status=1)
So I tried 'usbhid-ups -x productid=2010' and received the same error.
Same exact error?
I suspect it's a permissions error the second time. Add "-u root" to the
command line - since this was not a known VendorID:ProductID pair at
release time, the udev/hotplug files don't adjust the permissions
automatically, which can cause the "No matching HID UPS found error".
A better solution for the long term: you could copy one of the other
09ae:xxxx lines in your NUT udev configuration. (You'll need to unplug and
re-plug the USB cable for it to take effect.)
--
Charles Lepple
clepple at gmail
--
Cya

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140614/c3231648/attachment.html>
Charles Lepple
2014-06-15 14:19:14 UTC
Permalink
Post by Bossard
Hello Charles,
Thank you for your suggestion, however it didn't help. I was running it as root but I went ahead and added the -u root anyways.
The way to think about the "-u root" flag is "stay running as root". When started as root, NUT runs the drivers under an unprivileged system user ID (usually "nut", unless the "-u" flag is passed).

Unfortunately, if "-u root" did not make a difference, then the udev rules aren't going to help, either (they set up the permissions for the unprivileged "nut" user). Can you post the exact output of "usbhid-ups -u root -x productid=2010 -DD -a <UPS-name>"?
Post by Bossard
You also need to install manually the legacy hotplug files (libhidups and libhid.usermap, generally in /etc/hotplug/usb/), or the udev file (nut-usbups.rules, generally in /etc/udev/rules.d/) to address the permission settings problem. For more information, refer to the README file in nut/scripts/hotplug or nut/scripts/udev.
How can I get them and do I really need them?
udev replaced the functionality of hotplug (with different syntax), so if you are running udev, you don't need to worry about the hotplug files. Theoretically, the package for NUT should only include the relevant files for your distribution.

Since NUT 2.4.3 is getting a little old, I'm not entirely sure what Linux distribution you are running (and thus, whether we should be worrying about hotplug). Can you provide some more information on that? Distribution and version would be good; bonus points for versions of things like udev, libusb, the kernel, etc.
Post by Bossard
e.g. TrippLite INTERNET350U - usbhid-ups
ATTR{idVendor}=="09ae", ATTR{idProduct}=="2010", MODE="664", GROUP="nut"
Thank you for your time and Patience
Post by Bossard
No matching HID UPS found
Driver failed to start (exit status=1)
So I tried 'usbhid-ups -x productid=2010' and received the same error.
Same exact error?
I suspect it's a permissions error the second time. Add "-u root" to the command line - since this was not a known VendorID:ProductID pair at release time, the udev/hotplug files don't adjust the permissions automatically, which can cause the "No matching HID UPS found error".
A better solution for the long term: you could copy one of the other 09ae:xxxx lines in your NUT udev configuration. (You'll need to unplug and re-plug the USB cable for it to take effect.)
--
Charles Lepple
clepple at gmail
--
Cya
Eric
--
Charles Lepple
clepple at gmail



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140615/330fc27e/attachment.html>
Charles Lepple
2014-07-05 19:32:24 UTC
Permalink
Post by Bossard
Post by Charles Lepple
usbhid-ups -u root -x productid=2010 -DD -a <UPS-name>
Hello Charles,
(The output of:) /lib/nut/usbhid-ups -u root -x productid=2010 -DD -a tripplite
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
0.000000 debug level is '2'
0.000700 upsdrv_initups...
0.130746 Checking device (1D6B/0001) (005/001)
0.130824 - VendorID: 1d6b
0.130836 - ProductID: 0001
0.130845 - Manufacturer: Linux 2.6.32-5-686 uhci_hcd
^ What Linux distribution are you running?
Post by Bossard
0.148284 Checking device (09AE/2010) (002/113)
0.181081 - VendorID: 09ae
0.181104 - ProductID: 2010
0.181114 - Manufacturer: Tripp Lite
0.181124 - Product: Tripp Lite UPS
0.181135 - Serial Number: unknown
0.181145 - Bus: 002
0.181154 Trying to match device
0.181242 Device does not match - skipping
I really don't see how this could happen when specifying that productid option.

I don't remember any recent bug fixes that could cause things to work differently if you add "productid=2010" to the ups.conf file, but that was reported to work with 2.4.3 in this email:

http://lists.alioth.debian.org/pipermail/nut-upsuser/2011-March/006695.html

That email also confirms that the 2010 productid does, in fact, work out-of-the-box with 2.6.0.

Other than trying the ups.conf route, I would recommend getting a newer version of NUT (this version is over four years old), either through your distribution's "backports" system, or by building from source. Again, since you haven't mentioned what system you are running, I don't have any more specific recommendations than that.
--
Charles Lepple
clepple at gmail
Loading...