Most of the time, I am running my HP laptop all day keeping it plugged into the AC power. So, keep the battery quality, I am thinking of limiting the battery charge thresholds in an HP laptop with Ubuntu 24.04 LTS. I have tried to do it with tlp.
I installed tlp using the following commands:
sudo apt update
sudo apt install tlp tlp-rdw
sudo systemctl enable tlp
sudo systemctl start tlp
I then edited the /etc/tlp.conf configuration file to set the charging thresholds:
START_CHARGE_THRESH_BAT0=35
STOP_CHARGE_THRESH_BAT0=80
After saving the changes and restarting TLP (sudo tlp start), I get this:
$ sudo tlp-stat -b
--- TLP 1.6.1 --------------------------------------------
+++ Battery Care
Plugin: generic
Supported features: none available
+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer = Hewlett-Packard
/sys/class/power_supply/BAT0/model_name = Primary
/sys/class/power_supply/BAT0/cycle_count = 0 (or not supported)
/sys/class/power_supply/BAT0/charge_full_design = 1248 [mAh]
/sys/class/power_supply/BAT0/charge_full = 1248 [mAh]
/sys/class/power_supply/BAT0/charge_now = 1056 [mAh]
/sys/class/power_supply/BAT0/current_now = 528 [mA]
/sys/class/power_supply/BAT0/status = Charging
/sys/class/power_supply/BAT0/charge_control_start_threshold = (not available)
/sys/class/power_supply/BAT0/charge_control_end_threshold = (not available)
Charge = 84.6 [%]
Capacity = 100.0 [%]
It appears this method doesn't work. What else can I do?