As in title. I’m leaving my minipc in a place for summer, and there are power outages sometimes. I wanted to configure it to shutdown when on UPS power, and was curious about how people go about doing that.
As a bonus, how do I automatically boot it up when regular power is back on? It’s an N100.
Should further info be needed, please let me know.
The UPS should have a USB plug in the back. Plug that into your computer and it will read the battery status as if it was a laptop. Then in your OS, set the standard shutdown options when low on battery.
Power back on needs the BIOS set to power on after power failure, the UPS will shut down after everything powers off, so the power coming back on will start things up again.
NUT for UPS monitoring and control. Powering back on is more tricky, because while you can configure it to power on when AC power is applied, if the mains power comes back before the UPS is exhausted, then the PC never sees a loss of AC power. Maybe your UPS has an option that will help with this.
You can set scheduled startup times, so maybe you can set it to startup at every noon and midnight, and then if the house power still isn’t on then the UPS will tell it to shutdown again. That way it’ll do a test every 6 hours
I’ve had this problem. Although I haven’t implemented this yet, but I might deploy a #RaspberryPi to ping and monitor any nodes affected by this scenario. Then send WOL packets. For this to work the affected nodes will need the relevant BIOS/UEFI support appropriately configured.
Thanks for the NUT idea. I’ll look into it and reply back again when I’m next awake. Thank you.
I was worried about the powering back, unfortunate. Will look for ups’ that can help with this. If anyone knows of this please let me know.
So, something to note is that a lot of UPSs have a configuration for sensitivity. Your power actually fluctuates quite a bit, but you don’t notice. I have my UPS on the default sensitivity, and there have been a few instances of it going onto battery power when none of my other devices even flickered.
So, with that in mind, I use NUT. My server has it setup and it’s set to gracefully shutdown after my UPS hits 25% battery remaining. That way false positives don’t shut it down, nor will small flickers, nor will an outage less than an hour or so. My UPS says I can run for about 90mins on current load.
In the bios should be an option to enable (speaking the bonus)
Yepyep! That I do know about. Should’ve clarified I meant power back on IFF it’s no longer dependent on the ups to continue functioning.