Power Management and ACPI

Most of this works out-of-the-box. [http://faq.pathfinderteam.org/index.php/Samsung_X20 this page on the Samsung X20 (in German)] has many good hints.

There are several aspects to power management:

  1. React to "battery low" events by shutting down gracefully or suspending. acpid can do it (it works), but the actions must be written by hand.

  2. React to "critical temperature" events. Should be possible with acpid, too. Not tested.

  3. Do a graceful shutdown when the power button is pressed. OK with acpid.

  4. Carry out suspend-to-disk or suspend-to-RAM. Requires kernel recompilation on Debian. Not yet tested.
  5. Regulate the power consumption of different subsystems according to battery/AC state and computing demands to obtain maximum battery lifetime. This can be done in several ways.
    • The most powerful approach is using ACPI power states, but this is hardly implemented in Linux right now (2005).
    • "laptop-mode-tools" for regulating disk activity (unfortunately pointless with SATA, see ["../HDDandCDrom"])
    • CPU frequency control: There are many tools for this ([http://www.gentoo.de/doc/de/power-management-guide.xml see here for a comparison]). I opted for cpufrequtils because it's lightweight, easy to use in scripts, and powerful enough for my purposes. I am using the kernel "performance" governor with AC connected, the "ondemand" governor on battery, and the "powersave" governor in "etiquette mode".

      I put the following into /etc/modules to enable power control: