![]() |
VOOZH | about |
First, simply try using the power management features of Linux on your computer. Tell Linux to suspend (System > Preferences > Power Management in Gnome). Try closing the lid. ACPI may already work.
ACPI requires a relatively new BIOS version. In particular, if you get the message,
ACPI: Could not use ECDT
during startup, you probably need a BIOS Upgrade. For example, a BIOS upgrade from version 1.02 to 1.10 was all that was needed for ACPI to start working on an A31 2652 running Red Hat Enterprise Linux 5 (CentOS 5).
Many Kernel 2.6 distributions like Red Hat Enterprise Linux 5 (Centos 5) have ACPI built in and ready to go. If not, you must enable ACPI support in your kernel.
To do this open your kernel config and enable ACPI Power Management:
You'd most likely want to enable the following ACPI options:
If you prefer editing your file directly, you should set at least the following variables:
CONFIG_PM=y CONFIG_ACPI=y CONFIG_ACPI_AC=y CONFIG_ACPI_BATTERY=y CONFIG_ACPI_BUTTON=y CONFIG_ACPI_FAN=y CONFIG_ACPI_PROCESSOR=y CONFIG_ACPI_THERMAL=y CONFIG_ACPI_BLACKLIRG_YEAR=0 CONFIG_ACPI_EC=y CONFIG_ACPI_POWER=y CONFIG_ACPI_SYSTEM=y
Then recompile your kernel.
(This should be fixed in 2.6.23, there are new CONFIG_SUSPEND and CONFIG_HIBERNATION config options)
Many ThinkPads have been hit by a recent (kernel 2.6.16) change to ACPI4Linux that changed the default means of accessing the ACPI Embedded Controller as a way to shake out underlying bugs in the EC access code. If your ThinkPad fails to resume properly (a blinking Sleep light on resume that doesn't go away, or a hang when trying to suspend/standby a second time), adding ec_intr=0 to your kernel command line may help.
If you are using kernel version 2.6.22 and later, please use the thinkpad-acpi driver included with the kernel.
According to [this thread], users with 2.6.26 kernel and higher may experience problems with ThinkPad backlight contols (Fn+Home, Fn+End on T61). The symptoms are:
ibm/hotkey HKEY 00000080 00001010
The solution is that one needs to enable `CONFIG_VIDEO_OUTPUT_CONTROL`:
Device Drivers ---> Graphics Support ---> <*> Lowlevel video output switch controls
Subsequently one should enable 'CONFIG_ACPI_VIDEO':
Power Management Options ---> [*] ACPI (Advanced Configuration and Power Interface) Support ---> <*> Video
Around kernel 2.6.27, a feature was introduced to check the hardware signature on resume from S4 (hibernate). This feature might be broken on some models. Resume will halt and the following error message is shown:
To fix it, add the following kernel parameter:
This problem appeared here on a T42p, but only if the power is unplugged while hibernated, even if the battery is still plugged. Another sympton is, that resume hangs with a dark screen if the acpi_cpufreq module is loaded, even if the power is not unplugged while hibernated. With the above mentioned kernel parameter, both problems go away.
Also you'll need to install acpid, if it isn't present on your system. acpid is a daemon that handles the ACPI events generated by the system. Read How to configure acpid.
Make sure you have
Option "DPMS"
in the Monitor section of your or .
Running $ xset +dpms and then $ xset dpms force off will turn off the backlight on a laptop screen.
Note that this may not work in combination with $ echo -n "mem" > /sys/power/state because switching to console causes the backlight to come back on before sleeping.
See also How to reduce power consumption#LCD Backlight/Brightness
ACPI Sleep/suspend-to-ram with recent 2.6.x kernels usually works fine. Have a look at the acpid configuration HOWTO. It includes a specific example for going to sleep on lid close.
For Troubleshooting, look at the Problems with ACPI suspend-to-ram page.
There are two drivers for this available:
Both are reported to work fine as long as you use open-source graphic drivers. A comparison of the features can be found on this page.
Just in case you are in doubt...yes, it is safe in both cases to use the same swap partition as active swap and as suspend partition.
See the according drivers page for instructions.
Try removing ehci_hcd before shutting down, eg, add the following line to rc.local.shutdown
rmmod ehci_hcd