Use autocpu-freq instead of intel pstate
This commit is contained in:
parent
36aa174ef3
commit
5bf5d1ca97
|
@ -15,6 +15,7 @@ with pkgs;
|
||||||
"ahci.mobile_lpm_policy=3"
|
"ahci.mobile_lpm_policy=3"
|
||||||
"pcie_aspm=force"
|
"pcie_aspm=force"
|
||||||
"nmi_watchdog=0"
|
"nmi_watchdog=0"
|
||||||
|
"intel_pstate=disable"
|
||||||
];
|
];
|
||||||
kernelModules = [ "i915" ];
|
kernelModules = [ "i915" ];
|
||||||
blacklistedKernelModules = [ "btusb" "bluetooth" ];
|
blacklistedKernelModules = [ "btusb" "bluetooth" ];
|
||||||
|
|
|
@ -2,15 +2,10 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
# Enable the TLP daemon
|
# Enable the TLP daemon
|
||||||
services.tlp = {
|
services.tlp.enable = true;
|
||||||
enable = true;
|
|
||||||
settings = {
|
# Enable the auto-cpufreq daemon
|
||||||
CPU_MIN_PERF_ON_AC = 0;
|
services.auto-cpufreq.enable = true;
|
||||||
CPU_MAX_PERF_ON_AC = 100;
|
|
||||||
CPU_MIN_PERF_ON_BAT = 0;
|
|
||||||
CPU_MAX_PERF_ON_BAT = 50;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Suspend when the battery is critical and autosuspend USB and PCI
|
# Suspend when the battery is critical and autosuspend USB and PCI
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
|
|
Loading…
Reference in New Issue