Read the overview document first.
LG Gram laptops using the lg_laptop
driver have a feature called
'battery care limit', basically a fixed stop charge threshold at 80%.
The hardware behaviour is:
-
Connected to the charger, charging stops when the charge level reaches the stop threshold
-
If the charge level is higher than the stop threshold, the battery will not discharge automatically; it will only be discharged when the charger is removed i.e. the laptop runs on battery
When suitable hardware has been detected, tlp-stat -b
shows:
++ Battery Care
Plugin: lg
Supported features: charge threshold
Driver usage:
* vendor (lg_laptop) = active (charge threshold)
Parameter value range:
* STOP_CHARGE_THRESH_BAT0: 80(on), 100(off) -- battery care limit
/sys/devices/platform/lg-laptop/battery_care_limit = 80 [%]
Battery charging is a process not controlled by TLP itself, but by the laptop's embedded controller (EC). This makes the process work even when switched off or no operating system is running. You cannot change the basic behavior, it is hard-coded into the EC firmware by the vendor. TLP just writes the charge threshold into the EC with the help of the kernel driver, the EC takes care of the rest.
Packages are provided at the download page.
Linux kernel 4.20 or higher required.
Important: please provide all terminal input and output from the test cases via an individual Gist and link it in your post below.
Edit /etc/tlp.conf (or a config file of your choice under /etc/tlp.d/):
STOP_CHARGE_THRESH_BAT0="80"
Connect the charger.
Enter the following commands in a terminal (as root or with sudo
):
tlp start
tlp-stat -s -c -b
Verify that battery_care_limit = 80
.
- Let the laptop run on battery power until the charge level falls below at least 70%
- Connect the charger and see if charging starts
- Verify that charging stops at 80%
Enter the command (as root or with sudo
):
tlp-stat -b
Edit the config file used above:
STOP_CHARGE_THRESH_BAT0="100"
Enter the commands (as root or with sudo
):
tlp fullcharge
tlp-stat -b
Verify that battery_care_limit = 100
and the battery gets fully charged.
- Are there LG Gram laptops with more than one battery (
tlp-stat -b
should show)?
Parameter value range:
+++ Battery Status: CMB0
is it correct that the tlp setting is for BAT0 but LG uses CMB0 and there is no BAT0 folder in sys/class/power_supply?