From 831cc222a96bbb196b655625b4eda49b871d3c4b Mon Sep 17 00:00:00 2001 From: Emmet Date: Sun, 28 Apr 2024 08:00:11 -0500 Subject: [PATCH] Better power management --- system/hardware/power.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/system/hardware/power.nix b/system/hardware/power.nix index 8d014be..b88d98e 100644 --- a/system/hardware/power.nix +++ b/system/hardware/power.nix @@ -17,7 +17,7 @@ enable = true; settings = { CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "schedutil"; + CPU_SCALING_GOVERNOR_ON_BAT = "performance"; CPU_ENERGY_PERF_POLICY_ON_BAT = "performance"; CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; @@ -26,6 +26,15 @@ CPU_MAX_PERF_ON_AC = 100; CPU_MIN_PERF_ON_BAT = 0; CPU_MAX_PERF_ON_BAT = 100; + + CPU_BOOST_ON_AC = 1; + CPU_BOOST_ON_BAT = 0; + + START_CHARGE_THRESH_BAT0 = 75; + STOP_CHARGE_THRESH_BAT0 = 80; + + PLATFORM_PROFILE_ON_AC = "performance"; + PLATFORM_PROFILE_ON_BAT = "balanced"; }; };