this post was submitted on 10 Nov 2025
3 points (100.0% liked)
techsupport
2992 readers
1 users here now
The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.
If something works or if you find a solution to your problem let us know it will be greatly apreciated.
Rules: instance rules + stay on topic
Partnered communities:
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
https://itsfoss.com/limit-battery-charging-linux/
TL;DR
ls /sys/class/power_supply/This should list your batteries, standard is
BAT0.Next do:
ls /sys/class/power_supply/BAT0/charge_control_end_thresholdusing your laptops battery designation instead of
BAT0, of course.If this file exists, your laptop and OS should support setting a charging threshold. Set it to 80 % by executing:
echo 80 | sudo tee /sys/class/power_supply/BAT0/charge_control_end_thresholdedit: there are no line breaks in the commands, that's just the formatting on small screens.
edit2: mine does not support it :'-(