NUT / upsd

Panicked configuration trying to get a shutdown to automate while the power is off. Should be most helpful for Debian linux.

mass of files that need to be modified to 'just work'

nut-scanner detects the device!

Add the output to a new device in /etc/nut/ups.conf and remember to exclude the bus = "00X" line in case the usb id changes. Some overrides were necessary to have settings persist.

Set MODE=standalone in /etc/nut/nut.conf

Add a MONITOR line in /etc/nut/upsmon.conf

Add a user to /etc/nut/upsd.users

Mind the security!

check to see things are running

upsc someups@localhost

runtime not enough to cleanly shutdown

Change the battery.charge.low and battery.runtime.low lines. 120s wasn't enough when the battery was already depleted and was going a lot faster than expected.

upsrw -s battery.charge.low=15 -u upsmon someups@localhost
upsrw -s battery.runtime.low=180 -u upsmon someups@localhost

To make permanent, add something like these to the device in /etc/nut/ups.conf.

override.battery.charge.low = 20
override.battery.runtime.low = 300