[kwlug-disc] UPS Power Down Question

Khalid Baheyeldin kb at 2bits.com
Thu Nov 14 17:25:09 EST 2024


I ended up simplifying things, and not worrying about the internet lasting
for a longer time. That is, the UPS will power the server and shut it down,
then with UEFI -> Advanced -> APM -> Power On, power should be restored
after the UPS is back on A/C power and the battery has charged a bit.

[ups1]
  driver = usbhid-ups
  port = auto
  pollonly = "enabled"
  pollinterval = 15

  desc = "CyberPower UPS"

  ignorelb

  # When A/C power is off, and there are this much seconds remaining
in the battery,
  # shutdown the server
  override.battery.runtime.low=180

  # Delay restoring power to the server, so the batteries have time to charge
  override.ups.delay.start=240

The above says if there are 3 minutes remaining in the battery, then
shutdown the
server. Then wait 4 minutes after A/C power is restored before
providing power to
the server.

Any concerns?
Any better ways to do this?



More information about the kwlug-disc mailing list