From 3be68c032c864fa98ed85e54ea5af19976c55ed7 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 29 May 2026 11:18:14 +0100 Subject: 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. --- KEYBINDS.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'KEYBINDS.md') diff --git a/KEYBINDS.md b/KEYBINDS.md index 898c78c..9040c2a 100644 --- a/KEYBINDS.md +++ b/KEYBINDS.md @@ -326,7 +326,7 @@ Mod key: `Super` (Mod4). Only personal additions beyond sway defaults listed. | `XF86AudioMicMute` | Mic mute toggle | | `XF86Bluetooth` | Bluetooth power toggle (bluetoothctl) | | `XF86ScreenSaver` | Lock screen + pause media (same as Super+Shift+s) | -| `XF86Sleep` | Suspend system (systemctl suspend) | +| `XF86Sleep` | Lock session (suspend disabled — see logind drop-in) | | `XF86WLAN` | Toggle Wi-Fi (rfkill) | | `XF86RFKill` | Toggle all radios (rfkill) | | `Super+Shift+Return` | Open ghostty with yazi (file manager) | @@ -364,18 +364,18 @@ runs the action and exits the mode; `Escape` or `Return` exits without acting. Provides non-XF86 access to the rare hardware toggles and TUI launchers. -| In `system` mode | XF86 equivalent | Action | -| ----------------- | --------------- | ---------------------------- | -| `b` | `XF86Bluetooth` | Bluetooth power toggle | -| `w` | `XF86WLAN` | Wi-Fi toggle (rfkill wifi) | -| `r` | `XF86RFKill` | Toggle all radios (rfkill) | -| `s` | `XF86Sleep` | Suspend (systemctl suspend) | -| `d` | `XF86Display` | Display mode toggle | -| `v` | `XF86Tools` | Floating pulsemixer | -| `k` | `XF86Keyboard` | Floating glow KEYBINDS.md | -| `m` | `XF86Favorites` | Notification picker | -| `n` | — | Toggle Do-Not-Disturb (mako) | -| `Escape`/`Return` | — | exit submode | +| In `system` mode | XF86 equivalent | Action | +| ----------------- | --------------- | ------------------------------- | +| `b` | `XF86Bluetooth` | Bluetooth power toggle | +| `w` | `XF86WLAN` | Wi-Fi toggle (rfkill wifi) | +| `r` | `XF86RFKill` | Toggle all radios (rfkill) | +| `s` | `XF86Sleep` | Lock session (suspend disabled) | +| `d` | `XF86Display` | Display mode toggle | +| `v` | `XF86Tools` | Floating pulsemixer | +| `k` | `XF86Keyboard` | Floating glow KEYBINDS.md | +| `m` | `XF86Favorites` | Notification picker | +| `n` | — | Toggle Do-Not-Disturb (mako) | +| `Escape`/`Return` | — | exit submode | ## Typing / Input -- cgit v1.3.1