home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 63db0a6e182a141e111e9dea8cb8e6d0ce1b3cba
parent d0b6163f68bfc2671afaca653a81f1e75be5be0a
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 19 Aug 2022 19:16:11 +0200

system/hardware: setup charge threshold…

… to batter is used somewhat frequenty 🙃

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/hardware/thinkpad-x1g9.nix | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/systems/hardware/thinkpad-x1g9.nix b/systems/hardware/thinkpad-x1g9.nix @@ -36,13 +36,20 @@ # throttled.enable = true; # might not be needed tlp = { settings = { + # Charge threshold + # If the battery is used somewhat frequently, + # set the start threshold at around 85% and stop at 90%. This + # will still give a good lifespan benefit over keeping the + # battery charged to 100%. + START_CHARGE_THRESH_BAT0 = 75; + STOP_CHARGE_THRESH_BAT0 = 80; # CPU optimizations "CPU_SCALING_GOVERNOR_ON_AC" = "performance"; "CPU_SCALING_GOVERNOR_ON_BAT" = "powersave"; "CPU_MIN_PERF_ON_AC" = 0; "CPU_MAX_PERF_ON_AC" = 100; "CPU_MIN_PERF_ON_BAT" = 0; - "CPU_MAX_PERF_ON_BAT" = 50; + "CPU_MAX_PERF_ON_BAT" = 75; # DEVICES (wifi, ..) "DEVICES_TO_DISABLE_ON_STARTUP" = ""; "DEVICES_TO_ENABLE_ON_AC" = "bluetooth wifi wwan";