man: document default HibernateDelaySec= setting
This commit is contained in:
parent
c846b23387
commit
a077755abf
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue