Enable TLP alongside auto-cpufreq

This commit is contained in:
coolneng 2022-04-16 00:08:57 +02:00
parent 70475ce7c9
commit 1f71a68dd0
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@
# Enable the auto-cpufreq daemon # Enable the auto-cpufreq daemon
services.auto-cpufreq.enable = true; services.auto-cpufreq.enable = true;
# Enable the TLP daemon
services.tlp.enable = true;
# Suspend when the battery is critical # Suspend when the battery is critical
services.udev.extraRules = '' services.udev.extraRules = ''
SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{model_name}=="01AV405", ATTR{capacity}=="[0-5]", RUN+="${config.systemd.package}/bin/systemctl suspend -i" SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{model_name}=="01AV405", ATTR{capacity}=="[0-5]", RUN+="${config.systemd.package}/bin/systemctl suspend -i"