Fedora

Scope:

  • Officially supported Fedora releases

Note

Execute the commands below in a root shell.

Package Installation

TLP packages are available from the official Fedora repositories:

Hint: packages for RHEL/CentOS are available from the EPEL repositories.

Install the packages either with your favorite package manager or the command:

dnf install tlp tlp-rdw

Warning

Conflict with power-profiles-daemon

power-profiles-daemon (contained in GNOME 40 and newer) might be contained in the default install of your distribution.

Symptom: power-profiles-daemon.service prevents TLP from making power saving settings at system startup. A check with

systemctl status power-profiles-daemon.service tlp.service

generates the following output in the conflict case:

● power-profiles-daemon.service - Power Profiles daemon
     Loaded: loaded (/lib/systemd/system/power-profiles-daemon.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2021-09-08 09:55:50 CEST; 2min 13s ago
   Main PID: 413 (power-profiles-)
      Tasks: 3 (limit: 4506)
     Memory: 1.1M
     CGroup: /system.slice/power-profiles-daemon.service
             └─413 /usr/libexec/power-profiles-daemon

Sep 08 09:55:50 host systemd[1]: Starting Power Profiles daemon...
Sep 08 09:55:50 host systemd[1]: Started Power Profiles daemon.

● tlp.service - TLP system startup/shutdown
     Loaded: loaded (/lib/systemd/system/tlp.service; enabled; vendor preset: enabled)
     Active: inactive (dead)
       Docs: https://linrunner.de/tlp

Beginning with version 1.4 tlp start and tlp-stat -s will also detect the conflict:

Error: conflicting power-profiles-daemon.service is enabled, power saving will not apply on boot.
>>> Invoke 'systemctl mask power-profiles-daemon.service' to correct this!

Solution: disable power-profiles-daemon with

sudo systemctl mask power-profiles-daemon.service

and reboot.

ThinkPads only

Important

If your ThinkPad model was released in 2013 or later and you only want to use charge thresholds with at least kernel 4.19, you do not need to proceed any further here. However, if you want the recalibration feature or your model and/or kernel is older, read on.

Depending on your model and kernel version external kernel module(s) are required to provide battery charge thresholds and recalibration.

The necessary packages are not available from the official Fedora repositories. Instead you need to add the RPM Fusion and ThinkPad Extras repositories:

dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
dnf install https://repo.linrunner.de/fedora/tlp/repos/releases/tlp-release.fc$(rpm -E %fedora).noarch.rpm

Note

Above steps are only needed on a new installation of Fedora but not after release upgrades.

The output of tlp-stat -b (version 1.2.2 or higher recommended) will guide you which package to install:

  • kernel-devel (Fedora repo) – Needed for the akmod packages below

  • akmod-acpi_call (ThinkPad Extras repo) – optional – External kernel module providing battery recalibration for newer ThinkPads (X220/T420 i.e. 2013 and later)

  • akmod-tp_smapi (ThinkPad Extras repo) – optional – External kernel module providing battery charge thresholds, recalibration and specific tlp-stat -b output for older ThinkPads

Install the appropriate package either with your favorite package manager or the command

dnf install kernel-devel akmod-acpi_call

Replace akmod-acpi_call with akmod-tp_smapi where suitable (special case: X220/T420 generation makes use of both).

New packages are available first in the testing repository:

dnf --enablerepo=tlp-updates-testing install kernel-devel akmod-acpi_call akmod-tp_smapi

Important

  • The akmod-* packages are provided “as is” by a volunteer, they are not part of the TLP project

  • Please do not file issues if they are not yet available for the latest Fedora version, better watch the tlp-updates-testing repository

  • In case of difficulties installing them, please ask for help in your preferred Fedora forum

Note

How to validate the Repository Keys

Kernel module packages provided by the ThinkPad Extras repository for Fedora are signed with a release specific key. Yo may check the fingerprint with the following procedure.

  1. Download the key:

wget https://repo.linrunner.de/fedora/tlp/repos/RPM-GPG-KEY-tlp-fedora-34-primary
  1. Get the fingerprint:

gpg -n -q --import --import-options import-show RPM-GPG-KEY-tlp-fedora-34-primary
  1. Check that the resulting fingerprint matches the fingerprint from the list below.

  2. If they match, import the key:

rpm --import RPM-GPG-KEY-tlp-fedora-34-primary

Fingerprints

RPM-GPG-KEY-tlp-fedora-35-primary:

65C4 7531 819C 6D74 33BE 25D5 5052 26CB 40D9 3801

RPM-GPG-KEY-tlp-fedora-34-primary:

1E4F 2F53 A348 6025 FC4E FD86 7704 0BAF FA30 D1C8

RPM-GPG-KEY-tlp-fedora-33-primary:

0D3C F36C EB28 B582 D6DE F296 82B6 D96F 1381 B02A

RPM-GPG-KEY-tlp-fedora-32-primary:

6BED 8C16 80E0 E9DC D310 94FB 274D 8DB1 A690 281B

RPM-GPG-KEY-tlp-fedora-31-primary:

685D B6BB 26B9 A03B 2924 71CF 3CA1 F6C1 B629 712A

RPM-GPG-KEY-tlp-fedora-30-primary:

8130 3994 EEAF 1CC5 2AC1 DED7 2DDA 0C47 9F42 55D8

RPM-GPG-KEY-tlp-fedora-29-primary:

45CE 5574 CA74 65D1 90A9 9EB2 F59A C581 180C 9484

RPM-GPG-KEY-tlp-fedora-28-primary:

C807 AEB6 3DD0 4587 E695 9DD2 455A 80BA 1A85 3C73

RPM-GPG-KEY-tlp-fedora-27-primary:

9EEE ADC8 9282 2138 F017 7E41 9D87 D611 5CE7 AC42

RPM-GPG-KEY-tlp-fedora-26-primary:

A6AA 476D 471E 05A5 5CA2 8EDE 097F 6445 1482 D93F

RPM-GPG-KEY-tlp-fedora-25-primary:

F4BC 65CB 2E7E 83F4 7C87 914A 5096 4F53 2058 F5CF