lifebook: set suspend-then-hibernate with delaytime 1h

This commit is contained in:
Kabbone 2024-08-25 22:47:35 +02:00
parent 0f3a2e0e52
commit ea282c6237
Signed by: Kabbone
SSH Key Fingerprint: SHA256:ezolxoMIF3LNo1yc1aGNCvFNUiSZNjUbNhrZohFeKd0
2 changed files with 4 additions and 3 deletions

View File

@ -65,8 +65,9 @@
light.enable = true;
};
systemd.sleep.extraConfig = "HibernateDelaySec=1h";
services = {
logind.lidSwitch = "suspend"; # Laptop does not go to sleep when lid is closed
logind.lidSwitch = "suspend-then-hibernate"; # Laptop does not go to sleep when lid is closed
blueman.enable = true;
printing = { # Printing and drivers for TS5300
enable = true;

View File

@ -43,8 +43,8 @@
zramSwap.enable = true;
powerManagement = {
powerDownCommands = "rmmod intel_lpss_pci";
resumeCommands = "modprobe intel_lpss_pci";
powerDownCommands = "${pkgs.kmod}/bin/rmmod intel_lpss_pci";
resumeCommands = "${pkgs.kmod}/bin/modprobe intel_lpss_pci";
};