Power Saving for the Workstation, Part 2
Do You Have a UPS?

A. Lizard
Tuesday, July 31, 2007 08:42:48 PM
Use hibernate instead of /sbin/shutdown in the regular UPS shutdown script from Network UPS Tools. Instead of just shutting down your applications and OS in an orderly fashion, take up exactly where you left off when the power went down. Just start the shutdown in plenty of time before your UPS runs out of power.
Open /etc/hibernate/upsmon.conf with text editor as root (original command commented out via #):
# SHUTDOWNCMD "/sbin/shutdown -h +0"
SHUTDOWNCMD "/usr/sbin/hibernate –force"
Try it without –force first. If you didn't need it for hibernate-ram, you probably won't need it here.
"If you have a UPS that did not come with working Linux software, visit this HOWTO.
Next: Alternate Suspend Methods »