From 6c3662dbb3778598b02fb0fa0430930f262e45c8 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 31 Jul 2021 16:56:20 +0200 Subject: [PATCH] modules: services: tlp: add power scaling --- modules/services/tlp.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/services/tlp.nix b/modules/services/tlp.nix index a560319..8c9edd6 100644 --- a/modules/services/tlp.nix +++ b/modules/services/tlp.nix @@ -13,6 +13,10 @@ in enable = true; settings = { + # Set CPU scaling aggressively when power is not an issue + 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; STOP_CHARGE_THRESH_BAT0 = 80;