diff options
author | Mario Limonciello <mario.limonciello@dell.com> | 2018-03-28 12:01:09 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-03-30 12:01:20 +0200 |
commit | 355064675f1c997cea017ea64c8f2c216e5425d9 (patch) | |
tree | 71dcf9924f7878f793cb72f21f69fad606523b1f /Documentation/power | |
parent | dbdd0f58fd2cdde5cf945c9da67a2d52d32ba550 (diff) | |
download | linux-stable-355064675f1c997cea017ea64c8f2c216e5425d9.tar.gz linux-stable-355064675f1c997cea017ea64c8f2c216e5425d9.tar.bz2 linux-stable-355064675f1c997cea017ea64c8f2c216e5425d9.zip |
PM / hibernate: Make passing hibernate offsets more friendly
Currently the only way to specify a hibernate offset for a
swap file is on the kernel command line.
Add a new /sys/power/resume_offset that lets userspace
specify the offset and disk to use when initiating a hibernate
cycle.
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/power')
-rw-r--r-- | Documentation/power/swsusp.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/power/swsusp.txt b/Documentation/power/swsusp.txt index 9f2f942a01cf..cc87adf44c0a 100644 --- a/Documentation/power/swsusp.txt +++ b/Documentation/power/swsusp.txt @@ -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 |