[Ubuntu] Limiting Lenovo Laptop Battery Charging to 80% in Ubuntu

TLP is a power management tool for Linux. It supports battery charge thresholds for various laptop models, including Lenovo. Here’s how to use it:

  1. Install TLP. Run the following commands:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp

The add-apt-repository command adds the PPA (Personal Package Archive) for TLP to your system’s software sources. The apt update command updates the package list, and the apt install command installs TLP.

  1. Open the TLP configuration file:

sudo gedit /etc/default/tlp

This command opens the TLP configuration file in the Gedit text editor with root privileges.

  1. Find the battery settings section. Uncomment the lines for start and stop thresholds and set them to your desired values. For example:

START_CHARGE_THRESH_BAT0=75
STOP_CHARGE_THRESH_BAT0=80

These lines set the start and stop charging thresholds to 75% and 80%, respectively.

  1. Save the file and restart TLP:

sudo tlp start

This command starts the TLP service.

Last updated