Differences between revisions 3 and 4
Revision 3 as of 2007-07-27 03:31:02
Size: 2175
Editor: ?timrichardson
Revision 4 as of 2007-07-27 03:31:28
Size: 2199
Editor: ?timrichardson
Deletions are marked like this. Additions are marked like this.
Line 63: Line 63:

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: [http://people.freedesktop.org/~hughsient/quirk/quirk-suspend-intro.html 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/custom_sleep.sh

# 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/custom_sleep.sh