<html>
<body>
<font size=3>Is this a problem with the UDEV sequence? ie in
/etc/udev/rules.d are the nut udev rules the last ones to execute? I
found that I had to do this to get around a permissions problem during
boot.<br><br>
Jon<br><br>
At 06
<img src="http://messenger.msn.com/MMM2004-08-11_11.52/Resource/emoticons/omg_smile.gif" width=19 height=19 alt="Smiley says O">0 17/04/2007, Peter Selinger wrote:<br>
<blockquote type=cite class=cite cite="">Could it be a permissions
problem? Perhaps the USB devices are not yet<br>
owned by the correct user during boot? -- Peter<br><br>
Jim Osborn wrote:<br>
&gt; <br>
&gt; I can start the driver successfully manually, after the machine is
up<br>
&gt; and running, but at boot time, it can't find my UPS. My init
script<br>
&gt; makes sure that the usbfs is up (by checking for the existence
of<br>
&gt; /proc/bus/usb/devices), and I can't think of what else could be<br>
&gt; different with the boot-time failure versus the manual startup
after<br>
&gt; logging in.&nbsp; I'll include my configuration at the end of this
note.<br>
&gt; Here's the log of the boot failure:<br>
&gt; <br>
&gt; Sun Apr 15 21:49:48 PDT 2007 /etc/init.d/rc3.d/S09ups: Starting ups
driver (-DDDDD)<br>
&gt; Sun Apr 15 21:49:48 PDT 2007 /etc/init.d/rc3.d/S09ups: USB
filesystem is mounted<br>
&gt; Starting UPS: ups<br>
&gt; exec: //bin/newhidups -a ups<br>
&gt; Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30
(2.0.5)<br>
&gt; <br>
&gt; No matching HID UPS found<br>
&gt; Driver failed to start (exit status=1)<br>
&gt; Network UPS Tools - UPS driver controller 2.0.5<br>
&gt; <br>
&gt; Here are my config files:<br>
&gt; <br>
&gt; /etc/ups/ups.conf:<br>
&gt; [ups]<br>
&gt; <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>driver =
newhidups<br>
&gt; <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>port = auto<br>
&gt; <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>desc = &quot;My
Little APC Back-UPS ES 750&quot;<br>
&gt; <br>
&gt; /etc/hotplug/usb/libhidups:<br>
&gt; if [ &quot;$ACTION&quot; = &quot;add&quot; -a &quot;$TYPE&quot; =
&quot;usb&quot; ]; then<br>
&gt;&nbsp;&nbsp; chown root:nut &quot;$DEVICE&quot;<br>
&gt;&nbsp;&nbsp; chmod 0664 &quot;$DEVICE&quot;<br>
&gt; fi<br>
&gt; <br>
&gt; Here's my init script, which runs in runlevel 3:<br>
&gt; <br>
&gt; case &quot;$1&quot; in<br>
&gt;&nbsp;&nbsp; start)<br>
&gt; <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>echo &quot;`date`
${0}: Starting ups driver (-DDDDD)&quot; >$log<br>
&gt; <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>if [ -f
/proc/bus/usb/devices ]; then<br>
&gt;
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>echo &quot;`date`
${0}: USB filesystem is mounted&quot; >$log<br>
&gt; <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>else<br>
&gt;
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>echo &quot;`date`
${0}: Mounting the USB filesystem&quot; >$log<br>
&gt;
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>modprobe
usbcore<br>
&gt;
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>mount -t usbfs
usbfs /proc/bus/usb<br>
&gt;
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>[ -f
/proc/bus/usb/devices ] ||<br>
&gt;
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>echo &quot;`date`
${0}: cannot mount the USB filesystem&quot; >$log<br>
&gt; <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>fi<br>
&gt; <br>
&gt; <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>/bin/upsdrvctl
-DDDDD start ups >$log 2&gt;&amp;1<br>
&gt; <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>...<br>
&gt; <br>
&gt; <br>
&gt; The only runlevel 3 init script that runs after ups is nfs.<br>
&gt; <br>
&gt; System details:<br>
&gt; Linux kernel 2.4.32<br>
&gt; UPS: APC Back-UPS ES 750<br>
&gt; <br>
&gt; Fwiw, here's a log of a manual driver startup:<br>
&gt; <br>
&gt; Starting UPS: ups<br>
&gt; exec: //bin/newhidups -a ups<br>
&gt; Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30
(2.0.5)<br>
&gt; <br>
&gt; Detected a UPS: APC/Back-UPS ES 750 FW:819.z3.D USB FW:z3<br>
&gt; Using subdriver: APC/CyberPower HID 0.9<br>
&gt; Network UPS Tools - UPS driver controller 2.0.5<br>
&gt; <br>
&gt; Any ideas?&nbsp; Any suggestions what to do to get more debugging
info?<br>
&gt; <br>
&gt; TIA,<br>
&gt; <br>
&gt; Jim<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Nut-upsuser mailing list<br>
&gt; Nut-upsuser@lists.alioth.debian.org<br>
&gt;
<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser" eudora="autourl">
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser</a><br>
&gt; <br><br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
Nut-upsuser@lists.alioth.debian.org<br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser" eudora="autourl">
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser</a></font>
</blockquote>

<BR><BR>
<TABLE width=400><HR>
<P style="FONT: 9pt/11pt verdana"><a href="http://www.avast.com">avast! Antivirus</a>: Outbound message clean.
<P style="FONT: 8pt/11pt verdana">Virus Database (VPS): 000734-0, 16/04/2007<BR>Tested on: 17/04/2007 7:24:39 AM<BR><FONT color=gray>avast! is copyright (c) 2000-2007 ALWIL Software.</FONT></P>
<TBODY></TBODY></TABLE>
<BR>

</body>
<br>
</html>