07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9.12. Power Management<br />

The topic of power management is often problematic. Indeed, properly suspending the computer<br />

requires that all the computer's device drivers know how to put them to standby, and that<br />

they properly reconfigure the devices upon waking. Unfortunately, there are still many devices<br />

unable to sleep well under Linux, because their manufacturers have not provided the required<br />

specifications.<br />

WORTH FOLLOWING<br />

Soware suspend<br />

The soware suspend banner rallies several recent efforts to integrate reliable<br />

hibernation under Linux, on disk or in memory. Recent kernels are relatively<br />

reliable in that regard, when used in cooperation with tools of the uswsusp<br />

package. Unfortunately the problems related to hibernation are not yet ancient<br />

history, and you should run tests on your hardware before puing too<br />

much faith in its ability to wake from suspend.<br />

For those who want to learn more about how standby works with AC<strong>PI</strong>,<br />

Mahew Garre has an excellent article about this in his blog.<br />

➨ http://www.advogato.org/article/913.html<br />

9.12.1. Advanced Power Management (APM)<br />

APM (Advanced Power Management) control is present in all Debian kernels, but disabled by<br />

default. To activate it, you add the apm=on option to the kernel parameters passed at boot<br />

time. With LILO, you would add the append="apm=on" directive to the block indicating which<br />

image to boot (in the /etc/lilo.conf file), and relaunch lilo. With GRUB2, you simply add<br />

apm=on to the GRUB_CMDLINE_LINUX= variable in /etc/default/grub, and run updategrub<br />

to regenerate the contents of the boot menu.<br />

The apmd package provides a daemon that looks for events connected to energy management<br />

(switching between AC and battery power on a laptop, etc.), and allows you to run specific commands<br />

in response.<br />

These days, APM is really only justified on older computers that do not support AC<strong>PI</strong> properly.<br />

In all other cases, AC<strong>PI</strong> should be used.<br />

9.12.2. Modern power savings: Advanced Configuration and Power Interface (AC<strong>PI</strong>)<br />

Linux supports AC<strong>PI</strong> (Advanced Configuration and Power Interface) — the most recent standard<br />

in power management. More powerful and flexible, it is also more complicated to implement.<br />

The acpid package is the counterpart to apmd for the AC<strong>PI</strong> world.<br />

If you know that your BIOS correctly manages AC<strong>PI</strong>, then this should be preferred over APM<br />

(removed upon update of the BIOS). When moving from one to the other, you must take care<br />

to remove the apmd package, since keeping it alongside with acpid could cause problems (and<br />

vice-versa).<br />

218 The Debian Administrator's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!