Skip to content

Instantly share code, notes, and snippets.

@Kaapiii
Last active May 10, 2024 02:39
Show Gist options
  • Save Kaapiii/a5b1e8ce6d7afbf912f9117aade88543 to your computer and use it in GitHub Desktop.
Save Kaapiii/a5b1e8ce6d7afbf912f9117aade88543 to your computer and use it in GitHub Desktop.
Ubuntu 20.04/20.10 Install TLP for Lenovo ThinkPad

Installation Instruction for TLP for Lenovo ThinkPads

Install & Start TLP & Check System Status

sudo apt install tlp tlp-rdw
sudo tlp start
sudo tlp-stat -s

Check status of battery features with

sudo tlp-stat -b

Example output:

--- TLP 1.3.1 --------------------------------------------

+++ Battery Features: Charge Thresholds and Recalibrate
natacpi    = active (data, thresholds)
tpacpi-bat = active (recalibrate)
tp-smapi   = inactive (ThinkPad not supported)

Install Battery Features

sudo apt install acpi-call-dkms

Install the required battery module for tpacpi-bat

sudo apt install acpi-call-dkms

Set Permanent Charging Threshold

Uncomment the following lins in /etc/tlp.conf and add the desired charge start and stop percentage. (Start percentage musst be 3% higher then the stop)

START_CHARGE_THRESH_BAT0=50
STOP_CHARGE_THRESH_BAT0=80

Full documentation

Full documentation unter: https://linrunner.de/tlp/installation/index.html

@werm4
Copy link

werm4 commented Nov 12, 2021

I think it should be sudo tlp start in Install & Start TLP & Check System Status section. Thanks for sharing the gist mate!

@Kaapiii
Copy link
Author

Kaapiii commented Nov 13, 2021

Right, thank's for hint!

@huyhoang8398
Copy link

I dont think we need to add PPA thus tlp is in official repo

@fazlearefin
Copy link

There is no need to add PPA. These packages are in the Ubuntu official repo.

@Kaapiii
Copy link
Author

Kaapiii commented Jan 29, 2022

@fazlearefin @huyhoang8398 Thanks for reporting. I've removed the ppa section.

@nikhilw
Copy link

nikhilw commented Apr 13, 2023

I think there is a typo in the command after "Install the required battery module for tpacpi-bat". It should say: sudo apt install tp-smapi-dkms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment