New power & no bamboo & sh3d

This commit is contained in:
soraefir
2025-05-30 02:15:36 +02:00
parent a2ef475040
commit 49469b4962
3 changed files with 19 additions and 1 deletions

View File

@ -14,7 +14,9 @@
pavucontrol
keepassxc
nextcloud-client
gramps
sweethome3d.application
];
};
}

View File

@ -7,8 +7,24 @@
STOP_CHARGE_THRESH_BAT0 = 90;
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
MEM_SLEEP_ON_BAT = "deep";
};
};
powerManagement.enable = true;
# suspend to RAM (deep) rather than `s2idle`
boot.kernelParams = [ "mem_sleep_default=deep" ];
# suspend-then-hibernate
systemd.sleep.extraConfig = ''
HibernateDelaySec=30m
SuspendState=mem
'';
services.logind.lidSwitch = "suspend-then-hibernate";
# Hibernate on power button pressed
services.logind.powerKey = "hibernate";
services.logind.powerKeyLongPress = "poweroff";
systemd.user.services.battery_monitor = {
wants = [ "display-manager.service" ];