Disable All Suspend Triggers | Generated by AI

Home 2026.06

Here’s what’s been done and what needs sudo access:

Applied (no password needed):

Still needed (needs your sudo password):

Lid close is handled by systemd-logind, which defaults to HandleLidSwitch=suspend. I need to create a config file to disable it:

sudo mkdir -p /etc/systemd/logind.conf.d
sudo tee /etc/systemd/logind.conf.d/disable-lid-suspend.conf > /dev/null <<'EOF'
[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
EOF
sudo systemctl restart systemd-logind

After that, neither lid close, idle timeout, nor power button will trigger a suspend that could hang on wake.


Back Donate