chiark / gitweb /
man: explain a bit more detailed what happens on suspend
authorLennart Poettering <lennart@poettering.net>
Tue, 30 Oct 2012 23:19:34 +0000 (00:19 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 30 Oct 2012 23:48:20 +0000 (00:48 +0100)
man/systemctl.xml
man/systemd-suspend.service.xml

index 786c2bd..31f3b1a 100644 (file)
                         <varlistentry>
                                 <term><command>suspend</command></term>
 
                         <varlistentry>
                                 <term><command>suspend</command></term>
 
-                                <listitem><para>Suspend the system.</para></listitem>
+                                <listitem><para>Suspend the
+                                system. This will trigger activation
+                                of the special
+                                <filename>suspend.target</filename>
+                                target.</para></listitem>
                         </varlistentry>
                         <varlistentry>
                                 <term><command>hibernate</command></term>
 
                         </varlistentry>
                         <varlistentry>
                                 <term><command>hibernate</command></term>
 
-                                <listitem><para>Hibernate the system.</para></listitem>
+                                <listitem><para>Hibernate the
+                                system. This will trigger activation
+                                of the special
+                                <filename>hibernate.target</filename>
+                                target.</para></listitem>
                         </varlistentry>
                         <varlistentry>
                                 <term><command>hybrid-sleep</command></term>
 
                         </varlistentry>
                         <varlistentry>
                                 <term><command>hybrid-sleep</command></term>
 
-                                <listitem><para>Hibernate and suspend the system.</para></listitem>
+                                <listitem><para>Hibernate and suspend
+                                the system. This will trigger
+                                activation of the special
+                                <filename>hybrid-sleep.target</filename>
+                                target.</para></listitem>
                         </varlistentry>
                         <varlistentry>
                                 <term><command>switch-root [ROOT] [INIT]</command></term>
                         </varlistentry>
                         <varlistentry>
                                 <term><command>switch-root [ROOT] [INIT]</command></term>
index b9464c8..9b8bad4 100644 (file)
                 system sleep states with a command such as
                 "<literal>systemctl suspend</literal>" or
                 similar.</para>
                 system sleep states with a command such as
                 "<literal>systemctl suspend</literal>" or
                 similar.</para>
+
+                <para>Internally, this service will echo a string like
+                <literal>mem</literal> into
+                <filename>/sys/power/state</filename>, to trigger the
+                actual system suspend.</para>
         </refsect1>
 
         <refsect1>
         </refsect1>
 
         <refsect1>