Next: SuspendNvidia, Previous: Thermal, Up: Top
Please read this notes before trying to use the suspend feature.
First, some definitions so there's no confusion about the used terms:
With ACPI it is pretty straightforward: the operating system has to prepare itself for the upcoming sleep state and then enter it with (little) help of BIOS routines. This is still work in progress and not finished.
Unfortunately, things get a bit more complicated when using APM. With APM, there are only two states: standby and suspend. So with APM you get the following possible states:
powersave -U
, kpowersave
: Suspend to Disk).
Please note that suspend with ACPI is still experimental and may not
work on all hardware. Especially suspend to RAM (ACPI S3) is very
problematic on many machines.
To avoid trouble for unwary users, we have disabled suspend and
standby for normal users in the default configuration on non-notebook
machines.
If you'd like to try out suspend, you have to change the values of
DISABLE_USER_SUSPEND2DISK
, DISABLE_USER_SUSPEND2RAM
or
DISABLE_USER_STANDBY
in /etc/powersave/sleep
to "no" or
run the powersave
command as superuser root
.
Warning: failing suspend/standby-cycles can lead to filesystem corruption and loss of data, so try this only if you know what you are doing. For the first tries it is advisable to close all open files and have only a small number of programs and services active on the machine. |
The powersave package provides a uniform interface to both APM and
ACPI but there are still some differences, which have to be adressed
by the configuration settings.
You can determine the powermanagement system used by your machine with
the command "powersave -S
".
Using ACPI, suspend to disk is known to work better than standby /
suspend to RAM, so try this first.
For first tests it is advisable to set DEBUG
to 7 or 15 to
increase the verbosity of the powersaved and of the proxy scripts. You
will find a lot of diagnostics output in /var/log/messages
after
restarting powersaved.
Also, there are some modules/services which are known to cause problems
with suspend, so be sure you installed the newest update kernel.
3D acceleration for graphic cards is known not to work with suspend
sometimes (the binary only drivers from NVidia and ATI are a prominent
example).
However, this issue is being worked on and you already may be able to
suspend with acceleration enabled. If you experience any hardware problems
on suspend, we would appreciate to be informed about the hardware type
that fails (for contact have a look at the end of this file).
So now you are ready to go? Fingers crossed?
Well, let's try. Open a terminal and issue "powersave -U
". If
everything goes well, the machine should switch to a text console after
a few seconds, showing you some progress marks and finally power off.
Power it back on and it should begin a normal boot but then recognize
the saved image and resume. If everything goes well, the machine should
be at the same state it was when the suspend started.
What can go wrong?
ps auxfww
".
/etc/powersave/sleep
to UNLOAD_MODULES_BEFORE_SUSPEND
.
UNLOAD_MODULES_BEFORE_SUSPEND
.
/var/log/suspend*.log
. A state file that
records which services were stopped and which modules unloaded is in
/var/lib/suspend*-state
.
Since suspend is in constant development and we don't have the possibility to test on every available hardware, we appreciate any feedback either via http://www.suse.com/feedback or on the suse-laptop mailinglist to which you may subscribe via http://www.suse.com (and even if you are trying suspend on a desktop machine, you are welcome on the suse-laptop mailinglist). Note, that this list is mostly german speaking, but you are generally welcome in english, too.