From 80592cfd19a1a2bcbe684a8105db637866fc12e2 Mon Sep 17 00:00:00 2001 From: zazesty <129818922+zazesty@users.noreply.github.com> Date: Sun, 12 Oct 2025 20:22:23 -0700 Subject: [PATCH 1/2] Update laptop-battery-thresholds.md Persistent battery charging thresholds were added to 2025-07-24 Open Firmware by writing to EC flash. I edited this article to reflect this, reworking a paragraph to inform folks with new firmware that they may change charge thresholds in a persistent manner via the terminal (obviating systemd), and guiding folks using older firmware to the systemd procedure. Thank y'all! --- content/laptop-battery-thresholds.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/laptop-battery-thresholds.md b/content/laptop-battery-thresholds.md index 657ec404f5..5bc2c41c2b 100644 --- a/content/laptop-battery-thresholds.md +++ b/content/laptop-battery-thresholds.md @@ -33,7 +33,7 @@ To determine if your laptop has Open Firmware or proprietary firmware, see [this ## Configuring Charging Thresholds (Open Firmware) -**Note:** This feature is not currently finished. Currently, the thresholds are reset when the EC is reset (which happens when the system is shut down and the power is unplugged). Once the feature is complete, the thresholds will be persistent and a GUI will be available to set them. To work around this limitation in the short term, you can [use systemd to set thresholds at boot](#at-boot). +**Note:** This feature is not fully finished. In older open firmware, charging thresholds are reset when the EC is reset (which happens when the system is shut down and the power is unplugged). To work around this lack of persistence, you can [use systemd to set thresholds at boot](#at-boot). In open firmware version 2025-07-24_c242738, persistent battery charging thresholds were made persistent by writing them to EC flash. If you have this firmware or newer, you may set persistent charge thresholds [via the Terminal](#using-the-terminal). In addition, once this feature is complete, a GUI will be available to set charging thresholds. ### Using the terminal @@ -74,7 +74,7 @@ The thresholds can be controlled by reading from and writing to these sysfs file ### At boot -To work around the limitation in open firmware causing the thresholds to be reset when the system +To work around the limitation in older versions of open firmware causing the thresholds to be reset when the system is shut down and unplugged, you can set the thresholds at boot via systemd. To do so, create a file called `/etc/systemd/system/charge-thresholds.service` with the following contents: From 50d931a5df74bd7fa0ddae66a6e333f62b8d3b4b Mon Sep 17 00:00:00 2001 From: Jacob Kauffmann Date: Mon, 13 Oct 2025 16:36:28 -0600 Subject: [PATCH 2/2] Simplify battery thresholds by removing obsolete note --- content/laptop-battery-thresholds.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/content/laptop-battery-thresholds.md b/content/laptop-battery-thresholds.md index 5bc2c41c2b..5835f64b36 100644 --- a/content/laptop-battery-thresholds.md +++ b/content/laptop-battery-thresholds.md @@ -33,8 +33,6 @@ To determine if your laptop has Open Firmware or proprietary firmware, see [this ## Configuring Charging Thresholds (Open Firmware) -**Note:** This feature is not fully finished. In older open firmware, charging thresholds are reset when the EC is reset (which happens when the system is shut down and the power is unplugged). To work around this lack of persistence, you can [use systemd to set thresholds at boot](#at-boot). In open firmware version 2025-07-24_c242738, persistent battery charging thresholds were made persistent by writing them to EC flash. If you have this firmware or newer, you may set persistent charge thresholds [via the Terminal](#using-the-terminal). In addition, once this feature is complete, a GUI will be available to set charging thresholds. - ### Using the terminal You can see the thresholds that are currently set using this command: @@ -72,10 +70,11 @@ Charging thresholds are exposed by the firmware through ACPI, and the `system76_ The thresholds can be controlled by reading from and writing to these sysfs files. -### At boot +### At boot (for older firmware) + +Firmware versions beginning with the date `2025-07-24` or earlier did not persist charging thresholds across EC resets (which occur when the system is shut down and the power is unplugged). To work around this lack of persistence, you can use systemd to set thresholds at boot. -To work around the limitation in older versions of open firmware causing the thresholds to be reset when the system -is shut down and unplugged, you can set the thresholds at boot via systemd. To do so, create a file called +To do so, create a file called `/etc/systemd/system/charge-thresholds.service` with the following contents: ```