Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Automated dump
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 28, 2024
1 parent fe29b68 commit 6e094ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Limit Battery Charge Levels

It is possible to set a `start` and `end` value for battery charching percentages to preserve battery longevity.
It is possible to set a `start` and `end` value for battery charging percentages to preserve battery longevity.

```
echo "75" | sudo tee /sys/class/power_supply/BAT0/charge_control_start_threshold
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -673,5 +673,6 @@
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%220.75%22%20y%3D%220.75%22%20width%3D%2214.5%22%20height%3D%2214.5%22%20fill%3D%22white%22%20stroke%3D%22%2336352F%22%20stroke-width%3D%221.5%22%2F%3E%0A%3C%2Fsvg%3E");
}

</style></head><body><article id="c19cff84-e8d0-43d4-bf68-96d5fe0380a4" class="page sans"><header><h1 class="page-title">Limit Battery Charge Levels</h1><p class="page-description"></p></header><div class="page-body"><p id="851b4254-fe30-4b9d-9223-7f67f65133d4" class="">It is possible to set a <code>start</code> and <code>end</code> value for battery charching percentages to preserve battery longevity.</p><script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js" integrity="sha512-7Z9J3l1+EYfeaPKcGXu3MS/7T+w19WtKQY/n+xzmw4hZhJ9tyYmcUS+4QqAlzhicE5LAfMQSF3iFTK9bQdTxXg==" crossorigin="anonymous" referrerPolicy="no-referrer"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" integrity="sha512-tN7Ec6zAFaVSG3TpNAKtk4DOHNpSwKHxxrsiw4GHKESGPs5njn/0sMCUMl2svV4wo4BK/rCP7juYz+zx+l6oeQ==" crossorigin="anonymous" referrerPolicy="no-referrer"/><pre id="9f65778e-bd15-4027-bdf9-05a43eb55665" class="code"><code class="language-Plain Text">echo &quot;75&quot; | sudo tee /sys/class/power_supply/BAT0/charge_control_start_threshold
echo &quot;85&quot; | sudo tee /sys/class/power_supply/BAT0/charge_control_end_threshold</code></pre><p id="baf4c7a6-15ae-4766-9577-7587edf100c4" class="">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%.</p><p id="3f7c858d-5b05-42d1-98ea-13156c981c28" class="">Alternatively, if this does not work, you might need to replace <code>BAT0</code> with <code>BAT1</code>, if your device reports more than one battery.</p><h1 id="5d60573e-1b0d-4ec8-a846-ac13b760b59e" class="">Sources</h1><ul id="b286d39d-66e7-473f-bf79-73d3f3e9d791" class="bulleted-list"><li style="list-style-type:disc"><a href="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/</a></li></ul></div></article><span class="sans" style="font-size:14px;padding-top:2em"></span></body></html>
</style></head><body><article id="c19cff84-e8d0-43d4-bf68-96d5fe0380a4" class="page sans"><header><h1 class="page-title">Limit Battery Charge Levels</h1><p class="page-description"></p></header><div class="page-body"><p id="851b4254-fe30-4b9d-9223-7f67f65133d4" class="">It is possible to set a <code>start</code> and <code>end</code> value for battery charging percentages to preserve battery longevity.</p><script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js" integrity="sha512-7Z9J3l1+EYfeaPKcGXu3MS/7T+w19WtKQY/n+xzmw4hZhJ9tyYmcUS+4QqAlzhicE5LAfMQSF3iFTK9bQdTxXg==" crossorigin="anonymous" referrerPolicy="no-referrer"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" integrity="sha512-tN7Ec6zAFaVSG3TpNAKtk4DOHNpSwKHxxrsiw4GHKESGPs5njn/0sMCUMl2svV4wo4BK/rCP7juYz+zx+l6oeQ==" crossorigin="anonymous" referrerPolicy="no-referrer"/><pre id="9f65778e-bd15-4027-bdf9-05a43eb55665" class="code"><code class="language-Plain Text">echo &quot;75&quot; | sudo tee /sys/class/power_supply/BAT0/charge_control_start_threshold
echo &quot;85&quot; | sudo tee /sys/class/power_supply/BAT0/charge_control_end_threshold</code></pre><p id="baf4c7a6-15ae-4766-9577-7587edf100c4" class="">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%.</p><p id="3f7c858d-5b05-42d1-98ea-13156c981c28" class="">Alternatively, if this does not work, you might need to replace <code>BAT0</code> with <code>BAT1</code>, if your device reports more than one battery.</p><h1 id="5d60573e-1b0d-4ec8-a846-ac13b760b59e" class="">Sources</h1><ul id="b286d39d-66e7-473f-bf79-73d3f3e9d791" class="bulleted-list"><li style="list-style-type:disc"><a href="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/</a></li></ul><p id="0467f980-51c6-40c2-939a-38ab1284a1f5" class="">
</p></div></article><span class="sans" style="font-size:14px;padding-top:2em"></span></body></html>
Loading

0 comments on commit 6e094ca

Please sign in to comment.