|
Zbigniew Jędrzejewski-Szmek |
696e2f |
From 9ecf9e414a97e861db403e043696fed6033508f0 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
Date: Sun, 14 Aug 2016 16:27:59 -0400
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
Subject: [PATCH] man: explain that *KeyIgnoreInhibited only apply to a subset
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
of locks
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
Follow-up for #3924.
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
(cherry picked from commit 05b2a8fd7a0533758d2f532df798cabc3c442683)
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
---
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
man/logind.conf.xml | 42 ++++++++++++++++++++++++++----------------
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
man/systemd-inhibit.xml | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
man/systemd-logind.service.xml | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
3 files changed, 28 insertions(+), 18 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
diff --git a/man/logind.conf.xml b/man/logind.conf.xml
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
index adba5a4131..5931832996 100644
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
--- a/man/logind.conf.xml
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+++ b/man/logind.conf.xml
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
@@ -211,7 +211,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<term><varname>HandleLidSwitch=</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<term><varname>HandleLidSwitchDocked=</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- <listitem><para>Controls whether logind shall handle the
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ <listitem><para>Controls how logind shall handle the
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
system power and sleep keys and the lid switch to trigger
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
actions such as system power-off or suspend. Can be one of
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<literal>ignore</literal>,
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
@@ -240,7 +240,16 @@
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
docking station, or if more than one display is connected, the
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
action specified by <varname>HandleLidSwitchDocked=</varname>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
occurs; otherwise the <varname>HandleLidSwitch=</varname>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- action occurs.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ action occurs.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ <para>A different application may disable logind's handling of system power and
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ sleep keys and the lid switch by taking a low-level inhibitor lock
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ ("handle-power-key", "handle-suspend-key", "handle-hibernate-key",
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ "handle-lid-switch"). This is most commonly used by graphical desktop environments
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ to take over suspend and hibernation handling, and to use their own configuration
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ mechanisms. If a low-level inhibitor lock is taken, logind will not take any
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ action when that key or switch is triggered and the <varname>Handle*=</varname>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ settings are irrelevant.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
@@ -249,21 +258,22 @@
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<term><varname>HibernateKeyIgnoreInhibited=</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<term><varname>LidSwitchIgnoreInhibited=</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- <listitem><para>Controls whether actions triggered by the
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- power and sleep keys and the lid switch are subject to
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- inhibitor locks. These settings take boolean arguments. If
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- <literal>no</literal>, the inhibitor locks taken by
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- applications in order to block the requested operation are
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- respected. If <literal>yes</literal>, the requested operation
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- is executed in any case.
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ <listitem><para>Controls whether actions that <command>systemd-logind</command>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ takes when the power and sleep keys and the lid switch are triggered are subject
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ to high-level inhibitor locks ("shutdown", "sleep", "idle"). Low level inhibitor
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ locks ("handle-*-key"), are always honoured, irrespective of this setting.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ <para>These settings take boolean arguments. If <literal>no</literal>, the
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ inhibitor locks taken by applications are respected. If <literal>yes</literal>,
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ "shutdown", "sleep", and "idle" inhibitor locks are ignored.
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<varname>PowerKeyIgnoreInhibited=</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- <varname>SuspendKeyIgnoreInhibited=</varname> and
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- <varname>HibernateKeyIgnoreInhibited=</varname> default to
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- <literal>no</literal>.
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- <varname>LidSwitchIgnoreInhibited=</varname> defaults to
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- <literal>yes</literal>. This means that the lid switch does
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- not respect suspend blockers by default, but the power and
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- sleep keys do. </para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ <varname>SuspendKeyIgnoreInhibited=</varname>, and
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ <varname>HibernateKeyIgnoreInhibited=</varname> default to <literal>no</literal>.
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ <varname>LidSwitchIgnoreInhibited=</varname> defaults to <literal>yes</literal>.
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ This means that when <command>systemd-logind</command> is handling events by
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ itself (no low level inhibitor locks are taken by another application), the lid
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ switch does not respect suspend blockers by default, but the power and sleep keys
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ do.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
diff --git a/man/systemd-inhibit.xml b/man/systemd-inhibit.xml
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
index 9d85908f97..ce169960d8 100644
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
--- a/man/systemd-inhibit.xml
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+++ b/man/systemd-inhibit.xml
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
@@ -61,7 +61,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<title>Description</title>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<para><command>systemd-inhibit</command> may be used to execute a
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- program with a shutdown, sleep or idle inhibitor lock taken. The
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ program with a shutdown, sleep, or idle inhibitor lock taken. The
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
lock will be acquired before the specified command line is
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
executed and released afterwards.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
diff --git a/man/systemd-logind.service.xml b/man/systemd-logind.service.xml
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
index 5733e42cd1..f0bdb1c756 100644
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
--- a/man/systemd-logind.service.xml
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+++ b/man/systemd-logind.service.xml
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
@@ -84,7 +84,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
management</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
</itemizedlist>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
- <para>User sessions are registered in logind via the
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
+ <para>User sessions are registered with logind via the
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
<citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
PAM module.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
--
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
2.9.0
|
|
Zbigniew Jędrzejewski-Szmek |
696e2f |
|