[deleted]
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.
Submitted 11 hours ago by NaiP@lemmy.world to selfhosted@lemmy.world
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.
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.
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.
catloaf@lemm.ee 11 hours ago
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.
NaiP@lemmy.world 11 hours ago
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.
yaroto98@lemmy.org 10 hours ago
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.
viharm@twit.social 10 hours ago
@catloaf @NaiP
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.