wrap up suspend-then-hibernate
This commit is contained in:
@@ -43,13 +43,12 @@
|
|||||||
|
|
||||||
# fix power buttons
|
# fix power buttons
|
||||||
services.logind.settings.Login = {
|
services.logind.settings.Login = {
|
||||||
#HandlePowerKey = "suspend";
|
|
||||||
#HandleLidSwitch = "suspend";
|
|
||||||
HandlePowerKey = "suspend-then-hibernate";
|
HandlePowerKey = "suspend-then-hibernate";
|
||||||
HandleLidSwitch = "suspend-then-hibernate";
|
HandleLidSwitch = "suspend-then-hibernate";
|
||||||
};
|
};
|
||||||
|
# sets the delay before hibernation for ^
|
||||||
systemd.sleep.extraConfig = ''
|
systemd.sleep.extraConfig = ''
|
||||||
HibernateDelaySec=180
|
HibernateDelaySec=1800
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# boot (systemd is growing on me)
|
# boot (systemd is growing on me)
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ in {
|
|||||||
# --- suspend timeout ---
|
# --- suspend timeout ---
|
||||||
{
|
{
|
||||||
timeout = 1800; # 30 min
|
timeout = 1800; # 30 min
|
||||||
on-timeout = "systemctl suspend"; # suspend computer
|
on-timeout = "systemctl suspend-then-hibernate"; # suspend computer
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- keyboard backlight (optional) ---
|
# --- keyboard backlight (optional) ---
|
||||||
|
|||||||
Reference in New Issue
Block a user