]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/systemd-sleep: reorder options
authorMike Yuan <me@yhndnzj.com>
Wed, 27 Mar 2024 11:59:51 +0000 (19:59 +0800)
committerMike Yuan <me@yhndnzj.com>
Thu, 28 Mar 2024 09:16:24 +0000 (17:16 +0800)
man/systemd-sleep.conf.xml

index 411577d519c9592d31d1f0629550f219479177fd..b4db11a6b3bc110985c1b177b3310ab38b4b477a 100644 (file)
       </varlistentry>
 
       <varlistentry>
-        <term><varname>HibernateMode=</varname></term>
+        <term><varname>SuspendState=</varname></term>
 
-        <listitem><para>The string to be written to <filename>/sys/power/disk</filename> by <citerefentry>
-        <refentrytitle>systemd-hibernate.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
+        <listitem><para>The string to be written to <filename>/sys/power/state</filename> by <citerefentry>
+        <refentrytitle>systemd-suspend.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
         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.</para>
 
         <para>The allowed set of values is determined by the kernel and is shown in the file itself (use
-        <command>cat /sys/power/disk</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">
+        <command>cat /sys/power/state</command> to display). See <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>
 
         <para>
         <citerefentry><refentrytitle>systemd-suspend-then-hibernate.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
-        uses the value of <varname>HibernateMode=</varname> when hibernating.</para>
+        uses this value when suspending.</para>
 
         <xi:include href="version-info.xml" xpointer="v203"/></listitem>
       </varlistentry>
 
       <varlistentry>
-        <term><varname>SuspendState=</varname></term>
+        <term><varname>HibernateMode=</varname></term>
 
-        <listitem><para>The string to be written to <filename>/sys/power/state</filename> by <citerefentry>
-        <refentrytitle>systemd-suspend.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
+        <listitem><para>The string to be written to <filename>/sys/power/disk</filename> by <citerefentry>
+        <refentrytitle>systemd-hibernate.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
         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.</para>
 
         <para>The allowed set of values is determined by the kernel and is shown in the file itself (use
-        <command>cat /sys/power/state</command> to display). See <ulink
-        url="https://docs.kernel.org/admin-guide/pm/sleep-states.html#basic-sysfs-interfaces-for-system-suspend-and-hibernation">
+        <command>cat /sys/power/disk</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>
 
         <para>
         <citerefentry><refentrytitle>systemd-suspend-then-hibernate.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
-        uses this value when suspending.</para>
+        uses the value of <varname>HibernateMode=</varname> when hibernating.</para>
 
         <xi:include href="version-info.xml" xpointer="v203"/></listitem>
       </varlistentry>