Guys,<br>&nbsp; How can I get my system to boot up and load the driver correctly?&nbsp; I rebooted it when I got home this evening and the UPS device moved to this spot: /dev/bus/usb/002/002 which wouldn&#39;t be a big deal, except the permissions changed back to root:plugdev.&nbsp; When I load upsdrvctl it can&#39;t connect because of the permissions.
<br><br>Anyway, how can I go about finding the correct ups usb device in /dev and changing the permissions of it during boot (before upsdrvctl gets issued)??<br><br>Any suggestions?<br><br><div><span class="gmail_quote">On 2/7/07, 
<b class="gmail_sendername">Peter Selinger</b> &lt;<a href="mailto:selinger@mathstat.dal.ca">selinger@mathstat.dal.ca</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Greg,<br><br>the battery runtime is computed by the device firmware. 80 minutes<br>sounds like a lot, but there&#39;s no guarantee that it&#39;s accurate.<br><br>-- Peter<br><br>Greg Grotsky wrote:<br>&gt;<br>&gt; Thanks Peter, Charles Lepple repsonded this morning and I got it all sorted
<br>&gt; out. I believe it&#39;s working now, I can execute &quot;upsc myups&quot; and it spits out<br>&gt; all sorts of cool info. I have a question though: Does &quot;battery.runtime&quot; get<br>&gt; calculated based on the current load or is it just something that the
<br>&gt; manufacturer sets in the firmware for the model? I ask because the value I<br>&gt; currently have for battery.runtime is 4800 and from what I read that is in<br>&gt; seconds. I&#39;m basically running just a computer (no monitor) from the ports
<br>&gt; on this thing, does 80 minutes of runtime sound right?<br>&gt;<br>&gt; Thanks,<br>&gt; -Greg<br>&gt;<br>&gt;<br>&gt; On 2/7/07, Peter Selinger &lt;<a href="mailto:selinger@mathstat.dal.ca">selinger@mathstat.dal.ca
</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; From the file INSTALL:<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;The setup for USB ports is slightly more complicated. Device files<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;for USB devices, such as /proc/bus/usb/002/001, are usually
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;created &quot;on the fly&quot; when a device is plugged in, and disappear<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;when the device is disconnected.&nbsp;&nbsp;Moreover, the names of these<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;device files can change randomly. To set up the correct
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;permissions for the USB device, you may need to set up (operating<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;system dependent) hotplugging scripts.&nbsp;&nbsp;Sample scripts and<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;information are provided in the scripts/hotplug and
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;scripts/udev directories. (If you want to try if a driver<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;works without setting up hotplugging, you can add the &quot;-u root&quot;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;option to upsd, upsmon, and drivers; this should allow you to
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;follow the below instructions. However, don&#39;t forget to set up the<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;correct permissions later!).<br>&gt; &gt;<br>&gt; &gt; -- Peter<br>&gt; &gt;<br>&gt; &gt; Greg Grotsky wrote:<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt; So I just bought one of these fabulous CyberPower UPS devices from<br>&gt; &gt; BestBuy<br>&gt; &gt; &gt; hoping I could control it with my machine.&nbsp;&nbsp;Luckily, I found NUT!&nbsp;&nbsp;I&#39;ve<br>&gt; &gt; got<br>
&gt; &gt; &gt; the SVN sources and compiled and installed them but I haven&#39;t been able<br>&gt; &gt; to<br>&gt; &gt; &gt; get it to recognize the usb AE550.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; When I plug the usb cable in I see this in syslog:
<br>&gt; &gt; &gt; Feb&nbsp;&nbsp;6 22:36:56 mythbox kernel: usb 1-1: new low speed USB device using<br>&gt; &gt; &gt; ohci_hcd and address 4<br>&gt; &gt; &gt; Feb&nbsp;&nbsp;6 22:36:56 mythbox kernel: usb 1-1: configuration #1 chosen from 1
<br>&gt; &gt; &gt; choice<br>&gt; &gt; &gt; Feb&nbsp;&nbsp;6 22:36:56 mythbox kernel: hiddev96: USB HID v1.10 Device [CPS UPS<br>&gt; &gt; &gt; AE550] on usb-0000:00:02.0-1<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I run lsusb and I see this:
<br>&gt; &gt; &gt; $ lsusb<br>&gt; &gt; &gt; Bus 003 Device 001: ID 0000:0000<br>&gt; &gt; &gt; Bus 001 Device 004: ID 0764:0501 Cyber Power System, Inc.<br>&gt; &gt; &gt; Bus 001 Device 001: ID 0000:0000<br>&gt; &gt; &gt; Bus 002 Device 002: ID 15c2:ffda SoundGraph Inc.
<br>&gt; &gt; &gt; Bus 002 Device 001: ID 0000:0000<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; My /usr/local/ups/etc/ups.conf file contains<br>&gt; &gt; &gt; [CyberPower]<br>&gt; &gt; &gt;&nbsp;&nbsp;driver = usbhid-ups<br>&gt; &gt; &gt;&nbsp;&nbsp;port = auto
<br>&gt; &gt; &gt; # vendor = &quot;Cyber Power Systems&quot;<br>&gt; &gt; &gt; # product = &quot;AE550&quot;<br>&gt; &gt; &gt; # vendorid = 0764<br>&gt; &gt; &gt; # productid = 0501<br>&gt; &gt; &gt;&nbsp;&nbsp;desc = &quot;MythBox&quot;
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; When I run upsdrvctl start I get this:<br>&gt; &gt; &gt; $ ./upsdrvctl start<br>&gt; &gt; &gt; Network UPS Tools - UPS driver controller 2.1.0<br>&gt; &gt; &gt; Network UPS Tools: 0.28
 USB communication driver 0.28 - core 0.30 (2.1.0<br>&gt; &gt; )<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; No matching HID UPS found<br>&gt; &gt; &gt; Driver failed to start (exit status=1)<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>
&gt; &gt; &gt; I have tried everything in attempt to get this recognized.&nbsp;&nbsp;As you can<br>&gt; &gt; see<br>&gt; &gt; &gt; in my conf file I tried supplying the values I recieved in lsusb and the<br>&gt; &gt; &gt; vendor and product names.&nbsp;&nbsp;I&#39;ve tried doing that at the command line as
<br>&gt; &gt; well<br>&gt; &gt; &gt; running usbhid-ups -x vendor=CyberPower.&nbsp;&nbsp;I&#39;ve also tried supplying<br>&gt; &gt; &gt; usbhid-ups with the device name /dev/usb/hiddev0 or /dev/usbdev1.4_ep00<br>&gt; &gt; or<br>&gt; &gt; &gt; /dev/usbdev1.4_ep81 (not sure what these are but I think they all
<br>&gt; &gt; represent<br>&gt; &gt; &gt; the ups).&nbsp;&nbsp;I&#39;ve created a user for the software to use and set the<br>&gt; &gt; &gt; permissions correctly.&nbsp;&nbsp;What am I missing??<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; BTW: I&#39;m running 64bit version of Debian.&nbsp;&nbsp;I didn&#39;t have any problems
<br>&gt; &gt; with<br>&gt; &gt; &gt; the compile or install.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Thanks,<br>&gt; &gt; &gt; -Greg<br></blockquote></div><br>