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 Sep 22, 2023
1 parent f22205e commit 9ce1a3c
Show file tree
Hide file tree
Showing 5 changed files with 699 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

[Terminal](Linux%20cb3309297ee244a2a914a3e358ef4a33/Terminal%201fd318a677c14e069d24a70df7290c7a.md)

[Directory Structure](Linux%20cb3309297ee244a2a914a3e358ef4a33/Directory%20Structure%2014ca739fe9d046c78bc4dfc14f484f78.md)
[Directory Structure](Linux%20cb3309297ee244a2a914a3e358ef4a33/Directory%20Structure%2014ca739fe9d046c78bc4dfc14f484f78.md)

[Limit Battery Charge Levels](Linux%20cb3309297ee244a2a914a3e358ef4a33/Limit%20Battery%20Charge%20Levels%20c19cff84e8d043d4bf6896d5fe0380a4.md)
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/)
Original file line number Diff line number Diff line change
Expand Up @@ -673,4 +673,4 @@
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="cb330929-7ee2-44a2-a914-a3e358ef4a33" class="page sans"><header><h1 class="page-title">Linux</h1><p class="page-description"></p></header><div class="page-body"><figure id="943e94eb-6329-48eb-99ad-323b50fb4b0d" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/shebang%20943e94eb632948eb99ad323b50fb4b0d.html">shebang</a></figure><figure id="ccdb80f5-770a-48f8-8389-d834c0e9745a" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/Fedora%20ccdb80f5770a48f88389d834c0e9745a.html">Fedora</a></figure><figure id="33d10046-bbae-47eb-9a9e-7ab1b2380d38" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/Commands%2033d10046bbae47eb9a9e7ab1b2380d38.html">Commands</a></figure><figure id="f4fcbd7c-4113-4b12-bcae-9719407749da" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/zsh%20f4fcbd7c41134b12bcae9719407749da.html">zsh</a></figure><figure id="aa4b258c-673e-4fe5-8d02-18354c5dadef" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/NixOS%20aa4b258c673e4fe58d0218354c5dadef.html">NixOS</a></figure><figure id="e845b0c5-d78e-4b6e-9100-eed6b62deaed" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/systemd%20e845b0c5d78e4b6e9100eed6b62deaed.html">systemd</a></figure><figure id="c8227274-2259-476f-ac21-13614a30f183" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/sed%20c82272742259476fac2113614a30f183.html">sed</a></figure><figure id="1fd318a6-77c1-4e06-9d24-a70df7290c7a" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/Terminal%201fd318a677c14e069d24a70df7290c7a.html">Terminal</a></figure><figure id="14ca739f-e9d0-46c7-8bc4-dfc14f484f78" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/Directory%20Structure%2014ca739fe9d046c78bc4dfc14f484f78.html">Directory Structure</a></figure></div></article></body></html>
</style></head><body><article id="cb330929-7ee2-44a2-a914-a3e358ef4a33" class="page sans"><header><h1 class="page-title">Linux</h1><p class="page-description"></p></header><div class="page-body"><figure id="943e94eb-6329-48eb-99ad-323b50fb4b0d" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/shebang%20943e94eb632948eb99ad323b50fb4b0d.html">shebang</a></figure><figure id="ccdb80f5-770a-48f8-8389-d834c0e9745a" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/Fedora%20ccdb80f5770a48f88389d834c0e9745a.html">Fedora</a></figure><figure id="33d10046-bbae-47eb-9a9e-7ab1b2380d38" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/Commands%2033d10046bbae47eb9a9e7ab1b2380d38.html">Commands</a></figure><figure id="f4fcbd7c-4113-4b12-bcae-9719407749da" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/zsh%20f4fcbd7c41134b12bcae9719407749da.html">zsh</a></figure><figure id="aa4b258c-673e-4fe5-8d02-18354c5dadef" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/NixOS%20aa4b258c673e4fe58d0218354c5dadef.html">NixOS</a></figure><figure id="e845b0c5-d78e-4b6e-9100-eed6b62deaed" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/systemd%20e845b0c5d78e4b6e9100eed6b62deaed.html">systemd</a></figure><figure id="c8227274-2259-476f-ac21-13614a30f183" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/sed%20c82272742259476fac2113614a30f183.html">sed</a></figure><figure id="1fd318a6-77c1-4e06-9d24-a70df7290c7a" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/Terminal%201fd318a677c14e069d24a70df7290c7a.html">Terminal</a></figure><figure id="14ca739f-e9d0-46c7-8bc4-dfc14f484f78" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/Directory%20Structure%2014ca739fe9d046c78bc4dfc14f484f78.html">Directory Structure</a></figure><figure id="c19cff84-e8d0-43d4-bf68-96d5fe0380a4" class="link-to-page"><a href="Linux%20cb3309297ee244a2a914a3e358ef4a33/Limit%20Battery%20Charge%20Levels%20c19cff84e8d043d4bf6896d5fe0380a4.html">Limit Battery Charge Levels</a></figure></div></article></body></html>
Loading

0 comments on commit 9ce1a3c

Please sign in to comment.