From 5e43cdc16ce27496f9ceb55f331263759d9c3cab 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..f7b3d9d 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 = "powersupersave"; + }; + }; # Enable the auto-cpufreq daemon services.auto-cpufreq.enable = true;