<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>
> <br>
> I can start the driver successfully manually, after the machine is
up<br>
> and running, but at boot time, it can't find my UPS. My init
script<br>
> makes sure that the usbfs is up (by checking for the existence
of<br>
> /proc/bus/usb/devices), and I can't think of what else could be<br>
> different with the boot-time failure versus the manual startup
after<br>
> logging in. I'll include my configuration at the end of this
note.<br>
> Here's the log of the boot failure:<br>
> <br>
> Sun Apr 15 21:49:48 PDT 2007 /etc/init.d/rc3.d/S09ups: Starting ups
driver (-DDDDD)<br>
> Sun Apr 15 21:49:48 PDT 2007 /etc/init.d/rc3.d/S09ups: USB
filesystem is mounted<br>
> Starting UPS: ups<br>
> exec: //bin/newhidups -a ups<br>
> Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30
(2.0.5)<br>
> <br>
> No matching HID UPS found<br>
> Driver failed to start (exit status=1)<br>
> Network UPS Tools - UPS driver controller 2.0.5<br>
> <br>
> Here are my config files:<br>
> <br>
> /etc/ups/ups.conf:<br>
> [ups]<br>
> <x-tab> </x-tab>driver =
newhidups<br>
> <x-tab> </x-tab>port = auto<br>
> <x-tab> </x-tab>desc = "My
Little APC Back-UPS ES 750"<br>
> <br>
> /etc/hotplug/usb/libhidups:<br>
> if [ "$ACTION" = "add" -a "$TYPE" =
"usb" ]; then<br>
> chown root:nut "$DEVICE"<br>
> chmod 0664 "$DEVICE"<br>
> fi<br>
> <br>
> Here's my init script, which runs in runlevel 3:<br>
> <br>
> case "$1" in<br>
> start)<br>
> <x-tab> </x-tab>echo "`date`
${0}: Starting ups driver (-DDDDD)" >$log<br>
> <x-tab> </x-tab>if [ -f
/proc/bus/usb/devices ]; then<br>
>
<x-tab> </x-tab><x-tab>
</x-tab>echo "`date`
${0}: USB filesystem is mounted" >$log<br>
> <x-tab> </x-tab>else<br>
>
<x-tab> </x-tab><x-tab>
</x-tab>echo "`date`
${0}: Mounting the USB filesystem" >$log<br>
>
<x-tab> </x-tab><x-tab>
</x-tab>modprobe
usbcore<br>
>
<x-tab> </x-tab><x-tab>
</x-tab>mount -t usbfs
usbfs /proc/bus/usb<br>
>
<x-tab> </x-tab><x-tab>
</x-tab>[ -f
/proc/bus/usb/devices ] ||<br>
>
<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab>echo "`date`
${0}: cannot mount the USB filesystem" >$log<br>
> <x-tab> </x-tab>fi<br>
> <br>
> <x-tab> </x-tab>/bin/upsdrvctl
-DDDDD start ups >$log 2>&1<br>
> <x-tab> </x-tab>...<br>
> <br>
> <br>
> The only runlevel 3 init script that runs after ups is nfs.<br>
> <br>
> System details:<br>
> Linux kernel 2.4.32<br>
> UPS: APC Back-UPS ES 750<br>
> <br>
> Fwiw, here's a log of a manual driver startup:<br>
> <br>
> Starting UPS: ups<br>
> exec: //bin/newhidups -a ups<br>
> Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30
(2.0.5)<br>
> <br>
> Detected a UPS: APC/Back-UPS ES 750 FW:819.z3.D USB FW:z3<br>
> Using subdriver: APC/CyberPower HID 0.9<br>
> Network UPS Tools - UPS driver controller 2.0.5<br>
> <br>
> Any ideas? Any suggestions what to do to get more debugging
info?<br>
> <br>
> TIA,<br>
> <br>
> Jim<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><br>
> <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>