diff options
| author | 2026-05-29 11:18:14 +0100 | |
|---|---|---|
| committer | 2026-05-29 11:18:14 +0100 | |
| commit | 3be68c032c864fa98ed85e54ea5af19976c55ed7 (patch) | |
| tree | cfb707a6b1f0a68d2554045470e41a4b90dcdb2c /dot_config/sway/executable_power-menu.sh | |
| parent | 0711f1b4a4045c583c63f494a61262ed1146a944 (diff) | |
| download | dotfiles-3be68c032c864fa98ed85e54ea5af19976c55ed7.tar.gz dotfiles-3be68c032c864fa98ed85e54ea5af19976c55ed7.tar.bz2 dotfiles-3be68c032c864fa98ed85e54ea5af19976c55ed7.zip | |
feat(suspend): disable system suspend until hardened kernel resume issue is fixed
linux-hardened wedges on resume from S3 (NVMe/i915/iwlwifi driver UAF
exposed by INIT_ON_FREE + slab hardening). Until root-caused, take
suspend off the table while keeping lock + DPMS intact.
- etc/systemd/logind.conf.d/20-no-suspend.conf: lid close, suspend
key, hibernate key all map to 'lock'; IdleAction=ignore (swayidle
drives DPMS+swaylock independently).
- run_onchange_after_deploy-etc.sh.tmpl: mask sleep.target,
suspend.target, hibernate.target, hybrid-sleep.target,
suspend-then-hibernate.target via /etc/systemd/system -> /dev/null
symlinks. Catches 'systemctl suspend' from any source.
- dot_config/sway/config: XF86Sleep and system-mode 's' now run
loginctl lock-session instead of systemctl suspend.
- dot_config/sway/executable_power-menu.sh: drop Suspend entry.
- KEYBINDS.md: reflect new behaviour.
To re-enable later: remove the logind drop-in + symlink loop, then
sudo systemctl daemon-reload.
Diffstat (limited to 'dot_config/sway/executable_power-menu.sh')
| -rw-r--r-- | dot_config/sway/executable_power-menu.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dot_config/sway/executable_power-menu.sh b/dot_config/sway/executable_power-menu.sh index 999259c..0a7de91 100644 --- a/dot_config/sway/executable_power-menu.sh +++ b/dot_config/sway/executable_power-menu.sh @@ -2,9 +2,10 @@ # Keyboard-driven power menu via wofi --dmenu (j/k navigation). set -eu +# Suspend entry intentionally omitted while suspend is disabled +# system-wide. See etc/systemd/logind.conf.d/20-no-suspend.conf. choice=$(printf '%s\n' \ " Lock" \ - " Suspend" \ " Logout" \ " Reboot" \ " Poweroff" | @@ -17,10 +18,6 @@ case "$choice" in playerctl -a pause exec swaylock -f -e -c 000000 ;; - *Suspend) - playerctl -a pause - exec systemctl suspend - ;; *Logout) exec swaymsg exit ;; *Reboot) exec systemctl reboot ;; *Poweroff) exec systemctl poweroff ;; |
