Commit 63db0a6e182a

Vincent Demeester <vincent@sbr.pm>
2022-08-19 19:16:11
system/hardware: setup charge threshold…
… to batter is used somewhat frequenty 🙃 Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent d0b6163
Changed files (1)
systems
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";