[Nut-upsuser] New Tripplite UPS: INTERNET350U
Charles Lepple
clepple at gmail.com
Sun Jun 15 14:19:14 UTC 2014
On Jun 14, 2014, at 8:06 PM, Bossard wrote:
> 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>"?
> 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?
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.
> 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
>
>
>
> On Fri, Jun 13, 2014 at 8:59 PM, Charles Lepple <clepple at gmail.com> wrote:
> On Jun 13, 2014, at 4:45 PM, Bossard wrote:
>
> > 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>
More information about the Nut-upsuser
mailing list