<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jun 14, 2014, at 8:06 PM, Bossard wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello Charles,<div><br></div><div>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.</div></div></blockquote><div><br></div><div>The way to think about the "-u root" flag is "<i>stay</i> 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).</div><div><br></div><div>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>"?</div><br><blockquote type="cite"><div dir="ltr"><div>  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:</div>

<div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="color:rgb(0,0,0);font-family:Georgia,serif;font-size:medium">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.</span><br>

</div><div><span style="color:rgb(0,0,0);font-family:Georgia,serif;font-size:medium"><br></span></div></blockquote></div><div><font color="#000000" face="arial, helvetica, sans-serif">How can I get them and do I really need them?  </font></div>

</div></blockquote><div dir="ltr"><div><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div><font color="#000000" face="arial, helvetica, sans-serif">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.</font></div><div><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div><font color="#000000" face="arial, helvetica, sans-serif">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.</font></div><div><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div></div><blockquote type="cite"><div dir="ltr"><div><font color="#000000" face="arial, helvetica, sans-serif">I copied and modified "</font>/lib/udev/rules.d/52-nut-usbups.rules" and added the following:</div>

<div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"> </span>  e.g. TrippLite INTERNET350U  - usbhid-ups</div><p class="">ATTR{idVendor}=="09ae", ATTR{idProduct}=="2010", MODE="664", GROUP="nut"</p><p class=""><br></p></blockquote>Thank you for your time and <span style="color:rgb(37,37,37);font-family:sans-serif;line-height:22.399999618530273px">Patience</span>







<div><span style="color:rgb(37,37,37);font-family:sans-serif;line-height:22.399999618530273px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 13, 2014 at 8:59 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 class="">On Jun 13, 2014, at 4:45 PM, Bossard wrote:<br>
<br>
> No matching HID UPS found<br>
><br>
><br>
> Driver failed to start (exit status=1)<br>
><br>
><br>
> So I tried 'usbhid-ups -x productid=2010' and received the same error.<br>
<br>
</div>Same exact error?<br>
<br>
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".<br>


<br>
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.)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Charles Lepple<br>
clepple@gmail<br>
<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Cya<br><br>Eric
</div>
</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>