diff options
author | Robert Marko <robert.marko@sartura.hr> | 2020-08-14 13:10:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-09-09 18:40:13 +0200 |
commit | adbb2b6afed7858f64f5b940579f6efe79eee997 (patch) | |
tree | bf44a5dd0845afaa7a9f2346c2e793b75150ea18 /man/logind.conf.xml | |
parent | 6e220b4b881eab303b23e2c7da595f25601ec642 (diff) | |
download | systemd-adbb2b6afed7858f64f5b940579f6efe79eee997.tar.gz |
login: Add KEY_RESTART handling
KEY_RESTART is widely used in Linux to indicate device reboot.
So lets handle it in the same fashion as KEY_POWER.
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Diffstat (limited to 'man/logind.conf.xml')
-rw-r--r-- | man/logind.conf.xml | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/man/logind.conf.xml b/man/logind.conf.xml index 81b870c46f..97d11da03f 100644 --- a/man/logind.conf.xml +++ b/man/logind.conf.xml @@ -199,10 +199,11 @@ <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 and sleep keys and the lid switch to trigger - actions such as system power-off or suspend. Can be one of + system power, reboot and sleep keys and the lid switch to trigger + actions such as system power-off, reboot or suspend. Can be one of <literal>ignore</literal>, <literal>poweroff</literal>, <literal>reboot</literal>, @@ -219,7 +220,8 @@ in the respective event. Only input devices with the <literal>power-switch</literal> udev tag will be watched for key/lid switch events. <varname>HandlePowerKey=</varname> - defaults to <literal>poweroff</literal>. + defaults to <literal>poweroff</literal>, <varname>HandleRebootKey=</varname> + defaults to <literal>reboot</literal>. <varname>HandleSuspendKey=</varname> and <varname>HandleLidSwitch=</varname> default to <literal>suspend</literal>. @@ -240,7 +242,8 @@ <para>A different application may disable logind's handling of system power and 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-hibernate-key</literal>, <literal>handle-lid-switch</literal>, + <literal>handle-reboot-switch</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 @@ -253,20 +256,23 @@ <term><varname>SuspendKeyIgnoreInhibited=</varname></term> <term><varname>HibernateKeyIgnoreInhibited=</varname></term> <term><varname>LidSwitchIgnoreInhibited=</varname></term> + <term><varname>RebootKeyIgnoreInhibited=</varname></term> <listitem><para>Controls whether actions that <command>systemd-logind</command> - takes when the power and sleep keys and the lid switch are triggered are subject - to high-level inhibitor locks ("shutdown", "sleep", "idle"). Low level inhibitor + takes when the power, reboot and sleep keys and the lid switch are triggered are subject + to high-level inhibitor locks ("shutdown", "reboot", "sleep", "idle"). Low level inhibitor locks (<literal>handle-power-key</literal>, <literal>handle-suspend-key</literal>, - <literal>handle-hibernate-key</literal>, <literal>handle-lid-switch</literal>), + <literal>handle-hibernate-key</literal>, <literal>handle-lid-switch</literal>, + <literal>handle-reboot-key</literal>), are always honored, irrespective of this setting.</para> <para>These settings take boolean arguments. If <literal>no</literal>, the inhibitor locks taken by applications are respected. If <literal>yes</literal>, - "shutdown", "sleep", and "idle" inhibitor locks are ignored. + "shutdown", "reboot" "sleep", and "idle" inhibitor locks are ignored. <varname>PowerKeyIgnoreInhibited=</varname>, - <varname>SuspendKeyIgnoreInhibited=</varname>, and - <varname>HibernateKeyIgnoreInhibited=</varname> default to <literal>no</literal>. + <varname>SuspendKeyIgnoreInhibited=</varname>, + <varname>HibernateKeyIgnoreInhibited=</varname> and + <varname>RebootKeyIgnoreInhibited=</varname> default to <literal>no</literal>. <varname>LidSwitchIgnoreInhibited=</varname> defaults to <literal>yes</literal>. This means that when <command>systemd-logind</command> is handling events by itself (no low level inhibitor locks are taken by another application), the lid |