How can I send hexa commands to UPS with nut ?<div><br></div><div>Thanks your advice.<br><br><div class="gmail_quote">2010/7/19 Arjen de Korte <span dir="ltr">&lt;<a href="mailto:nut%2Bdevel@de-korte.org">nut+devel@de-korte.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Citeren Robert Jobbagy &lt;<a href="mailto:jobbagy.robert@gmail.com" target="_blank">jobbagy.robert@gmail.com</a>&gt;:<br>

<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I put  dstate_setinfo(&quot;battery.runtime.low&quot;,&quot;%d&quot;,3500); in the<br>
upsdrv_initinfo function.<br>
</blockquote>
<br></div>
This will hardcode the &#39;battery.runtime.low&#39; value that is reported to the upsd server and upsmon clients. I doubt that this is what you meant to do.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I tought battery.runtime.low tell to NUT when send LOW BATTERY EVENT and<br>
after this will be happend<br>
<br>
- generates a NOTIFY_SHUTDOWN event<br>
   - waits FINALDELAY seconds - typically 5<br>
   - creates the POWERDOWNFLAG file - usually /etc/killpower<br>
   - calls the SHUTDOWNCMD<br>
</blockquote>
<br></div>
No. The dstate_setinfo() and dstate_getinfo() functions are only used to change or read back the values that are reported to the uspd server. The upsmon client will only look at the &#39;ups.status&#39; that is reported. If you want to shutdown based on the runtime remaining, your UPS must support both shutting down based on remaining runtime *and* allow you to override the build in value. You should never need to directly set &#39;battery.runtime.low&#39;, since this must be the actual value reported by the UPS.<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>
</div>