Fix hibernate spelling
This commit is contained in:
parent
b5e72b094c
commit
5d3dee54c0
1 changed files with 13 additions and 2 deletions
|
@ -36,14 +36,25 @@
|
|||
|
||||
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
||||
systemd.sleep.extraConfig = ''
|
||||
HybernateDelaySec=10m
|
||||
HibernateDelaySec=10m
|
||||
SuspendState=mem
|
||||
'';
|
||||
|
||||
# Don't sleep if charging or docked
|
||||
services.logind.lidSwitchDocked = "ignore";
|
||||
services.logind.lidSwitchExternalPower = "ignore";
|
||||
|
||||
# suspend-then-hibernate if lid closed on battery or power button pressed
|
||||
services.logind.lidSwitch = "suspend-then-hibernate";
|
||||
services.logind.extraConfig = ''
|
||||
HandleSuspendKey=suspend-then-hibernate
|
||||
'';
|
||||
|
||||
# should be inferred as swap partition by default
|
||||
# boot.resumeDevice = "/dev/disk/by-uuid/8b65fe7f-2115-422f-9443-7c6265d4d8ea";
|
||||
|
||||
security.protectKernelImage = false;
|
||||
# Uncomment if hibernate doesn't work
|
||||
# security.protectKernelImage = false;
|
||||
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue