Just a small update; I figured out the udev script so now the processes don't run as root and all still works :-). Thanks for all your help. The only remaining issue is the intermittant failures when the driver is loading..
<br><br>Joe<br><br><div class="gmail_quote">On Jan 3, 2008 1:57 PM, Joseph Borg &lt;<a href="mailto:juu.borg@gmail.com">juu.borg@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Arjen,<br>Many thanks for your on-going support on this. It seems to be working &#39;mostly&#39; fine now. Just a few points:<div class="Ih2E3d"><br><br>&gt;&gt; The better option would be to modify the udev/hotplug script and not run
<br>everything as root.
<br><br></div>Any pointers on how to do the above? NUT installed from RPM for me so presumably I can get these scripts by downloading the .tar.gz. What needs modification in them?<br><br>Most of the time, the driver seems to load fine on restart/boot-up. At time however, it does not seem to load and will not load no matter how many times I try after. In order to overcome this I have to switch off the PC, switch off the UPS and then start afresh (switch-on). It therefore seems as though the USB/Serial connection is &#39;stuck&#39; at times and needs some sort of reset. Is this a known issue and/or is there any way I can overcome this?
<br><br>Thanks,<br><br>Joe<br>P.S. If you need my exact config maybe you want to document this a working UPS on the NUT page :-).<div><div></div><div class="Wj3C7c"><br><br><br><br><div class="gmail_quote">On Jan 3, 2008 8:17 AM, Arjen de Korte &lt;
<a href="mailto:nut+users@de-korte.org" target="_blank">
nut+users@de-korte.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>&gt; I also discovered that the log file is getting filled up with these
<br>&gt; errors:<br>&gt;<br>&gt; ---------------------<br>&gt; Jan &nbsp;2 22:38:19 www kernel: usb 1-2: usbfs: process 24538 (megatec_usb)<br>&gt; did<br>&gt; not claim interface 0 before use<br>&gt; Jan &nbsp;2 22:38:19 www kernel: usb 1-2: usbfs: process 24538 (megatec_usb)
<br>&gt; did<br>&gt; not claim interface 0 before use<br>&gt; Jan &nbsp;2 22:38:20 www upsmon[24650]: Poll UPS [myups@localhost] failed -<br>&gt; Driver not connected<br>&gt; Jan &nbsp;2 22:38:20 www kernel: usb 1-2: usbfs: process 24380 (megatec_usb)
<br>&gt; did<br>&gt; not claim interface 0 before use<br>&gt; Jan &nbsp;2 22:38:20 www kernel: usb 1-2: usbfs: process 24380 (megatec_usb)<br>&gt; did<br>&gt; not claim interface 0 before use<br>&gt; Jan &nbsp;2 22:38:21 www kernel: usb 1-2: usbfs: process 24538 (megatec_usb)
<br>&gt; did<br>&gt; not claim interface 0 before use<br>&gt; Jan &nbsp;2 22:38:21 www kernel: usb 1-2: usbfs: process 24538 (megatec_usb)<br>&gt; did<br>&gt; not claim interface 0 before use<br>&gt; Jan &nbsp;2 22:38:22 www kernel: usb 1-2: usbfs: process 24380 (megatec_usb)
<br>&gt; did<br>&gt; not claim interface 0 before use<br>&gt; Jan &nbsp;2 22:38:22 www kernel: usb 1-2: usbfs: process 24380 (megatec_usb)<br>&gt; did<br>&gt; not claim interface 0 before use<br>&gt; -------------------------------
<br><br></div></div>You have multiple instances of the megatec_usb driver running. That<br>doesn&#39;t work.<br><div><br>&gt; Same thing happens if I use the init script for everything (I added the -u<br>&gt; root to the script).
<br><br></div>The better option would be to modify the udev/hotplug script and not run<br>everything as root.<br><br>Best regards, Arjen<br><br></blockquote></div><br>
</div></div></blockquote></div><br>