From cbf4718195248606286cebf27fb938b88b631d71 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 20 Jan 2023 21:48:16 +0100 Subject: [PATCH] Set PCIE ASPM settings via TLP --- configuration.nix | 1 - modules/power.nix | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 49ec818..778ef02 100644 --- a/configuration.nix +++ b/configuration.nix @@ -13,7 +13,6 @@ with pkgs; "nohibernate" "ipv6.disable=1" "ahci.mobile_lpm_policy=3" - "pcie_aspm=force" "nmi_watchdog=0" "intel_pstate=disable" ]; diff --git a/modules/power.nix b/modules/power.nix index c700ced..9932e27 100644 --- a/modules/power.nix +++ b/modules/power.nix @@ -2,7 +2,13 @@ { # Enable the TLP daemon - services.tlp.enable = true; + services.tlp = { + enable = true; + settings = { + PCIE_ASPM_ON_AC = "performance"; + PCIE_ASPM_ON_BAT = "powersave"; + }; + }; # Enable the auto-cpufreq daemon services.auto-cpufreq.enable = true;