add suspend mode to thinkpad
This commit is contained in:
parent
e05f5ef788
commit
ea5de34fa9
1 changed files with 6 additions and 5 deletions
|
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue