[PATCH] UHCI: Work around old Intel bug
[deliverable/linux.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.
543cc27d
PM
20 *
21 * If you have any filesystems on USB devices mounted before suspend,
22 * they won't be accessible after resume and you may lose data, as though
23 * you have unplugged the USB devices with mounted filesystems on them
24 * (see the FAQ below for details).
1da177e4
LT
25
26You need to append resume=/dev/your_swap_partition to kernel command
27line. Then you suspend by
28
29echo shutdown > /sys/power/disk; echo disk > /sys/power/state
30
31. If you feel ACPI works pretty well on your system, you might try
32
33echo platform > /sys/power/disk; echo disk > /sys/power/state
34
543cc27d
PM
35. If you have SATA disks, you'll need recent kernels with SATA suspend
36support. For suspend and resume to work, make sure your disk drivers
37are built into kernel -- not modules. [There's way to make
38suspend/resume with modular disk drivers, see FAQ, but you probably
39should not do that.]
40
853609b6 41If you want to limit the suspend image size to N bytes, do
ca0aec0f
RW
42
43echo N > /sys/power/image_size
44
45before suspend (it is limited to 500 MB by default).
1da177e4
LT
46
47
48Article about goals and implementation of Software Suspend for Linux
49~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~