]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: document default HibernateDelaySec= setting 13212/head
authorLennart Poettering <lennart@poettering.net>
Mon, 29 Jul 2019 10:49:38 +0000 (12:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 29 Jul 2019 10:49:38 +0000 (12:49 +0200)
man/systemd-sleep.conf.xml
src/shared/sleep-config.c

index 3311a046ca961ece99585aa0118b9ebf5185d4df..a6949b0c3b1ef5283a17666cee2bb82b8b0b5b86 100644 (file)
       <varlistentry>
         <term><varname>HibernateDelaySec=</varname></term>
 
-        <listitem><para>The amount of time in seconds
-        that will pass before the system is automatically
-        put into hibernate when using
-        <citerefentry><refentrytitle>systemd-suspend-then-hibernate.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
-        </para></listitem>
+        <listitem><para>The amount of time the system spends in suspend mode before the system is
+        automatically put into hibernate mode, when using
+        <citerefentry><refentrytitle>systemd-suspend-then-hibernate.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>. Defaults
+        to 2h.</para></listitem>
       </varlistentry>
     </variablelist>
   </refsect1>
index 0efbd7c7bed68c6c0f3c4f3645f94db22e9a3fff..4254c8a9d42e03d8c374382357c315b4f768cab1 100644 (file)
@@ -82,7 +82,7 @@ int parse_sleep_config(SleepConfig **ret_sleep_config) {
         if (!sc->hybrid_states)
                 sc->hybrid_states = strv_new("disk");
         if (sc->hibernate_delay_sec == 0)
-                sc->hibernate_delay_sec = 180 * USEC_PER_MINUTE;
+                sc->hibernate_delay_sec = 2 * USEC_PER_HOUR;
 
         /* ensure values set for all required fields */
         if (!sc->suspend_states || !sc->hibernate_modes