![Simon Fowler](/assets/img/avatar_default.png)
This change adds support for controlling the suspend-on-lid-close behaviour based on the power status as well as whether the machine is docked or has an external monitor. For backwards compatibility the new configuration file variable is ignored completely by default, and must be set explicitly before being considered in any decisions.
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# Entries in this file show the compile time defaults.
|
|
# You can change settings by editing this file.
|
|
# Defaults can be restored by simply deleting this file.
|
|
#
|
|
# See logind.conf(5) for details.
|
|
|
|
[Login]
|
|
#NAutoVTs=6
|
|
#ReserveVT=6
|
|
#KillUserProcesses=@KILL_USER_PROCESSES@
|
|
#KillOnlyUsers=
|
|
#KillExcludeUsers=root
|
|
#InhibitDelayMaxSec=5
|
|
#HandlePowerKey=poweroff
|
|
#HandleSuspendKey=suspend
|
|
#HandleHibernateKey=hibernate
|
|
#HandleLidSwitch=suspend
|
|
#HandleLidSwitchExternalPower=suspend
|
|
#HandleLidSwitchDocked=ignore
|
|
#PowerKeyIgnoreInhibited=no
|
|
#SuspendKeyIgnoreInhibited=no
|
|
#HibernateKeyIgnoreInhibited=no
|
|
#LidSwitchIgnoreInhibited=yes
|
|
#HoldoffTimeoutSec=30s
|
|
#IdleAction=ignore
|
|
#IdleActionSec=30min
|
|
#RuntimeDirectorySize=10%
|
|
#RemoveIPC=yes
|
|
#InhibitorsMax=8192
|
|
#SessionsMax=8192
|
|
#UserTasksMax=33%
|