From 1783c2838b4e7c8c151e5756429ccf2ba3cc96ba 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;