forked from pub-solar/os
dumpyourvms: switch to intel_pstate for CPU scheduling
and power-profiles-daemon for controlling the scheduling govenor
This commit is contained in:
parent
ebecd616b8
commit
895981431e
|
@ -27,7 +27,7 @@ in
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"acpi_backlight=video"
|
"acpi_backlight=video"
|
||||||
"hid_apple.fnmode=2"
|
"hid_apple.fnmode=2"
|
||||||
"intel_pstate=passive"
|
"intel_pstate=active"
|
||||||
"radeon.si_support=0"
|
"radeon.si_support=0"
|
||||||
"amdgpu.si_support=1"
|
"amdgpu.si_support=1"
|
||||||
];
|
];
|
||||||
|
@ -108,11 +108,6 @@ in
|
||||||
hardware.keyboard.uhk.enable = true;
|
hardware.keyboard.uhk.enable = true;
|
||||||
|
|
||||||
powerManagement = {
|
powerManagement = {
|
||||||
# Use new schedutil govenor
|
|
||||||
# https://github.com/NixOS/nixpkgs/pull/42330
|
|
||||||
# https://www.kernel.org/doc/html/v5.10/admin-guide/pm/cpufreq.html#schedutil
|
|
||||||
cpuFreqGovernor = lib.mkDefault "schedutil";
|
|
||||||
|
|
||||||
# brcmfmac being loaded during hibernation would inhibit a successful resume
|
# brcmfmac being loaded during hibernation would inhibit a successful resume
|
||||||
# https://bugzilla.kernel.org/show_bug.cgi?id=101681#c116.
|
# https://bugzilla.kernel.org/show_bug.cgi?id=101681#c116.
|
||||||
# Also brcmfmac could randomly crash on resume from sleep.
|
# Also brcmfmac could randomly crash on resume from sleep.
|
||||||
|
@ -141,16 +136,8 @@ in
|
||||||
# Change lid switch behaviour
|
# Change lid switch behaviour
|
||||||
services.logind.lidSwitch = "hibernate";
|
services.logind.lidSwitch = "hibernate";
|
||||||
|
|
||||||
# TLP for power management
|
# Power management
|
||||||
services.tlp = {
|
services.power-profiles-daemon.enable = true;
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
|
|
||||||
CPU_BOOST_ON_AC = 1;
|
|
||||||
CPU_BOOST_ON_BAT = 0;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.udev.extraRules =
|
services.udev.extraRules =
|
||||||
# Disable XHC1 wakeup signal to avoid resume getting triggered some time
|
# Disable XHC1 wakeup signal to avoid resume getting triggered some time
|
||||||
|
|
Loading…
Reference in a new issue