From: Pavel Machek Documentation update. Signed-off-by: Andrew Morton --- 25-akpm/Documentation/power/swsusp.txt | 77 +++++++++++++-------------------- 25-akpm/Documentation/power/video.txt | 11 +++- 2 files changed, 39 insertions(+), 49 deletions(-) diff -puN Documentation/power/swsusp.txt~swsusp-documentation-update Documentation/power/swsusp.txt --- 25/Documentation/power/swsusp.txt~swsusp-documentation-update Mon Oct 4 15:05:18 2004 +++ 25-akpm/Documentation/power/swsusp.txt Mon Oct 4 15:05:18 2004 @@ -15,10 +15,18 @@ From kernel/suspend.c: * If you change kernel command line between suspend and resume... * ...prepare for nasty fsck or worse. * - * (*) pm interface support is needed to make it safe. + * (*) suspend/resume support is needed to make it safe. You need to append resume=/dev/your_swap_partition to kernel command -line. Then you suspend by echo 4 > /proc/acpi/sleep. +line. Then you suspend by + +echo shutdown > /sys/power/disk; echo disk > /sys/power/state + +. If you feel ACPI works pretty well on your system, you might try + +echo platform > /sys/power/disk; echo disk > /sys/power/state + + Article about goals and implementation of Software Suspend for Linux ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -32,42 +40,24 @@ saves the state of the machine to a file to standby mode. Later resuming the machine the saved state is loaded back to ram and the machine can continue its work. It has two real benefits. First we save ourselves the time machine goes down and later boots up, energy costs -real high when running from batteries. The other gain is that we don't have to +are real high when running from batteries. The other gain is that we don't have to interrupt our programs so processes that are calculating something for a long time shouldn't need to be written interruptible. -Using the code - -You have two ways to use this code. The first one is is with a patched -SysVinit (my patch is against 2.76 and available at my home page). You -might call 'swsusp' or 'shutdown -z