X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Documentation%2Fpower%2Fswsusp.txt;h=08c79d4dc54036af80bb6ac0bc8b9e6e3528fabf;hb=3f471126ee53feb5e9b210ea2f525ed3bb9b7a7f;hp=b0d50840788ebf80fd478ac9db3e8ef841716e26;hpb=0d9136fdbcdbddcd4eb5ac94c248c039193d4795;p=powerpc.git diff --git a/Documentation/power/swsusp.txt b/Documentation/power/swsusp.txt index b0d5084078..08c79d4dc5 100644 --- a/Documentation/power/swsusp.txt +++ b/Documentation/power/swsusp.txt @@ -27,6 +27,11 @@ echo shutdown > /sys/power/disk; echo disk > /sys/power/state echo platform > /sys/power/disk; echo disk > /sys/power/state +If you want to limit the suspend image size to N megabytes, do + +echo N > /sys/power/image_size + +before suspend (it is limited to 500 MB by default). Encrypted suspend image: ------------------------ @@ -207,7 +212,7 @@ A: Try running cat `cat /proc/[0-9]*/maps | grep / | sed 's:.* /:/:' | sort -u` > /dev/null -after resume. swapoff -a; swapon -a may also be usefull. +after resume. swapoff -a; swapon -a may also be useful. Q: What happens to devices during swsusp? They seem to be resumed during system suspend? @@ -318,7 +323,7 @@ to be useless to try to suspend to disk while that app is running? A: No, it should work okay, as long as your app does not mlock() it. Just prepare big enough swap partition. -Q: What information is usefull for debugging suspend-to-disk problems? +Q: What information is useful for debugging suspend-to-disk problems? A: Well, last messages on the screen are always useful. If something is broken, it is usually some kernel driver, therefore trying with as