Commit | Line | Data |
---|---|---|
d7ae79c7 | 1 | Some 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 | ||
21 | You need to append resume=/dev/your_swap_partition to kernel command | |
22 | line. Then you suspend by | |
23 | ||
24 | echo 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 | ||
28 | echo platform > /sys/power/disk; echo disk > /sys/power/state | |
29 | ||
30 | ||
d7ae79c7 PM |
31 | Encrypted suspend image: |
32 | ------------------------ | |
33 | If you want to store your suspend image encrypted with a temporary | |
34 | key to prevent data gathering after resume you must compile | |
35 | crypto and the aes algorithm into the kernel - modules won't work | |
36 | as they cannot be loaded at resume time. | |
37 | ||
1da177e4 LT |
38 | |
39 | Article about goals and implementation of Software Suspend for Linux | |
40 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
41 |