Configured TLP Service for Power-Management (Power-Profiles didn't work)

This commit is contained in:
Kaybee 2025-01-17 12:27:40 +01:00
parent a6b23717ae
commit dce7ba9c99
No known key found for this signature in database

View file

@ -44,4 +44,42 @@ in {
extraPackages = [ pkgs.intel-media-sdk ]; extraPackages = [ pkgs.intel-media-sdk ];
}; };
# Power Management
# services.tlp.enable = false;
# services.power-profiles-daemon.enable = false;
# services.auto-cpufreq.enable = true;
# services.auto-cpufreq.settings = {
# battery = {
# governor = "powersave";
# turbo = "never";
# };
# charger = {
# governor = "performance";
# turbo = "auto";
# };
# };
services.power-profiles-daemon.enable = false;
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "balanced";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 80;
#Optional helps save long term battery health
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
};
};
} }