aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/systemd/logind.conf.d/20-lid-ac.conf
blob: 08e5014a845484a057fc4a65b6fd23bece70cd48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Login]
# Suspend policy: closing the lid suspends ONLY when on battery. When
# AC is connected the lid switch is ignored entirely. The rationale is
# simple and matches user mental model -- if you don't want the
# machine to sleep, plug it in.
#
# This obsoletes the previous SSH/zellij-aware inhibit machinery: any
# long-running task (build, download, SSH session, server) just needs
# AC and will never be suspended out from under itself.
#
# `HandleLidSwitch` (default = suspend) still applies on battery.
# `HandleLidSwitchDocked` (default = ignore) still applies when an
# external monitor / dock is attached.
HandleLidSwitchExternalPower=ignore