Hi,<br><br>I have two questions:<br><br>first:<br><br>What's wrong with this:<br><br> dstate_setinfo("battery.runtime.low","%d",3500);<br><br>it doesnt work.<br><br><br>second:<br><br>If I figure out how can I shutdown PC and UPS that ups shutdown too and if I plug back the power PC start automatic.<br>
I put this command in upsdrv_shutdown, is it right?<br>Or I need put it in other function?<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 know it,but I tried my ups On Battery with Liebert java app and when java<br>
app shutdown PC and after shutdown UPS.<br>
Later I plugin back the power and UPS started and after PC started automatic<br>
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>
</blockquote>
<br></div>
When people write to the development mailing list, we expect them to read the full thread:<br>
<br>
<a href="http://lists.alioth.debian.org/pipermail/nut-upsdev/2010-July/004875.html" target="_blank">http://lists.alioth.debian.org/pipermail/nut-upsdev/2010-July/004875.html</a><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>