Enable TLP alongside auto-cpufreq
This commit is contained in:
parent
70475ce7c9
commit
1f71a68dd0
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue