ma hw: tlp.extraConfig -> tlp.settings

This commit is contained in:
makefu 2020-11-18 23:58:18 +01:00
parent 7117223d68
commit b26b6c4cce
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -38,20 +38,17 @@
}; };
services.tlp.enable = true; services.tlp.enable = true;
services.tlp.extraConfig = '' services.tlp.settings = {
# BUG: http://linrunner.de/en/tlp/docs/tlp-faq.html#erratic-battery # BUG: http://linrunner.de/en/tlp/docs/tlp-faq.html#erratic-battery
START_CHARGE_THRESH_BAT0=95 START_CHARGE_THRESH_BAT0 = 95;
STOP_CHARGE_THRESH_BAT0=100 STOP_CHARGE_THRESH_BAT0 = 100;
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "ondemand";
CPU_SCALING_GOVERNOR_ON_AC=performance CPU_MIN_PERF_ON_AC = 0;
CPU_SCALING_GOVERNOR_ON_BAT=ondemand CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_AC=0 CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_AC=100 CPU_MAX_PERF_ON_BAT = 30;
CPU_MIN_PERF_ON_BAT=0 };
CPU_MAX_PERF_ON_BAT=30
'';
powerManagement.resumeCommands = '' powerManagement.resumeCommands = ''
${pkgs.utillinux}/bin/rfkill unblock all ${pkgs.utillinux}/bin/rfkill unblock all