man: document default HibernateDelaySec= setting

This commit is contained in:
Lennart Poettering 2019-07-29 12:49:38 +02:00
parent c846b23387
commit a077755abf
2 changed files with 5 additions and 6 deletions

View File

@ -168,11 +168,10 @@
<varlistentry> <varlistentry>
<term><varname>HibernateDelaySec=</varname></term> <term><varname>HibernateDelaySec=</varname></term>
<listitem><para>The amount of time in seconds <listitem><para>The amount of time the system spends in suspend mode before the system is
that will pass before the system is automatically automatically put into hibernate mode, when using
put into hibernate when using <citerefentry><refentrytitle>systemd-suspend-then-hibernate.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>. Defaults
<citerefentry><refentrytitle>systemd-suspend-then-hibernate.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>. to 2h.</para></listitem>
</para></listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
</refsect1> </refsect1>

View File

@ -82,7 +82,7 @@ int parse_sleep_config(SleepConfig **ret_sleep_config) {
if (!sc->hybrid_states) if (!sc->hybrid_states)
sc->hybrid_states = strv_new("disk"); sc->hybrid_states = strv_new("disk");
if (sc->hibernate_delay_sec == 0) 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 */ /* ensure values set for all required fields */
if (!sc->suspend_states || !sc->hibernate_modes if (!sc->suspend_states || !sc->hibernate_modes