Differences between revisions 2 and 3
Revision 2 as of 2007-07-27 03:30:29
Size: 2175
Editor: ?timrichardson
Comment:
Revision 3 as of 2007-07-27 03:31:02
Size: 2175
Editor: ?timrichardson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
At the moment, practical advice is 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] 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]

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]

Example

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

event=button/sleep
action=/etc/acpi/actions/custom_sleep.sh

Script /etc/acpi/events/custom_lid

event=button/lid
action=/etc/acpi/actions/custom_sleep.sh

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