diff options
author | Franck Cuny <franck@fcuny.net> | 2023-03-15 18:26:27 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-03-15 18:26:27 -0700 |
commit | 2c95ef27e24b2a8099cb713aeb9a4879f412da15 (patch) | |
tree | a040f591a24579a1c44b0f1d62bf780531196a13 | |
parent | home/sway: a bunch of small tweaks (diff) | |
download | world-2c95ef27e24b2a8099cb713aeb9a4879f412da15.tar.gz |
hosts: it's time to switch to schedutil
-rw-r--r-- | hosts/tahoe/hardware.nix | 2 | ||||
-rw-r--r-- | modules/services/tlp/default.nix | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/hosts/tahoe/hardware.nix b/hosts/tahoe/hardware.nix index ada6202..34c278b 100644 --- a/hosts/tahoe/hardware.nix +++ b/hosts/tahoe/hardware.nix @@ -63,4 +63,6 @@ # high-resolution display hardware.video.hidpi.enable = lib.mkDefault true; + + powerManagement.cpuFreqGovernor = "schedutil"; } diff --git a/modules/services/tlp/default.nix b/modules/services/tlp/default.nix index dc640f7..ac083d8 100644 --- a/modules/services/tlp/default.nix +++ b/modules/services/tlp/default.nix @@ -13,8 +13,8 @@ in settings = { # Set CPU scaling aggressively when power is not an issue - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + CPU_SCALING_GOVERNOR_ON_AC = "schedutil"; + CPU_SCALING_GOVERNOR_ON_BAT = "schedutil"; # Keep charge between 60% and 80% to preserve battery life START_CHARGE_THRESH_BAT0 = 60; |