]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - Documentation/power/swsusp.txt
PM / hibernate: Make passing hibernate offsets more friendly
[mirror_ubuntu-bionic-kernel.git] / Documentation / power / swsusp.txt
index 9f2f942a01cfa969a06068503625938f7f3569e4..cc87adf44c0a0a56c425a75f1043314fe42381d3 100644 (file)
@@ -24,8 +24,16 @@ Some warnings, first.
  * see the FAQ below for details.  (This is not true for more traditional
  * power states like "standby", which normally don't turn USB off.)
 
+Swap partition:
 You need to append resume=/dev/your_swap_partition to kernel command
-line. Then you suspend by
+line or specify it using /sys/power/resume.
+
+Swap file:
+If using a swapfile you can also specify a resume offset using
+resume_offset=<number> on the kernel command line or specify it
+in /sys/power/resume_offset.
+
+After preparing then you suspend by
 
 echo shutdown > /sys/power/disk; echo disk > /sys/power/state