chiark / gitweb /
Version bump to 226.4
[elogind.git] / man / logind.conf.xml
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4
5 <!--
6   This file is part of elogind.
7
8   Copyright 2010 Lennart Poettering
9
10   elogind is free software; you can redistribute it and/or modify it
11   under the terms of the GNU Lesser General Public License as published by
12   the Free Software Foundation; either version 2.1 of the License, or
13   (at your option) any later version.
14
15   elogind is distributed in the hope that it will be useful, but
16   WITHOUT ANY WARRANTY; without even the implied warranty of
17   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18   Lesser General Public License for more details.
19
20   You should have received a copy of the GNU Lesser General Public License
21   along with elogind; If not, see <http://www.gnu.org/licenses/>.
22 -->
23
24 <refentry id="logind.conf" xmlns:xi="http://www.w3.org/2001/XInclude">
25   <refentryinfo>
26     <title>logind.conf</title>
27     <productname>elogind</productname>
28
29     <authorgroup>
30       <author>
31         <contrib>Developer</contrib>
32         <firstname>Lennart</firstname>
33         <surname>Poettering</surname>
34         <email>lennart@poettering.net</email>
35       </author>
36     </authorgroup>
37   </refentryinfo>
38
39   <refmeta>
40     <refentrytitle>logind.conf</refentrytitle>
41     <manvolnum>5</manvolnum>
42   </refmeta>
43
44   <refnamediv>
45     <refname>logind.conf</refname>
46     <refpurpose>Login manager configuration files</refpurpose>
47   </refnamediv>
48
49   <refsynopsisdiv>
50     <para><filename>/etc/elogind/logind.conf</filename></para>
51   </refsynopsisdiv>
52
53   <refsect1>
54     <title>Description</title>
55
56     <para>These files configure various parameters of the elogind
57     login manager,
58     <citerefentry><refentrytitle>logind.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
59     </para>
60   </refsect1>
61
62   <xi:include href="standard-conf.xml" xpointer="main-conf" />
63
64   <refsect1>
65     <title>Options</title>
66
67     <para>All options are configured in the
68     <literal>[Login]</literal> section:</para>
69
70     <variablelist>
71
72       <varlistentry>
73         <term><varname>KillUserProcesses=</varname></term>
74
75         <listitem><para>Takes a boolean argument. Configures whether
76         the processes of a user should be killed when the user
77         completely logs out (i.e. after the user's last session
78         ended). Defaults to <literal>no</literal>.</para>
79
80         <para>Note that setting <varname>KillUserProcesses=1</varname>
81         will break tools like
82         <citerefentry project='die-net'><refentrytitle>screen</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para></listitem>
83       </varlistentry>
84
85       <varlistentry>
86         <term><varname>KillOnlyUsers=</varname></term>
87         <term><varname>KillExcludeUsers=</varname></term>
88
89         <listitem><para>These settings take space-separated lists of
90         usernames that influence the effect of
91         <varname>KillUserProcesses=</varname>. If not empty, only
92         processes of users listed in <varname>KillOnlyUsers=</varname>
93         will be killed when they log out entirely. Processes of users
94         listed in <varname>KillExcludeUsers=</varname> are excluded
95         from being killed. <varname>KillExcludeUsers=</varname>
96         defaults to <literal>root</literal> and takes precedence over
97         <varname>KillOnlyUsers=</varname>, which defaults to the empty
98         list.</para></listitem>
99       </varlistentry>
100
101       <varlistentry>
102         <term><varname>IdleAction=</varname></term>
103
104         <listitem><para>Configures the action to take when the system
105         is idle. Takes one of
106         <literal>ignore</literal>,
107         <literal>poweroff</literal>,
108         <literal>reboot</literal>,
109         <literal>halt</literal>,
110         <literal>kexec</literal>,
111         <literal>suspend</literal>,
112         <literal>hibernate</literal>,
113         <literal>hybrid-sleep</literal>, and
114         <literal>lock</literal>.
115         Defaults to <literal>ignore</literal>.</para>
116
117         <para>Note that this requires that user sessions correctly
118         report the idle status to the system. The system will execute
119         the action after all sessions report that they are idle, no
120         idle inhibitor lock is active, and subsequently, the time
121         configured with <varname>IdleActionSec=</varname> (see below)
122         has expired.</para>
123         </listitem>
124       </varlistentry>
125
126       <varlistentry>
127         <term><varname>IdleActionSec=</varname></term>
128
129         <listitem><para>Configures the delay after which the action
130         configured in <varname>IdleAction=</varname> (see above) is
131         taken after the system is idle.</para></listitem>
132       </varlistentry>
133
134       <varlistentry>
135         <term><varname>InhibitDelayMaxSec=</varname></term>
136
137         <listitem><para>Specifies the maximum time a system shutdown
138         or sleep request is delayed due to an inhibitor lock of type
139         <literal>delay</literal> being active before the inhibitor is
140         ignored and the operation executes anyway. Defaults to
141         5.</para></listitem>
142       </varlistentry>
143
144       <varlistentry>
145         <term><varname>HandlePowerKey=</varname></term>
146         <term><varname>HandleSuspendKey=</varname></term>
147         <term><varname>HandleHibernateKey=</varname></term>
148         <term><varname>HandleLidSwitch=</varname></term>
149         <term><varname>HandleLidSwitchDocked=</varname></term>
150
151         <listitem><para>Controls whether logind shall handle the
152         system power and sleep keys and the lid switch to trigger
153         actions such as system power-off or suspend. Can be one of
154         <literal>ignore</literal>,
155         <literal>poweroff</literal>,
156         <literal>reboot</literal>,
157         <literal>halt</literal>,
158         <literal>kexec</literal>,
159         <literal>suspend</literal>,
160         <literal>hibernate</literal>,
161         <literal>hybrid-sleep</literal>, and
162         <literal>lock</literal>.
163         If <literal>ignore</literal>, logind will never handle these
164         keys. If <literal>lock</literal>, all running sessions will be
165         screen-locked; otherwise, the specified action will be taken
166         in the respective event. Only input devices with the
167         <literal>power-switch</literal> udev tag will be watched for
168         key/lid switch events. <varname>HandlePowerKey=</varname>
169         defaults to <literal>poweroff</literal>.
170         <varname>HandleSuspendKey=</varname> and
171         <varname>HandleLidSwitch=</varname> default to
172         <literal>suspend</literal>.
173         <varname>HandleLidSwitchDocked=</varname> defaults to
174         <literal>ignore</literal>.
175         <varname>HandleHibernateKey=</varname> defaults to
176         <literal>hibernate</literal>. If the system is inserted in a
177         docking station, or if more than one display is connected, the
178         action specified by <varname>HandleLidSwitchDocked=</varname>
179         occurs; otherwise the <varname>HandleLidSwitch=</varname>
180         action occurs.</para></listitem>
181       </varlistentry>
182
183       <varlistentry>
184         <term><varname>PowerKeyIgnoreInhibited=</varname></term>
185         <term><varname>SuspendKeyIgnoreInhibited=</varname></term>
186         <term><varname>HibernateKeyIgnoreInhibited=</varname></term>
187         <term><varname>LidSwitchIgnoreInhibited=</varname></term>
188
189         <listitem><para>Controls whether actions triggered by the
190         power and sleep keys and the lid switch are subject to
191         inhibitor locks. These settings take boolean arguments. If
192         <literal>no</literal>, the inhibitor locks taken by
193         applications in order to block the requested operation are
194         respected. If <literal>yes</literal>, the requested operation
195         is executed in any case.
196         <varname>PowerKeyIgnoreInhibited=</varname>,
197         <varname>SuspendKeyIgnoreInhibited=</varname> and
198         <varname>HibernateKeyIgnoreInhibited=</varname> default to
199         <literal>no</literal>.
200         <varname>LidSwitchIgnoreInhibited=</varname> defaults to
201         <literal>yes</literal>. This means that the lid switch does
202         not respect suspend blockers by default, but the power and
203         sleep keys do. </para></listitem>
204       </varlistentry>
205
206       <varlistentry>
207         <term><varname>HoldoffTimeoutSec=</varname></term>
208
209         <listitem><para>Specifies the timeout after system startup or
210         system resume in which elogind will hold off on reacting to
211         LID events. This is required for the system to properly
212         detect any hotplugged devices so elogind can ignore LID events
213         if external monitors, or docks, are connected. If set to 0,
214         elogind will always react immediately, possibly before the
215         kernel fully probed all hotplugged devices. This is safe, as
216         long as you do not care for elogind to account for devices
217         that have been plugged or unplugged while the system was off.
218         Defaults to 30s.</para></listitem>
219       </varlistentry>
220
221       <varlistentry>
222         <term><varname>RuntimeDirectorySize=</varname></term>
223
224         <listitem><para>Sets the size limit on the
225         <varname>$XDG_RUNTIME_DIR</varname> runtime directory for each
226         user who logs in. Takes a size in bytes, optionally suffixed
227         with the usual K, G, M, and T suffixes, to the base 1024
228         (IEC). Alternatively, a numerical percentage suffixed by
229         <literal>%</literal> may be specified, which sets the size
230         limit relative to the amount of physical RAM. Defaults to 10%.
231         Note that this size is a safety limit only. As each runtime
232         directory is a tmpfs file system, it will only consume as much
233         memory as is needed. </para></listitem>
234       </varlistentry>
235
236       <varlistentry>
237         <term><varname>RemoveIPC=</varname></term>
238
239         <listitem><para>Controls whether System V and POSIX IPC
240         objects belonging to the user shall be removed when the user
241         fully logs out. Takes a boolean argument. If enabled, the user
242         may not consume IPC resources after the last of the user's
243         sessions terminated. This covers System V semaphores, shared
244         memory and message queues, as well as POSIX shared memory and
245         message queues. Note that IPC objects of the root user are
246         excluded from the effect of this setting. Defaults to
247         <literal>yes</literal>.</para></listitem>
248       </varlistentry>
249
250     </variablelist>
251   </refsect1>
252
253   <refsect1>
254       <title>See Also</title>
255       <para>
256         <citerefentry><refentrytitle>elogind</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
257         <citerefentry><refentrytitle>logind.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
258         <citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
259         <citerefentry><refentrytitle>elogind-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
260       </para>
261   </refsect1>
262
263 </refentry>