Differences between revisions 4 and 5
Revision 4 as of 2007-07-27 03:31:28
Size: 2199
Editor: ?timrichardson
Comment:
Revision 5 as of 2007-07-27 03:58:58
Size: 2193
Editor: ?timrichardson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
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] At the moment, some hints 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, some hints 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


CategoryHardware