<div dir="ltr">I have seen cases where 'cleanly shut down' hosts don't come back up, even when the BIOS is set to "last state" or "always on". <div><br></div><div>I had to change my NUT shutdown script to call halt instead of halt -p so the host was halted but still powered on. Then when power was cut and restored the host came back up.</div><div><br></div><div>nomad</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 1, 2018 at 7:58 AM,  <span dir="ltr"><<a href="mailto:nut.user.u830@neverbox.com" target="_blank">nut.user.u830@neverbox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Out of curiosity: if the PC has already been switched off from software by the shutdown script, how would it know that the power has been cut while it was off? Are you telling me that the power supply of the PC keeps checking its incoming AC supply even while off, and that with the BIOS setting I selected it will wake up the PC even after a power cut DURING WHICH the PC was already off? I never imagined that... I guess it's something I could try independently, once I find a quiet time with no disk activity when it's OK to shut down that computer.<br>
<br>
<br>
It actually occurred to me that I could try this with another (any other) computer here at work, so I did. I set the BIOS to "always on" after power cut. I booted ubuntu. I did "sudo shutdown -h now" from the console. The pc switched off as expected. Then I removed the power cable and then plugged it back in. According to the theory above, this should have caused the computer to detect a power loss and turn itself back on. Instead it remained off (as I expected).<br>
<br>
So clearly I am missing something here. Once nut has turned off the pc completely with a sequence of unix commands, how can anything the ups might do to to the power line, including cutting the power and restoring, cause the pc to come back on?<br>
<br>
I would have expected the pc only to come back on if either<br>
<br>
a) power had been cut off (not from software) while the computer was still running, AND the bios setting said "always on"<br>
<br>
or<br>
<br>
b) the UPS simulated some kind of "power button keypress" or the like through the USB link.<br>
<br>
If my understanding is flawed then please enlighten me. What does actually happen when things work?<br>
<br>
______________________________<wbr>_________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.<wbr>debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">http://lists.alioth.debian.<wbr>org/cgi-bin/mailman/listinfo/<wbr>nut-upsuser</a><br>
</blockquote></div><br></div>