Config thinkpad sleeping behavior
This commit is contained in:
parent
30ccfa91d7
commit
b889750850
1 changed files with 20 additions and 0 deletions
|
|
@ -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
|
# Thermal management
|
||||||
services.thermald.enable = true;
|
services.thermald.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue