<div dir="ltr"><div>Primarily this depends on UPS abilities, whether its firmware allows such operation and implements the (delayed) UPS shutdown.</div><div>Also this needs NUT drivers' INSTCMD support, there are several names for similar operations though (load.off
, ups.shutdown.stayoff, ups.shutdown.reboot, etc.)</div><div><br></div><div></div><div>For CPS, see also <a href="https://github.com/networkupstools/nut/wiki/CyberPower-Systems-(CPS)-know-how">https://github.com/networkupstools/nut/wiki/CyberPower-Systems-(CPS)-know-how</a> - there are nuances about delay/time specification (IIRC each whole 60sec is what matters).</div><div><br></div><div>Generally this works like this:</div><div>* driver reports that the UPS is in a critical state (e.g. on battery and low battery)</div><div>* upsmon client which is "primary" for the UPS populates a "killpower" file and begins usual system shutdown</div><div>* init-script or service integration should have a NUT shutdown hook script, late in the shutdown routine (maybe after most filesystems are remounted read-only or unmounted), which finds the "killpower" file and re-runs the NUT driver to command the UPS to power off, possibly with a delay</div><div>* UPS controller handles this - e.g. sleeps some more to let the OS to shut down completely, and turns off the load and/or inverter</div><div>* when wall power comes back, the UPS usually powers on automatically (maybe after charging to a safe level), gives power to the load, computer turns on (if BIOS settings tell it to always turn on when power appears)</div><div><br></div><div>Jim</div><div><br></div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jun 12, 2025 at 5:15 PM Dario Novakovic via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I am using truenas with Cyber power CP900EPFCLCD UPS. All is well, server shuts down after power loss in specified time.<br>
<br>
Problem is that UPS remains ON. I would like UPS to turn OFF and I will turn it on, when the power comes back. I tried many various configuration but it does not affect the UPS.<br>
<br>
Before I send all my config files and everything, I would like to understand how it works. <br>
<br>
I have been messing with nut for days, setting various "delay"s, tried many different settings and configs but I feel like I am missing something. I have couple of general questions:<br>
<br>
1. Is it possible to turn the UPS off, after PC shut down.<br>
2. If yes, how does it work? What makes UPS go off, when PC is off? What kind of command or information is sent to UPS to make it turn off<br>
3. What is the purpose of "ups.delay.shutdown". Documentation says "Interval to wait after shutdown with delay command (seconds)". "Wait" for what exactly?<br>
<br>
<br>
Thanks,<br>
Dario<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>