summaryrefslogtreecommitdiff
path: root/src/login/logind-gperf.gperf
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-30 15:01:51 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-30 15:01:51 +0200
commit069cfc85f876bb6966cb5a9bbe0235f5064622cd (patch)
treea16d282285e3c34e8af510a86d063bd5ba92804e /src/login/logind-gperf.gperf
parent939b8f14dcd9312140d001b55b4e7a87173682ef (diff)
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.
Diffstat (limited to 'src/login/logind-gperf.gperf')
-rw-r--r--src/login/logind-gperf.gperf3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/login/logind-gperf.gperf b/src/login/logind-gperf.gperf
index d8ef92a016..72fdad739b 100644
--- a/src/login/logind-gperf.gperf
+++ b/src/login/logind-gperf.gperf
@@ -21,3 +21,6 @@ Login.KillExcludeUsers, config_parse_strv, 0, offsetof(Manager, kill_exclud
Login.Controllers, config_parse_strv, 0, offsetof(Manager, controllers)
Login.ResetControllers, config_parse_strv, 0, offsetof(Manager, reset_controllers)
Login.InhibitDelayMaxSec,config_parse_usec, 0, offsetof(Manager, inhibit_delay_max)
+Login.HandlePowerKey, config_parse_handle_button, 0, offsetof(Manager, handle_power_key)
+Login.HandleSleepKey, config_parse_handle_button, 0, offsetof(Manager, handle_sleep_key)
+Login.HandleLidSwitch, config_parse_handle_button, 0, offsetof(Manager, handle_lid_switch)