Help on software suspend

This page gathers bits of information about getting software suspend to work in debian. Because software suspend is still experimental, it is not enabled by default on most machines. Depending on your system, a few more steps are needed to get suspend partially or fully working.

For more reading material, see also the links at the bottom of this page about hibernate and suspend.

This page is being updated to reflect the more recent technique using HAL (for example, used in Debian Lenny (testing) with kernel 2.6.22). At the moment, practical advice in getting suspend and resume with HAL to work may be found here: [ Suspend quirks with HAL]


The following scripts were needed to get suspend to ram working on a ?ThinkPad X22 running linux-image 2.6.14-2 and tracking unstable.

Script /etc/acpi/events/custom_sleepbtn


Script /etc/acpi/events/custom_lid


Script /etc/acpi/actions/

# enable xscreensaver
source /proc/`pidof xscreensaver`/environ && xscreensaver-command -lock

## optional: eject all pcmcia devices
#cardctl eject || true

# go to sleep
echo mem > /sys/power/state

Make sure the files you create in /etc/acpi/actions are executable:

$ sudo chmod +x /etc/acpi/actions/