Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

182.5. tlp-pd-1.10.2

TLP's power-profiles daemon — serves org.freedesktop.UPower.PowerProfiles over TLP's profiles

1.10.2-1 · GPL-2.0-or-later AND GPL-3.0-only · 0.1 SBU · 79.2 KiB, 12 files · 42_graphics, 131 of 189 · ports/core/hardware/tlp-pd

Homepage: https://linrunner.de/tlp

tlp-pd is TLP’s power-profiles daemon: a Python program on GLib’s D-Bus bindings that owns org.freedesktop.UPower.PowerProfiles and net.hadess.PowerProfiles on the system bus, the interface of power-profiles-daemon. PowerDevil and the battery applet’s profile switcher talk to it, and each switch runs tlp power-saver, tlp balanced or tlp performance, so TLP’s own settings stay the tuning under every profile. tlpctl is its command-line client.

It is a second build of TLP’s source (see A second build of the same source): the same tarball under tlp’s file name and checksum, the same make variables, and only the install-pd and install-man-pd targets. It is a port of its own because it needs python3-gobject, which is built in a later phase than tlp. Both recipes carry group = tlp, and its version must equal tlp’s, because it runs the tlp beside it.

Depends on: tlp, python3, python3-gobject, glib, dbus, polkit.

Required by (1): powerdevil.

Sources: tlp-1.10.2.tar.gz (213.5 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install tlp-pd'

build.sh:

make TLP_WITH_SYSTEMD=0 TLP_WITH_ELOGIND=1 TLP_SBIN=/usr/sbin TLP_BIN=/usr/bin \
     TLP_TLIB=/usr/share/tlp TLP_ULIB=/usr/lib/udev TLP_CONFDIR=/etc/tlp.d \
     TLP_CONFDEF=/usr/share/tlp/defaults.conf TLP_ELOD=/usr/lib/elogind/system-sleep

make TLP_WITH_SYSTEMD=0 TLP_WITH_ELOGIND=1 TLP_SBIN=/usr/sbin TLP_BIN=/usr/bin \
     TLP_TLIB=/usr/share/tlp TLP_ULIB=/usr/lib/udev TLP_CONFDIR=/etc/tlp.d \
     TLP_CONFDEF=/usr/share/tlp/defaults.conf TLP_ELOD=/usr/lib/elogind/system-sleep \
     DESTDIR=$PKG install-pd install-man-pd

rm -rf "$PKG/usr/lib/systemd" "$PKG/usr/share/dbus-1/system-services"
rm -f "$PKG/usr/share/man/man8/tlp-pd.service.8"
rmdir "$PKG/usr/lib"

Programs: tlp-pd, tlpctl.

Directories: /usr/share/licenses/tlp-pd.

install-pd installs tlp-pd.service into TLP_SYSD whatever TLP_WITH_SYSTEMD says, and D-Bus activation files for both bus names whose Exec= is /bin/false and whose SystemdService= names that unit. build.sh removes /usr/lib/systemd, then the empty /usr/lib, and /usr/share/dbus-1/system-services: the package lint refuses a systemd unit, and an activation file that runs /bin/false would turn a call made before the daemon is up into a failed activation. tlp-pd is started at boot instead, by 56_tlppd.sh under ksvc, after 55_tlp.sh has applied the boot profile it reads back. The manual page tlp-pd.service(8), which documents the unit, is removed with it; tlp-pd(8) and tlpctl(1) ship.

The D-Bus policies under /usr/share/dbus-1/system.d let only root own the two names and let any client call them; changing the profile is the polkit action in tlp-pd.policy.