From ada9b0eee5ce40eefe8c6772d1b15e8ffd23f7e5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 6 May 2023 10:50:28 -0700 Subject: profiles/laptop: set correct governor for tlp I was getting: ``` Error in configuration at CPU_SCALING_GOVERNOR_ON_AC="schedutil": governor not available. Skipped. ``` Restore to the previous configuration. --- profiles/laptop.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/profiles/laptop.nix b/profiles/laptop.nix index 0d1c95f..43726f3 100644 --- a/profiles/laptop.nix +++ b/profiles/laptop.nix @@ -6,9 +6,10 @@ services.thermald.enable = true; services.tlp.enable = true; + services.tlp.settings = { - CPU_SCALING_GOVERNOR_ON_AC = "schedutil"; - CPU_SCALING_GOVERNOR_ON_BAT = "schedutil"; + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; # Keep charge between 60% and 80% to preserve battery life START_CHARGE_THRESH_BAT0 = 60; -- cgit 1.4.1