From a7e7b1703a61a4cb4c2364fa00fb6988d2b4cd89 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 29 Jan 2021 14:06:06 -0500 Subject: [PATCH] hosts/{ao,shiro}: tweak cpu governors --- hosts/ao/hardware-configuration.nix | 1 + hosts/shiro/hardware-configuration.nix | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/ao/hardware-configuration.nix b/hosts/ao/hardware-configuration.nix index 6b8ad222..587f031a 100644 --- a/hosts/ao/hardware-configuration.nix +++ b/hosts/ao/hardware-configuration.nix @@ -11,6 +11,7 @@ ## CPU nix.maxJobs = lib.mkDefault 2; + powerManagement.cpuFreqGovernor = "ondemand"; ## Harddrives fileSystems = { diff --git a/hosts/shiro/hardware-configuration.nix b/hosts/shiro/hardware-configuration.nix index bdd8d54d..9b82ba42 100644 --- a/hosts/shiro/hardware-configuration.nix +++ b/hosts/shiro/hardware-configuration.nix @@ -23,8 +23,10 @@ # CPU nix.maxJobs = lib.mkDefault 8; - powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; hardware.cpu.intel.updateMicrocode = true; + # performance gives better battery life/perf than ondemand on sandy bridge and + # newer because of intel pstates. + powerManagement.cpuFreqGovernor = "performance"; # Power management environment.systemPackages = [ pkgs.acpi ];