Maximum battery life on linux within reasonable and acceptable daily workloads
Thinkpad x240 with
9cells battery on
Before: from 100% to 5% - ~
After installing TLP: ~
TLP brings you the benefits of advanced power management for Linux without the need to understand every technical detail. TLP comes with a default configuration already optimized for battery life, so you may just install and forget it. Nevertheless, TLP is highly customizable to fulfill your specific requirements.
TLP runs on every laptop brand. Setting the battery charge thresholds is available for IBM/Lenovo ThinkPads only.
# Add PPAsudo add-apt-repository ppa:linrunner/tlpsudo apt-get update# Especially for thinkpadsudo apt-get install tp-smapi-dkms acpi-call-dkms# Installsudo apt-get install tlp tlp-rdw
TLP will start automatically. To avoid having to restart the system, the first time you can start it manually by using the following command:
sudo tlp start
Check: Use the
tlp-stat terminal command to check if TLP is working properly
▶ sudo tlp-stat -s[sudo] password for devops:--- TLP 1.0 --------------------------------------------+++ System InfoSystem = LENOVO ThinkPad X240 20AMS1WY00BIOS = GIET75WW (2.25 )Release = Ubuntu 16.04.2 LTSKernel = 4.10.0-27-generic #30~16.04.2-Ubuntu SMP Thu Jun 29 16:07:46 UTC 2017 x86_64/proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-4.10.0-27-generic.efi.signed root=UUID=34cadb32-d632-4d98-a4a8-a1c53753dc35 ro quiet splash vt.handoff=7Init system = systemd v229Boot mode = UEFI+++ TLP StatusState = enabledLast run = 10:41:53 PM, 3685 sec(s) agoMode = batteryPower source = battery