]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - Documentation/power/swsusp.txt
[PATCH] uml: compilation fix when MODE_SKAS disabled
[mirror_ubuntu-artful-kernel.git] / Documentation / power / swsusp.txt
CommitLineData
d7ae79c7 1Some warnings, first.
1da177e4
LT
2
3 * BIG FAT WARNING *********************************************************
4 *
1da177e4
LT
5 * If you touch anything on disk between suspend and resume...
6 * ...kiss your data goodbye.
7 *
d7ae79c7
PM
8 * If you do resume from initrd after your filesystems are mounted...
9 * ...bye bye root partition.
10 * [this is actually same case as above]
1da177e4 11 *
d7ae79c7
PM
12 * If you have unsupported (*) devices using DMA, you may have some
13 * problems. If your disk driver does not support suspend... (IDE does),
14 * it may cause some problems, too. If you change kernel command line
15 * between suspend and resume, it may do something wrong. If you change
16 * your hardware while system is suspended... well, it was not good idea;
17 * but it will probably only crash.
1da177e4
LT
18 *
19 * (*) suspend/resume support is needed to make it safe.
20
21You need to append resume=/dev/your_swap_partition to kernel command
22line. Then you suspend by
23
24echo shutdown > /sys/power/disk; echo disk > /sys/power/state
25
26. If you feel ACPI works pretty well on your system, you might try
27
28echo platform > /sys/power/disk; echo disk > /sys/power/state
29
ca0aec0f
RW
30If you want to limit the suspend image size to N megabytes, do
31
32echo N > /sys/power/image_size
33
34before suspend (it is limited to 500 MB by default).
1da177e4 35
d7ae79c7
PM
36Encrypted suspend image:
37------------------------
38If you want to store your suspend image encrypted with a temporary
39key to prevent data gathering after resume you must compile
40crypto and the aes algorithm into the kernel - modules won't work
41as they cannot be loaded at resume time.
42
1da177e4
LT
43
44Article about goals and implementation of Software Suspend for Linux
45~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46