add suspend mode to thinkpad

This commit is contained in:
Yan Lin 2025-10-20 17:50:10 +02:00
parent e05f5ef788
commit ea5de34fa9

View file

@ -229,15 +229,16 @@ in
}; };
}; };
# Disable automatic sleep and screen timeout # Suspend behavior configuration
services.logind.settings = { services.logind.settings = {
Login = { Login = {
HandleLidSwitch = "ignore"; # Ignore lid close HandleLidSwitch = "suspend"; # Suspend on lid close (battery only)
HandleLidSwitchDocked = "ignore"; HandleLidSwitchDocked = "ignore";
HandleLidSwitchExternalPower = "ignore"; HandleLidSwitchExternalPower = "ignore"; # Don't suspend on lid close when on AC
HandleSuspendKey = "ignore"; HandlePowerKey = "suspend"; # Suspend on power button press
HandleSuspendKey = "suspend"; # Allow manual suspend from GNOME menu
HandleHibernateKey = "ignore"; HandleHibernateKey = "ignore";
IdleAction = "ignore"; IdleAction = "ignore"; # No automatic idle suspend
IdleActionSec = "0"; IdleActionSec = "0";
}; };
}; };