From 259969f2b6353d58a5e28e365d80f03a24d93d20 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 11 Oct 2021 17:48:40 +0200 Subject: [PATCH] mayushii/tlp: Set conservative charge thresholds My usage pattern (mostly docked) otherwise leads to the battery accumulating one or more charge cycles every day which quickly deteriorates it. --- machines/mayushii/hardware-configuration.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/machines/mayushii/hardware-configuration.nix b/machines/mayushii/hardware-configuration.nix index 2626a8b..12f088a 100644 --- a/machines/mayushii/hardware-configuration.nix +++ b/machines/mayushii/hardware-configuration.nix @@ -41,7 +41,13 @@ powerManagement = { cpuFreqGovernor = "schedutil"; }; - services.tlp.enable = true; + services.tlp = { + enable = true; + settings = { + START_CHARGE_THRESH_BAT0 = 75; + STOP_CHARGE_THRESH_BAT0 = 92; + }; + }; # Most of the time I want to use both screens at the same time and suspend it # regularily by closing the lid