]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - Documentation/power/swsusp.txt
Linux-2.6.12-rc2
[mirror_ubuntu-artful-kernel.git] / Documentation / power / swsusp.txt
CommitLineData
1da177e4
LT
1From kernel/suspend.c:
2
3 * BIG FAT WARNING *********************************************************
4 *
5 * If you have unsupported (*) devices using DMA...
6 * ...say goodbye to your data.
7 *
8 * If you touch anything on disk between suspend and resume...
9 * ...kiss your data goodbye.
10 *
11 * If your disk driver does not support suspend... (IDE does)
12 * ...you'd better find out how to get along
13 * without your data.
14 *
15 * If you change kernel command line between suspend and resume...
16 * ...prepare for nasty fsck or worse.
17 *
18 * If you change your hardware while system is suspended...
19 * ...well, it was not good idea.
20 *
21 * (*) suspend/resume support is needed to make it safe.
22
23You need to append resume=/dev/your_swap_partition to kernel command
24line. Then you suspend by
25
26echo shutdown > /sys/power/disk; echo disk > /sys/power/state
27
28. If you feel ACPI works pretty well on your system, you might try
29
30echo platform > /sys/power/disk; echo disk > /sys/power/state
31
32
33
34Article about goals and implementation of Software Suspend for Linux
35~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36