Which operating system are you using?
techsupport
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:
Linux Mint
Turn off compositing effects and animations but leave compositing itself on, turn off any startup items you dont need or use, and here's some Firefox tweaks that helps with battery life:
https://www.reddit.com/r/EverytyhingLegal/comments/1ak4zpb/my_firefox_tweaks/
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_threshold
using 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_threshold
edit: there are no line breaks in the commands, that's just the formatting on small screens.
edit2: mine does not support it :'-(