summaryrefslogtreecommitdiff
path: root/man/logind.conf.xml
diff options
context:
space:
mode:
authorYegor Alexeyev <yegor.alexeyev@gmail.com>2021-06-12 01:18:07 +0300
committerLennart Poettering <lennart@poettering.net>2021-07-08 13:08:20 +0200
commita520bb665417af7aa98dcb983f3583659bbab807 (patch)
treea337ccca6ad44c916b217b047dfff520444f5aa5 /man/logind.conf.xml
parent949162552daeb74ef79fb0dc5ec55d544bac4648 (diff)
downloadsystemd-a520bb665417af7aa98dcb983f3583659bbab807.tar.gz
logind: allow binding different operation to reboot key long presses
Diffstat (limited to 'man/logind.conf.xml')
-rw-r--r--man/logind.conf.xml23
1 files changed, 15 insertions, 8 deletions
diff --git a/man/logind.conf.xml b/man/logind.conf.xml
index be62b6b572..5dc24a3f05 100644
--- a/man/logind.conf.xml
+++ b/man/logind.conf.xml
@@ -194,12 +194,16 @@
<varlistentry>
<term><varname>HandlePowerKey=</varname></term>
+ <term><varname>HandlePowerKeyLongPress=</varname></term>
+ <term><varname>HandleRebootKey=</varname></term>
+ <term><varname>HandleRebootKeyLongPress=</varname></term>
<term><varname>HandleSuspendKey=</varname></term>
+ <term><varname>HandleSuspendKeyLongPress=</varname></term>
<term><varname>HandleHibernateKey=</varname></term>
+ <term><varname>HandleHibernateKeyLongPress=</varname></term>
<term><varname>HandleLidSwitch=</varname></term>
<term><varname>HandleLidSwitchExternalPower=</varname></term>
<term><varname>HandleLidSwitchDocked=</varname></term>
- <term><varname>HandleRebootKey=</varname></term>
<listitem><para>Controls how logind shall handle the
system power, reboot and sleep keys and the lid switch to trigger
@@ -221,17 +225,20 @@
<literal>power-switch</literal> udev tag will be watched for
key/lid switch events. <varname>HandlePowerKey=</varname>
defaults to <literal>poweroff</literal>, <varname>HandleRebootKey=</varname>
- defaults to <literal>reboot</literal>.
- <varname>HandleSuspendKey=</varname> and
- <varname>HandleLidSwitch=</varname> default to
+ defaults to <literal>reboot</literal>, <varname>HandleSuspendKey=</varname>
+ defaults to <literal>suspend</literal>, <varname>HandleHibernateKey=</varname>
+ defaults to <literal>hibernate</literal>, <varname>HandlePowerKeyLongPress=</varname>
+ defaults to <literal>ignore</literal>, <varname>HandleRebootKeyLongPress=</varname>
+ defaults to <literal>poweroff</literal>, <varname>HandleSuspendKeyLongPress=</varname>
+ defaults to <literal>hibernate</literal>, <varname>HandleHibernateKeyLongPress=</varname>
+ defaults to <literal>ignore</literal>.
+ <varname>HandleLidSwitch=</varname> defaults to
<literal>suspend</literal>.
<varname>HandleLidSwitchExternalPower=</varname> is completely
ignored by default (for backwards compatibility) — an explicit
value must be set before it will be used to determine
behaviour. <varname>HandleLidSwitchDocked=</varname> defaults
- to <literal>ignore</literal>.
- <varname>HandleHibernateKey=</varname> defaults to
- <literal>hibernate</literal>. If the system is inserted in a
+ to <literal>ignore</literal>. If the system is inserted in a
docking station, or if more than one display is connected, the
action specified by <varname>HandleLidSwitchDocked=</varname>
occurs; if the system is on external power the action (if any)
@@ -243,7 +250,7 @@
sleep keys and the lid switch by taking a low-level inhibitor lock
(<literal>handle-power-key</literal>, <literal>handle-suspend-key</literal>,
<literal>handle-hibernate-key</literal>, <literal>handle-lid-switch</literal>,
- <literal>handle-reboot-switch</literal>).
+ <literal>handle-reboot-key</literal>).
This is most commonly used by graphical desktop environments
to take over suspend and hibernation handling, and to use their own configuration
mechanisms. If a low-level inhibitor lock is taken, logind will not take any