April 24, 2019

Power Saving for the Workstation, Part 2 - page 3

Automatically Suspending to RAM

  • July 31, 2007
  • By A. Lizard

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.

Most Popular LinuxPlanet Stories