Power Saving for the Workstation, Part 1 - page 3
Making It Work
The default settings in the BIOS worked, as seen in Figure 1. If ACPI and DPMS aren't enabled by default, enable them. However, the system drastically slowed down when I changed the ACPI Suspend Type to S1&S3, though it didn't appear make a difference with respect to shutting down RAM and CPU or fans. Feel free to experiment, just remember never to change BIOS (or anything else avoidable) when the machine is shut down in hibernation state.
Bad Things happen with respect to corruption of files in use, and these can corrupt your filesystem. (The screen distortion in Figure 2 is from a bad camera angle, but look at the way Konqueror and the bottom panel are split) This happened when I restored the BIOS to its default ACPI settings when in hibernate.
As I said,
hibernate -force worked correctly as installed.
-force is required because I have nvidia GeForce 6100 video and the inclusion of nvidia in /etc/hibernate/blacklisted-modules seems not to work. Try it without
-force first, especially if you aren't running nvidia.
The original hibernate configuration files were set up to point at
ram.conf, which was configured to point at
uswusp (which I couldn't install). Once I found that it needed to use
sysfs-ram.conf (for use with kernel-based
SOFTWARE_SUSPEND), I then found it was intended to enable
SOFTWARE SUSPEND to point an "mem" ACPI state that didn't exist. Finally, I modified
common.conf (configuration data common to both suspend-to-ram and hibernate) to bring eth0 down, then up. Note that this was done by uncommenting existing lines, so I'm not the first to have run into the network problem.
The following steps made it work. The
cat command below lists the available ACPI states.
terrarium:/var/log# cat /sys/power/state standby disk terrarium:/var/log#
Create the directory /home/username/suspend.
$ mkdir suspend
These files need to be in the /etc/hibernate directory.
hibernate.conf:--------------------------------------- # TryMethod suspend2.conf TryMethod disk.conf # TryMethod ram.conf
ram.conf:--------------------------------------- # save to both, RAM and disk # (disabled by default, since it takes longer) # TryMethod ususpend-both.conf # TryMethod ususpend-ram.conf TryMethod sysfs-ram.conf
"available ACPI states"above, and use anything but
"disk", since this specifically controls suspend-to-RAM. I'd try
standbylast, but what each does may be different on your system, if you have more than one non-disk choice, try each and see what saves most power consistent with a correct return from suspend with no data corruption.--------------------------------------- UseSysfsPowerState standby
common.conf:--------------------------------------- ### network # uncomment the following two lines: DownInterfaces eth0 UpInterfaces auto
The change in
common.confdealt with the problem of eth0 showing as a running process when it in fact is not running; changing
common.confwas convenient and suggests I'm not the first one to have this problem. Change
UseSysfsPowerStateto whatever matches the /var/state/log output, you should see at least one of these items:
After making the above changes and entering:
# hibernate-ram --force
my system suspends to RAM, leaving the fans on. On the next keyboard or mouse event, the system resumes correctly, reopening formerly open applications, up to and including a VMware Server with Windows open.
Changing ACPI through this method involving /etc/default/acpi-support: would probably provide similar results.
In Part 2, you will find out how to set your system to work with a monitor that will put your computer into suspend as soon as the OS display power saving feature tells your computer display to go to sleep.
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: GNOME 3.12 and New Betas for Ubuntu 14.04 and OpenMandriva Lx 2014.0
- 2Linux Top 3: Linus Lashes out, Linux 3.14 Gets PIE and Ubuntu One is Done.
- 3Linux Top 3: Ubuntu 14.04, Debian Gives Squeeze More Life and Red Hat Goes Atomic
- 4Linux Top 3: CoreOS, Oracle Enterprise Linux 7 and Ubuntu 14.10
- 5Linux Top 3: Linux from Scratch, Ubuntu 14.01 Beta and Arch Updates