Config thinkpad sleeping behavior

This commit is contained in:
Yan Lin 2025-09-13 13:29:48 +02:00
parent 30ccfa91d7
commit b889750850

View file

@ -191,6 +191,26 @@
};
};
# Disable automatic sleep and screen timeout
services.logind.settings = {
Login = {
HandleLidSwitch = "ignore"; # Ignore lid close
HandleLidSwitchDocked = "ignore";
HandleLidSwitchExternalPower = "ignore";
HandleSuspendKey = "ignore";
HandleHibernateKey = "ignore";
IdleAction = "ignore";
IdleActionSec = "0";
};
};
# Disable screen blanking and DPMS
services.xserver.displayManager.sessionCommands = ''
xset s off # Disable screen saver
xset -dpms # Disable DPMS (Display Power Management Signaling)
xset s noblank # Disable screen blanking
'';
# Thermal management
services.thermald.enable = true;