]> err.no Git - systemd/commit
logind: optionally handle power, sleep and lid switch events
authorLennart Poettering <lennart@poettering.net>
Wed, 30 May 2012 13:01:51 +0000 (15:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 May 2012 13:01:51 +0000 (15:01 +0200)
commit069cfc85f876bb6966cb5a9bbe0235f5064622cd
treea16d282285e3c34e8af510a86d063bd5ba92804e
parent939b8f14dcd9312140d001b55b4e7a87173682ef
logind: optionally handle power, sleep and lid switch events

This takes handling of chassis power and sleep keys as well as the lid
switch over from acpid.

This logic is enabled by default for power and sleep keys, but not for
the lid switch.

If a graphical session is in the foreground no action is taken under the
assumption that the graphical session does this.
12 files changed:
Makefile.am
TODO
man/logind.conf.xml
src/login/logind-dbus.c
src/login/logind-gperf.gperf
src/login/logind-inhibit.c
src/login/logind-session.c
src/login/logind.c
src/login/logind.conf
src/login/logind.h
src/shared/util.c
src/shared/util.h