This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Sep 22, 2023
1 parent
f22205e
commit 9ce1a3c
Showing
5 changed files
with
699 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...914a3e358ef4a33/Limit Battery Charge Levels c19cff84e8d043d4bf6896d5fe0380a4.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Limit Battery Charge Levels | ||
|
||
It is possible to set a `start` and `end` value for battery charching percentages to preserve battery longevity. | ||
|
||
``` | ||
echo "75" | sudo tee /sys/class/power_supply/BAT0/charge_control_start_threshold | ||
echo "85" | sudo tee /sys/class/power_supply/BAT0/charge_control_end_threshold | ||
``` | ||
|
||
These commands set the “start” threshold — the battery percentage from which the battery will be charged when reached after dropping down — to 75% and the “end” threshold — the battery percentage when the charging will be stopped — to 85%. | ||
|
||
Alternatively, if this does not work, you might need to replace `BAT0` with `BAT1`, if your device reports more than one battery. | ||
|
||
# Sources | ||
|
||
- [https://www.summet.com/blog/2021/06/07/enabling-a-maximum-battery-charge-amount-charge-threshold-on-lenovo-x1-in-ubuntu/](https://www.summet.com/blog/2021/06/07/enabling-a-maximum-battery-charge-amount-charge-threshold-on-lenovo-x1-in-ubuntu/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.