diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 313b624..5102a91 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -65,26 +65,17 @@ enable = true; package = pkgs.ollama-intel; }; - tlp = { + auto-cpufreq = { enable = true; settings = { - CPU_SCALING_GOVERNOR_ON_AC = "ondemand"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - - CPU_ENERGY_PERF_POLICY_ON_AC = "balance_performance"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; - - CPU_BOOST_ON_AC="1"; - CPU_BOOST_ON_BAT="0"; - - CPU_HWP_DYN_BOOST_ON_AC="1"; - CPU_HWP_DYN_BOOST_ON_BAT="0"; - - PLATFORM_PROFILE_ON_AC="performance"; - PLATFORM_PROFILE_ON_BAT="low-power"; - - MEM_SLEEP_ON_AC="s2idle"; - MEM_SLEEP_ON_BAT="deep"; + battery = { + governor = "powersave"; + turbo = "never"; + }; + charger = { + governor = "balance_performance"; + turbo = "auto"; + }; }; }; logind = {