From 27b25b8b3cf423cdd9cfc605312c1d411cda6d7c Mon Sep 17 00:00:00 2001 From: Myned Date: Thu, 24 Oct 2024 11:24:54 -0500 Subject: [PATCH] auto-cpufreq: add platform profile and disable tlp Signed-off-by: Myned --- options/custom/services/auto-cpufreq.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/options/custom/services/auto-cpufreq.nix b/options/custom/services/auto-cpufreq.nix index e01b4e8..8696920 100644 --- a/options/custom/services/auto-cpufreq.nix +++ b/options/custom/services/auto-cpufreq.nix @@ -29,6 +29,7 @@ in { battery = { energy_performance_preference = "balance_power"; governor = "powersave"; + platform_profile = "low-power"; scaling_max_freq = mkIf (isFloat cfg.max.battery) (builtins.floor (cfg.max.battery * 1000 * 1000)); # KHz #// turbo = "never"; # Only works with acpi-cpufreq }; @@ -36,12 +37,15 @@ in { charger = { energy_performance_preference = "balance_performance"; governor = "powersave"; + platform_profile = "balanced"; scaling_max_freq = mkIf (isFloat cfg.max.charger) (builtins.floor (cfg.max.charger * 1000 * 1000)); # KHz }; }; }; - power-profiles-daemon.enable = false; # Conflicts with auto-cpufreq + #!! Conflicts with auto-cpufreq + power-profiles-daemon.enable = false; + tlp.enable = false; }; }; }