Merge pull request #13212 from poettering/sleep-conf-default
sleep: document default HibernateDelaySec=
This commit is contained in:
commit
df38212dd1
15
TODO
15
TODO
|
@ -19,6 +19,21 @@ Janitorial Clean-ups:
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
|
* beef up s2h to implement a battery watch loop: instead of entering
|
||||||
|
hibernation unconditionally after coming back from resume make a decision
|
||||||
|
based on the battery load level: if battery level is above a specific
|
||||||
|
threshold, go to suspend again, only hibernate if below it. This means we'd
|
||||||
|
stick to suspend usually, but fall back to hibernation only when battery runs
|
||||||
|
empty (well, subject to our sampling interval). Related to this, check if we
|
||||||
|
can make ACPI _BTP (i.e. /sys/class/power_supply/*/alarm) work for us too,
|
||||||
|
i.e. see if it can wake up machines from suspend, so that we could resume
|
||||||
|
automatically when the system is low on power and move automatically to
|
||||||
|
hibernation mode. (see
|
||||||
|
https://uefi.org/sites/default/files/resources/ACPI%206_2_A_Sept29.pdf
|
||||||
|
section 10.2.2.8 and
|
||||||
|
https://docs.microsoft.com/en-us/windows-hardware/design/device-experiences/modern-standby-wake-sources
|
||||||
|
at the end).
|
||||||
|
|
||||||
* add an explicit "vertical" mode to format-table, so that "systemctl
|
* add an explicit "vertical" mode to format-table, so that "systemctl
|
||||||
status"-like outputs (i.e. with a series of field names left and values
|
status"-like outputs (i.e. with a series of field names left and values
|
||||||
right) become genuine first class citizens, and we gain automatic, sane JSON
|
right) become genuine first class citizens, and we gain automatic, sane JSON
|
||||||
|
|
|
@ -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 New Issue