mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-21 18:03:41 +03:00
man: document default HibernateDelaySec= setting
This commit is contained in:
parent
c846b23387
commit
a077755abf
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user