Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions content/laptop-battery-thresholds.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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).

### Using the terminal

You can see the thresholds that are currently set using this command:
Expand Down Expand Up @@ -74,9 +72,12 @@ 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
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:
Open Firmware versions dated 2025-02-04 and later save the charging thresholds automatically.
As a result, this "at boot" workaround is no longer needed.

Earlier versions of firmware lost their configured thresholds when the system was shut down and unplugged.
To work around this limitation in earlier firmware versions, 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:

```
[Unit]
Expand Down
Loading