I know it,but I tried my ups On Battery with Liebert java app and when java app shutdown PC and after shutdown UPS.<br>Later I plugin back the power and UPS started and after PC started automatic too.<br>And I think NUT know it just I need configure NUT.<br>
<br>I read this instcmd :<br><br>shutdown.return | Turn off the load possibly after a delay |<br>
| | and return when power is back<br><br>but I didn't can use it.<br><br>And if I can send other shutdown command to UPS from this NUT function :<br><br>void upsdrv_shutdown(void)<br>{<br>
/* replace with a proper shutdown function */<br> fatalx(EXIT_FAILURE, "shutdown not supported");<br>}<br><br>???<br>Is it help for me ? <br><br>Thanks your advice.<br><br><br><br><div class="gmail_quote">
2010/7/15 Arjen de Korte <span dir="ltr"><<a href="mailto:nut%2Bdevel@de-korte.org">nut+devel@de-korte.org</a>></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 class="im">Citeren Robert Jobbagy <<a href="mailto:jobbagy.robert@gmail.com" target="_blank">jobbagy.robert@gmail.com</a>>:<br>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I tested my ups with liebert-esp2 driver and use it ON Battery and if ups<br>
status will be LB then shutdown the PC but if power back<br>
then PC stay power off.<br>
How can I configure nut that if power back then PC start automatic ?<br>
</blockquote>
<br></div>
You can't. You'll have to configure the systems to boot up automatically when power is applied. This is usually done by either a setting in the system BIOS or (on older systems) a jumper on the main board. We can't help you with that, NUT doesn't have a magic finger that will press the power button for you.<div>
<div></div><div class="h5"><br>
<br>
Best regards, Arjen<br>
-- <br>
Please keep list traffic on the list<br>
<br>
<br>
_______________________________________________<br>
Nut-upsdev mailing list<br>
<a href="mailto:Nut-upsdev@lists.alioth.debian.org" target="_blank">Nut-upsdev@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br><br>Robert <br>