]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind.c
Suspend on lid close based on power status. (#8016)
authorSimon Fowler <simon.fowler@anu.edu.au>
Fri, 9 Feb 2018 16:37:39 +0000 (02:37 +1000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 Feb 2018 16:37:39 +0000 (17:37 +0100)
commite25937a3ed740ed0618a8943dee32e8966541cdf
tree42d9943892d70e5eda8a1f745b6b3940961d6f06
parent9e42c9373c10f3287ffdd3ecd677e4b5ed0ccf42
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.
man/logind.conf.xml
src/login/logind-button.c
src/login/logind-core.c
src/login/logind-dbus.c
src/login/logind-gperf.gperf
src/login/logind.c
src/login/logind.conf.in
src/login/logind.h