Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | From 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 | ||
23 | You need to append resume=/dev/your_swap_partition to kernel command | |
24 | line. Then you suspend by | |
25 | ||
26 | echo 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 | ||
30 | echo platform > /sys/power/disk; echo disk > /sys/power/state | |
31 | ||
32 | ||
33 | ||
34 | Article about goals and implementation of Software Suspend for Linux | |
35 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |