Set PCIE ASPM settings via TLP

This commit is contained in:
coolneng 2023-01-20 21:48:16 +01:00
parent 5bf5d1ca97
commit 5e43cdc16c
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 7 additions and 2 deletions

View File

@ -13,7 +13,6 @@ with pkgs;
"nohibernate" "nohibernate"
"ipv6.disable=1" "ipv6.disable=1"
"ahci.mobile_lpm_policy=3" "ahci.mobile_lpm_policy=3"
"pcie_aspm=force"
"nmi_watchdog=0" "nmi_watchdog=0"
"intel_pstate=disable" "intel_pstate=disable"
]; ];

View File

@ -2,7 +2,13 @@
{ {
# Enable the TLP daemon # 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 # Enable the auto-cpufreq daemon
services.auto-cpufreq.enable = true; services.auto-cpufreq.enable = true;