summaryrefslogtreecommitdiff
path: root/man/logind.conf.xml
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 /man/logind.conf.xml
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 'man/logind.conf.xml')
-rw-r--r--man/logind.conf.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/man/logind.conf.xml b/man/logind.conf.xml
index 166038b38..09db60014 100644
--- a/man/logind.conf.xml
+++ b/man/logind.conf.xml
@@ -158,7 +158,45 @@
the operation executed
anyway. Defaults to
5s.</para></listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><varname>HandlePowerKey=</varname></term>
+ <term><varname>HandleSleepKey=</varname></term>
+ <term><varname>HandleLidSwitch=</varname></term>
+
+ <listitem><para>Controls whether
+ logind shall handle the system power
+ and sleep keys and the lid switch to
+ trigger system power-off or
+ suspend. Can be one of
+ <literal>no</literal>,
+ <literal>yes</literal> and
+ <literal>always</literal>. If
+ <literal>no</literal> logind will
+ never handle these keys. If
+ <literal>yes</literal> logind will
+ handle these keys when no user is
+ logged in and no inhibitor lock is
+ taken, and trigger a warnig beep
+ otherwise. If set to
+ <literal>always</literal> logind will
+ handle these keys even if a user is
+ logged in or an inhibitor lock is
+ taken. In all cases logind will not
+ handle these keys if a graphical
+ session is in the foreground under the
+ assumption that the graphical session
+ will handle these keys
+ internally. Only input devices with
+ the <literal>power-switch</literal>
+ udev tag will be watched for key
+ events. <varname>HandlePowerKey=</varname>
+ and <varname>HandleSleepKey=</varname>
+ default to <literal>yes</literal>,
+ <varname>HandleLidSwitch=</varname>
+ defaults to
+ <literal>no</literal>.</para></listitem>
</varlistentry>
</variablelist>