summaryrefslogtreecommitdiff
path: root/src/login/logind.conf.in
diff options
context:
space:
mode:
authorSimon Fowler <simon.fowler@anu.edu.au>2018-02-10 02:37:39 +1000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-02-09 17:37:39 +0100
commite25937a3ed740ed0618a8943dee32e8966541cdf (patch)
tree42d9943892d70e5eda8a1f745b6b3940961d6f06 /src/login/logind.conf.in
parent9e42c9373c10f3287ffdd3ecd677e4b5ed0ccf42 (diff)
downloadsystemd-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 'src/login/logind.conf.in')
-rw-r--r--src/login/logind.conf.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind.conf.in b/src/login/logind.conf.in
index 6f720b7708..40a77dc7be 100644
--- a/src/login/logind.conf.in
+++ b/src/login/logind.conf.in
@@ -22,6 +22,7 @@
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
+#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no