diff options
author | Simon Fowler <simon.fowler@anu.edu.au> | 2018-02-10 02:37:39 +1000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-02-09 17:37:39 +0100 |
commit | e25937a3ed740ed0618a8943dee32e8966541cdf (patch) | |
tree | 42d9943892d70e5eda8a1f745b6b3940961d6f06 /man | |
parent | 9e42c9373c10f3287ffdd3ecd677e4b5ed0ccf42 (diff) | |
download | systemd-e25937a3ed740ed0618a8943dee32e8966541cdf.tar.gz |
Suspend on lid close based on power status. (#8016)
This change adds support for controlling the suspend-on-lid-close
behaviour based on the power status as well as whether the machine is
docked or has an external monitor. For backwards compatibility the new
configuration file variable is ignored completely by default, and must
be set explicitly before being considered in any decisions.
Diffstat (limited to 'man')
-rw-r--r-- | man/logind.conf.xml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/man/logind.conf.xml b/man/logind.conf.xml index 8d2bfc5d5b..4a64ddb827 100644 --- a/man/logind.conf.xml +++ b/man/logind.conf.xml @@ -211,6 +211,7 @@ <term><varname>HandleSuspendKey=</varname></term> <term><varname>HandleHibernateKey=</varname></term> <term><varname>HandleLidSwitch=</varname></term> + <term><varname>HandleLidSwitchExternalPower=</varname></term> <term><varname>HandleLidSwitchDocked=</varname></term> <listitem><para>Controls how logind shall handle the @@ -235,12 +236,17 @@ <varname>HandleSuspendKey=</varname> and <varname>HandleLidSwitch=</varname> default to <literal>suspend</literal>. - <varname>HandleLidSwitchDocked=</varname> defaults to - <literal>ignore</literal>. + <varname>HandleLidSwitchExternalPower=</varname> is completely + ignored by default (for backwards compatibility) — an explicit + value must be set before it will be used to determine + behaviour. <varname>HandleLidSwitchDocked=</varname> defaults + to <literal>ignore</literal>. <varname>HandleHibernateKey=</varname> defaults to <literal>hibernate</literal>. If the system is inserted in a docking station, or if more than one display is connected, the action specified by <varname>HandleLidSwitchDocked=</varname> + occurs; if the system is on external power the action (if any) + specified by <varname>HandleLidSwitchExternalPower=</varname> occurs; otherwise the <varname>HandleLidSwitch=</varname> action occurs.</para> |