diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-07-29 12:49:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-07-29 12:49:38 +0200 |
commit | a077755abf6ecca7f801d306e363d7581150e23f (patch) | |
tree | bb8c1c8d061682fc101e8667c3d0da16fdf83c1a | |
parent | c846b23387a36d0e8a0ffb94d8dfcf66e9f3ba81 (diff) | |
download | systemd-a077755abf6ecca7f801d306e363d7581150e23f.tar.gz |
man: document default HibernateDelaySec= setting
-rw-r--r-- | man/systemd-sleep.conf.xml | 9 | ||||
-rw-r--r-- | src/shared/sleep-config.c | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/man/systemd-sleep.conf.xml b/man/systemd-sleep.conf.xml index 3311a046ca..a6949b0c3b 100644 --- a/man/systemd-sleep.conf.xml +++ b/man/systemd-sleep.conf.xml @@ -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> diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index 0efbd7c7be..4254c8a9d4 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -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 |