After 8 months of development, TLP 1.3 released a new configuration scheme, improved tlp-stat, and provided a solution for laptops reporting incorrect AC or battery status.TLP It is an advanced power management tool for Linux. The tool has a default configuration optimized to save battery, so it is very easy to use-just install TLP and you can omit it. TLP is highly customizable, so if you want to change some of its settings, you can also do this (by editing the TLP configuration file).
TLP automatically detects whether your laptop runs on battery or AC power and applies settings (change CPU frequency scaling and regulator, set WiFi power saving mode, enable or disable integrated radio equipment, set disk APM and disk slowdown timeout, etc.) , To optimize the performance of the laptop (when using AC power) or to save battery (when using battery). A list of features can be found On its website.
TLP is used as a system service and is worthless without a GUI by default. However, there is a third-party GUI that can easily change the TLP configuration, called TLPUI. [[Edit Feb 18, 2020]]TLPUI has been updated to support the new TLP 1.3 configuration scheme. The latest TLP 1.3 comes with a new configuration scheme in which the configuration file is parsed instead of getting the configuration file from it (shell expansion is no longer).
/etc/default/tlp Is replaced with
/etc/tlp.conf, And read the settings in the following order:
- Internal default
/etc/tlp.d/*.conf-Embedded custom fragments
If the parameters are the same, the last occurrence takes precedence.
TLP 1.3 also has many tlp-stat improvements. tlp-stat is the command line tool part of TLP, which displays the current configuration, system information, effective energy saving settings and battery data. The tlp-stat changes in this TLP version include:
- Configuration: display the file from which the parameter comes
- system message:
- Show SELinux status
- When TLP is disabled as a whole, display RDW as “disabled”
- Indicate persistent mode
- Intel CPU: When HWP.EPP is active, the EPB value is not displayed (see above)
- PCIe ASPM: Show available strategies
- tlp-stat -b (TLP battery data):
- Charge threshold: better check command line and configuration; clearer error message
- tlp discharge: When the battery is not fully discharged, the error message “Check hardware”
- Distinguish the “no kernel support” of natacpi (Linux < 4.17) and "laptop not supported" (Linux >= 4.17)
- When only the threshold value is available, the battery status “unknown” will be supplemented with “the threshold value may prevent charging”
tlp stat This command is deprecated in TLP 1.2, so starting from this version, you need to use
tlp-stat (Have root privileges). Other new features and enhancements in TLP 1.3:
- Added a workaround for laptops reporting incorrect AC or battery status (enabled with TLP_PS_IGNORE = BAT or TLP_PS_IGNORE = AC)
- Added powersupersave PCIe ASPM method
- Replace tlp-sleep.service with /lib/systemd/system-sleep/tlp
- CPU_ENERGY_PERF_POLICY_ON_AC / BAT:
- Backward compatibility with Intel energy and performance strategy EPB (ENERGY_PERF_POLICY_ON_AC / BAT) and HWP.EPP (CPU_HWP_ON_AC / BAT) settings merge
- When HWP.EPP is available, EPB is not set
- Verification parameters
- Eliminate external tools x86_energy_perf_policy with kernel >= 5.2
- ThinkPad X240 discharge BAT1 failure when BAT0 is not installed
- NVMe detection on Linux 4.15
- tlp-stat: Ignore the battery of the HID device to prevent the tlp-stat output error in the battery section
Do you want to squeeze more juice from the laptop battery? See also auto-cpufreq, a new automatic CPU speed and power optimizer for Linux designed to “extend battery life without making any compromises.” The tool does not interfere with TLP, so you can install them at the same time.
There are TLP packages in the repositories of Arch Linux, Debian, Fedora, Gentoo, openSUSE and Linux distributions based on these distributions, such as Linux Mint based on Ubuntu, Pop! _OS or Elementary OS, etc. See the TLP installation instructions linked above and scroll down to the dedicated section of the Linux distribution you are using, and follow the instructions here.
It is worth noting that TLP 1.3 has just been released, so it has not been added to the repository in all cases. Therefore, you can find the older TLP 1.2 in the repository. If you don’t want to wait for the latest version to be released in the repository of the Linux distribution you are using, you can look for a third-party TLP repository, or install TLP from: Resources.
Users of Ubuntu/Ubuntu-based Linux distributions (Linux Mint, Elementary OS, Pop!_OS, Zorin OS, etc.) can use the official TLP PPA repository to install the latest version of TLP:
sudo add-apt-repository ppa:linrunner/tlp sudo apt update sudo apt install tlp tlp-rdw
For ThinkPads, also install:
sudo apt install tp-smapi-dkms acpi-call-dkms
TLP starts automatically at startup. To prevent the system from restarting, you can use the following methods to start it immediately after installation:
sudo tlp start