path: root/system/TLP
diff options
Diffstat (limited to 'system/TLP')
7 files changed, 38 insertions, 67 deletions
diff --git a/system/TLP/49tlp b/system/TLP/49tlp
deleted file mode 100644
index bfe0e81af1..0000000000
--- a/system/TLP/49tlp
+++ /dev/null
@@ -1,22 +0,0 @@
-# tlp - handle suspend/hibernate/resume tasks
-# Copyright (c) 2018 Thomas Koch <linrunner at>
-# This software is licensed under the GPL v2 or later.
-case $1 in
- hibernate|suspend)
- tlp suspend
- ;;
- thaw|resume)
- tlp resume
- ;;
- *) exit $NA
- ;;
-exit 0
diff --git a/system/TLP/README b/system/TLP/README
index 7a6c61fa0b..f4bd268b0d 100644
--- a/system/TLP/README
+++ b/system/TLP/README
@@ -1,16 +1,15 @@
-TLP implements advanced power management for Linux.
+TLP is a command line tool for optimizing power usage, relevant for
-It is a command line tool with automated background tasks,
-does not contain a GUI.
+The default settings are optimized, and customization can be done by
+editing TLP's configuration file(s).
-Remove any power saving settings/scripts (e.g.: in /etc/rc.local),
-and uninstall laptop-mode-tools prior installing or TLP may not work
+Note - Remove any power saving settings/scripts (e.g.: in
+/etc/rc.local), and uninstall laptop-mode-tools to allow TLP to work
-See README.SLACKWARE for more information about post-installation
+See README.SLACKWARE for post-installation instructions.
-An additional configuration is available for Thinkpads. See the
-website for more details:
+Additional configuration is available for Thinkpads.
diff --git a/system/TLP/README.Slackware b/system/TLP/README.Slackware
index 34e8b4723d..a028a1b337 100644
--- a/system/TLP/README.Slackware
+++ b/system/TLP/README.Slackware
@@ -10,13 +10,19 @@ chmod +x /etc/rc.d/rc.tlp
/etc/rc.d/rc.acpid restart
# Configure tlp to be run at startup
-add "/etc/rc.d/rc.tlp start" (without quotes) to /etc/rc.d/rc.local
+Add the following to /etc/rc.d/rc.local
-After removal of this package you would need to revert the above
-changes. Please make sure that you stopped the TLP service before
-removing TLP.
+if [ -x /etc/rc.d/rc.tlp ]; then
+ /etc/rc.d/rc.tlp start
-If you have enabled any hooks in /usr/lib/pm-utils/power.d/ (they are
-disabled by default), then the instructions given in the TLP developer
-documentation can be followed.
+After removal of the package revert the above changes.
+Make sure to stop the service before uninstalling.
+If any hooks in /usr/lib/pm-utils/power.d/ have been enabled (disabled by default),
+the instructions in the developer documentation can be followed:
+TLP configuration moved from /etc/default/tlp to /etc/tlp.conf
+since version 1.3.0. \ No newline at end of file
diff --git a/system/TLP/TLP.SlackBuild b/system/TLP/TLP.SlackBuild
index bd511beb50..ab42cf209d 100644
--- a/system/TLP/TLP.SlackBuild
+++ b/system/TLP/TLP.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for TLP
-# Copyright 2013-2019 Aaditya Bagga <>
+# Copyright 2013-2022 Aaditya Bagga <>
# All rights reserved.
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
@@ -82,20 +79,11 @@ find -L . \
# Switch to rc.d
sed 's/init.d/rc.d/' -i Makefile
-# Fix for x86_64
-sed "s/usr\/lib/usr\/lib${LIBDIRSUFFIX}/" -i Makefile
-# Correct sourcing of non-existant file
-sed 's|. \/lib\/lsb\/init-functions|#. \/lib\/lsb\/init-functions|' -i tlp.init
export TLP_MAN=/usr/man
make install-tlp install-man DESTDIR=$PKG
-# Install tlp pm-utils hook as we dont have elogind
-install -D -m 755 $CWD/49tlp $PKG/usr/lib${LIBDIRSUFFIX}/pm-utils/sleep.d/49tlp
# Don't clobber configs
-mv $PKG/etc/default/tlp $PKG/etc/default/
+mv $PKG/etc/tlp.conf $PKG/etc/
# move to rc.tlp
mv $PKG/etc/rc.d/tlp $PKG/etc/rc.d/
@@ -105,7 +93,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/system/TLP/ b/system/TLP/
index bd380f406f..ce0458a277 100644
--- a/system/TLP/
+++ b/system/TLP/
@@ -1,8 +1,8 @@
diff --git a/system/TLP/ b/system/TLP/
index d21b756e2a..ae35cd7c56 100644
--- a/system/TLP/
+++ b/system/TLP/
@@ -22,5 +22,5 @@ preserve_perms() {
config $NEW
-config etc/default/
+config etc/
preserve_perms etc/rc.d/
diff --git a/system/TLP/slack-desc b/system/TLP/slack-desc
index 16b264494e..6eb81a36c4 100644
--- a/system/TLP/slack-desc
+++ b/system/TLP/slack-desc
@@ -6,14 +6,14 @@
# customary to leave one space after the ':' except on otherwise blank lines.
-TLP: TLP (Advanced Power Management Tool)
+TLP: TLP (Optimize power usage)
-TLP: TLP brings you the benefits of advanced power management for Linux
+TLP: TLP brings the benefits of advanced power management for Linux
TLP: without the need to understand every technical detail.
-TLP: TLP comes with a default configuration already optimized for battery
-TLP: life, so you may just install and forget it.
-TLP: Nevertheless TLP is highly customizable to fulfil your specific
-TLP: requirements.
-TLP: Website -
+TLP: It comes with a default configuration already optimized for battery
+TLP: life. Customization can be done by editing its config files.
+TLP: Website: