From 5bf5d1ca97deabd79600e252179b85fc01434ddc Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 19 Jan 2023 15:27:08 +0100 Subject: [PATCH] Use autocpu-freq instead of intel pstate --- configuration.nix | 1 + modules/power.nix | 13 ++++--------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/configuration.nix b/configuration.nix index 0421229..49ec818 100644 --- a/configuration.nix +++ b/configuration.nix @@ -15,6 +15,7 @@ with pkgs; "ahci.mobile_lpm_policy=3" "pcie_aspm=force" "nmi_watchdog=0" + "intel_pstate=disable" ]; kernelModules = [ "i915" ]; blacklistedKernelModules = [ "btusb" "bluetooth" ]; diff --git a/modules/power.nix b/modules/power.nix index 5361b52..c700ced 100644 --- a/modules/power.nix +++ b/modules/power.nix @@ -2,15 +2,10 @@ { # Enable the TLP daemon - services.tlp = { - enable = true; - settings = { - CPU_MIN_PERF_ON_AC = 0; - CPU_MAX_PERF_ON_AC = 100; - CPU_MIN_PERF_ON_BAT = 0; - CPU_MAX_PERF_ON_BAT = 50; - }; - }; + services.tlp.enable = true; + + # Enable the auto-cpufreq daemon + services.auto-cpufreq.enable = true; # Suspend when the battery is critical and autosuspend USB and PCI services.udev.extraRules = ''