Hi,<br><br><div class="gmail_quote">2011/5/8 pepe jose <span dir="ltr">&lt;<a href="mailto:dynamix66@hotmail.com">dynamix66@hotmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">




<div>




<div>hi!</div><div><br></div><div>When I turn on my pc everything works fine, but if I restart fails (I&#39;m not sure if this is true at 100%)(then, i can do &#39;sudo /etc/init.d/nut restart&#39; and it works)</div><div>
<br></div><div>But what is certain is that sometimes when start up the pc it works and sometimes fails. It seems like attempting to use the USB bus before it has initialized.</div><div><br></div><div>how I can fix this? thanks so much!</div>
<div><br></div><div>my setup:</div><div>core i5, SSD corsair, 8GB ram, msi p67a-gd65</div><div>Ubuntu 11.04 64bit</div><div>NUT v2.6 deb from ubuntu</div><div>UPS Soyntec Sekury C 800 USB</div><div><br></div><div>syslog:</div>
<div>Apr 30 21:58:16 tron upsd[1251]: listening on 127.0.0.1 port 3493</div><div>Apr 30 21:58:16 tron upsd[1251]: Can&#39;t connect to UPS [soyntec] (blazer_usb-soyntec): No such file or directory</div><div>Apr 30 21:58:16 tron upsd[1253]: Startup successful</div>
<div>Apr 30 21:58:16 tron upsmon[1256]: Startup successful</div><div>Apr 30 21:58:16 tron upsd[1253]: User monuser 127.0.0.1 logged into UPS [soyntec]</div><div>Apr 30 21:58:16 tron upsmon[1259]: Poll UPS [soyntec localhost] failed - Driver not connected</div>
<div>Apr 30 21:58:16 tron upsmon[1259]: Communications with UPS soyntec localhost lost</div><div><br></div><div>output (sudo /lib/nut/blazer_usb -DDDDD -a soyntec) attached<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser" target="_blank"></a><br>
</div></div></blockquote></div><br>as per your provided info, this indeed resemble to a udev related issue.<br>this is quite probably due to the upstart + sysV mix that is in use in natty, with udev being an upstart job, while nut is still a sysV (compatibility) one.<br>
I&#39;ve sadly not had time to install an actual natty, and pbuilder disable udev.<br><br>the final solution will come with NUT conversion to upstart (I had a session at the UDS today on that).<br>for the time being, you can try to up a bit more NUT&#39;s ranking by doing:<br>
$ sudo mv /etc/rc2.d/S50nut /etc/rc2.d/s99nut<br clear="all"><br>and check if the situation has improved.<br>I&#39;ll give a word tomorrow to upstart developers on this.<br><br>cheers,<br>Arnaud (from UDS Budapest)<br>-- <br>
Linux / Unix Expert R&amp;D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>
Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>