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>
<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>

View 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