From 2c95ef27e24b2a8099cb713aeb9a4879f412da15 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 15 Mar 2023 18:26:27 -0700 Subject: hosts: it's time to switch to schedutil --- hosts/tahoe/hardware.nix | 2 ++ 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; -- cgit 1.4.1