diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-03-27 12:45:34 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-03-28 10:19:35 +0100 |
commit | a2124b35e92178fd028d7c29ecdd5e80ea7f7b8f (patch) | |
tree | 0ff768a0ed336bd290d6279a1c93b9ac74f54990 /man/systemd-sleep.conf.xml | |
parent | sleep: make write_mode take a path (diff) | |
download | systemd-a2124b35e92178fd028d7c29ecdd5e80ea7f7b8f.tar.xz systemd-a2124b35e92178fd028d7c29ecdd5e80ea7f7b8f.zip |
sleep: add SleepMemMode= setting for configuring /sys/power/mem_sleep
The setting is used when /sys/power/state is set to 'mem'
(common for suspend) or /sys/power/disk is set to 'suspend'
(hybrid-sleep). We default to kernel choice here, i.e.
respect what's set through 'mem_sleep_default=' kernel
cmdline option.
Diffstat (limited to 'man/systemd-sleep.conf.xml')
-rw-r--r-- | man/systemd-sleep.conf.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/man/systemd-sleep.conf.xml b/man/systemd-sleep.conf.xml index b4db11a6b3..7a343975d7 100644 --- a/man/systemd-sleep.conf.xml +++ b/man/systemd-sleep.conf.xml @@ -196,6 +196,24 @@ </varlistentry> <varlistentry> + <term><varname>SleepMemMode=</varname></term> + + <listitem><para>The string to be written to <filename>/sys/power/mem_sleep</filename> + when <option>SuspendState=mem</option> or <command>hybrid-sleep</command> is used. + More than one value can be specified by separating multiple values with whitespace. They will be + tried in turn, until one is written without error. If none of the writes succeed, the operation will + be aborted. Defaults to empty, i.e. the kernel default or kernel command line option + <varname>mem_sleep_default=</varname> is respected.</para> + + <para>The allowed set of values is determined by the kernel and is shown in the file itself (use + <command>cat /sys/power/mem_sleep</command> to display). See the kernel documentation page + <ulink url="https://docs.kernel.org/admin-guide/pm/sleep-states.html#basic-sysfs-interfaces-for-system-suspend-and-hibernation"> + Basic sysfs Interfaces for System Suspend and Hibernation</ulink> for more details.</para> + + <xi:include href="version-info.xml" xpointer="v256"/></listitem> + </varlistentry> + + <varlistentry> <term><varname>HibernateDelaySec=</varname></term> <listitem> |