LG
Capability
- 2 modes: Full Capacity Mode, and Maximum Life Span mode.
- The charging threshold are fixed at value 100% and 80% and are not customizable.
- Full Capacity mode is the what LG refers to as
Extend Battery Life Mode
disabled (100%). - Maximum Life Span mode is the what LG refers to as
Extend Battery Life Mode
enabled (80%). - Maximum Life Span mode limits charging to 80% of battery level.
Dependencies
- No dependencies required.
- LG laptop that allows setting charging threshold are supported by mainline linux kernels.
Testing charging threshold using command-line
Charging mode can be set by using echo
command in terminal
.
To enable Extend Battery Life Mode
Require root privileges
echo '80' | pkexec tee /sys/devices/platform/lg-laptop/battery_care_limit
To disable Extend Battery Life Mode
Require root privileges
echo '100' | pkexec tee /sys/devices/platform/lg-laptop/battery_care_limit
sudo
also can be used in place of pkexec
in the above commands as both sudo
and pkexec
can be use to run commands in root mode. To make use of polkit rules, the extension uses pkexec
.
The current threshold value can also be read using cat
command in terminal
.
cat /sys/devices/platform/lg-laptop/battery_care_limit
Condition for applying threshold
- Accepted values for
battery_care_limit
: 80 or 100
If charging threshold are applied successfully using above commands, the extension is compatible.
Quick Settings
Gnome 43 and above Gnome 42
Extension Preferences