aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/systemd/logind.conf.d/20-no-suspend.conf17
1 files changed, 17 insertions, 0 deletions
diff --git a/etc/systemd/logind.conf.d/20-no-suspend.conf b/etc/systemd/logind.conf.d/20-no-suspend.conf
new file mode 100644
index 0000000..1b58aa4
--- /dev/null
+++ b/etc/systemd/logind.conf.d/20-no-suspend.conf
@@ -0,0 +1,17 @@
+[Login]
+# Suspend is disabled while the linux-hardened wake-from-S3 hang is
+# unresolved (NVMe / i915 / iwlwifi driver UAF surfaced by INIT_ON_FREE
+# + slab hardening). Lid close, suspend/hibernate keys, and idle action
+# all fall back to session lock instead of suspend. The sleep/suspend/
+# hibernate targets are also masked at the unit level via the etc/
+# deploy script as belt-and-braces against `systemctl suspend` from
+# anywhere. Screen-off (DPMS) and swaylock continue to be driven by
+# swayidle and are unaffected.
+HandleLidSwitch=lock
+HandleLidSwitchExternalPower=lock
+HandleLidSwitchDocked=ignore
+HandleSuspendKey=lock
+HandleSuspendKeyLongPress=ignore
+HandleHibernateKey=lock
+HandleHibernateKeyLongPress=ignore
+IdleAction=ignore