Difference between revisions of "TLP"

From ArchWiki
Jump to: navigation, search
(Installation)
(Installation)
(15 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
[[Category:Power management]]
 
[[Category:Power management]]
'''TLP''' is an advanced power management tool for Linux. It is a pure command line tool with
+
{{Related articles start}}
automated background tasks and does not contain a GUI.  
+
{{Related|Laptop Mode Tools}}
 +
{{Related articles end}}
 +
[http://linrunner.de/tlp TLP] is an advanced power management tool for Linux.  
  
TLP is available in the AUR: {{aur|tlp}}, {{aur|tlp-rdw}}.  
+
It is a pure, command-line tool with automated background tasks and does not contain a GUI.  
  
 
== Features ==
 
== Features ==
Read the the full documentation at the [http://linrunner.de/tlp project homepage].
+
Read the full documentation at the [http://linrunner.de/tlp project homepage].
  
 
== Installation ==
 
== Installation ==
Install the following packages plus dependencies:
+
[[pacman|Install]] the {{Pkg|tlp}} and {{Pkg|tlp-rdw}} packages, which are available in the [[official repositories]].
* [https://aur.archlinux.org/packages/tlp/ tlp] (AUR) – Power saving
+
* [https://aur.archlinux.org/packages/tlp-rdw/ tlp-rdw] (AUR) – optional, Radio Device Wizard
+
* [[Tp_smapi|tp_smapi]] (Community) – optional ''ThinkPad only'', tp-smapi is needed for battery charge thresholds and ThinkPad specific status output of tlp-stat
+
* [https://aur.archlinux.org/packages/acpi_call-git/ acpi_call-git] (AUR) – optional ''ThinkPad only'', acpi_call is needed for battery charge thresholds on Sandy Bridge and newer models (X220/T420, X230/T430 et al.)
+
  
After package installation it is mandatory to enable both contained services via:
+
{{Note| tlp conflicts with pm-utils (or any other power management tool for that matter). This was worked around before in the AUR .install file by replacing some pm-utils files with symlinks to tlp scripts. However this workaround will not be used in an official package.}}
 +
 
 +
Optional dependencies are:
 +
* {{Pkg|tp_smapi}} – optional ''ThinkPad only'', tp-smapi is needed for battery charge thresholds and ThinkPad specific status output of tlp-stat
 +
* {{Pkg|acpi_call}} – optional ''ThinkPad only'', acpi_call is needed for battery charge thresholds on Sandy Bridge and newer models (X220/T420, X230/T430 et al.)
 +
 
 +
After package installation, it is mandatory to enable both contained services via:
 
  # systemctl enable tlp
 
  # systemctl enable tlp
  # systemctl enable tlp-service
+
  # systemctl enable tlp-sleep
 +
 
 +
'''Important:''' if you want to use tlp-rdw  – which in turn requires [[NetworkManager]] – it is mandatory to enable the [[NetworkManager#Network_services_with_NetworkManager_dispatcher|corresponding service]]:
 +
# systemctl enable NetworkManager-dispatcher
  
 
== Start ==
 
== Start ==
Line 24: Line 31:
  
 
== Configuration ==
 
== Configuration ==
The config file is located at {{ic|/etc/default/tlp}}.  
+
The configuration file is located at {{ic|/etc/default/tlp}}.  
  
The default configuration provides optimized power saving out of the box. For a full list of options see: [http://linrunner.de/en/tlp/docs/tlp-configuration.html TLP Configuration].  
+
The default configuration provides optimized power saving out of the box. For a full list of options, see: [http://linrunner.de/en/tlp/docs/tlp-configuration.html TLP Configuration].  
  
To make use of the ThinkPad-specific battery options, install and configure [[Tp_smapi|tp_smapi]] and/or [https://aur.archlinux.org/packages/dkms-acpi_call-git/ acpi_call] (see [[TLP#Installation|Installation]]).  
+
To make use of the ThinkPad-specific battery options, install and configure [[Tp_smapi|tp_smapi]] and/or {{Pkg|acpi_call}} (see [[TLP#Installation|Installation]]).
  
== External Links ==
+
== See also ==
 
* [http://linrunner.de/tlp TLP - Linux Advanced Power Management] - Project homepage & documentation
 
* [http://linrunner.de/tlp TLP - Linux Advanced Power Management] - Project homepage & documentation

Revision as of 08:36, 28 January 2014

Related articles

TLP is an advanced power management tool for Linux.

It is a pure, command-line tool with automated background tasks and does not contain a GUI.

Features

Read the full documentation at the project homepage.

Installation

Install the tlp and tlp-rdw packages, which are available in the official repositories.

Note: tlp conflicts with pm-utils (or any other power management tool for that matter). This was worked around before in the AUR .install file by replacing some pm-utils files with symlinks to tlp scripts. However this workaround will not be used in an official package.

Optional dependencies are:

  • tp_smapi – optional ThinkPad only, tp-smapi is needed for battery charge thresholds and ThinkPad specific status output of tlp-stat
  • acpi_call – optional ThinkPad only, acpi_call is needed for battery charge thresholds on Sandy Bridge and newer models (X220/T420, X230/T430 et al.)

After package installation, it is mandatory to enable both contained services via:

# systemctl enable tlp
# systemctl enable tlp-sleep

Important: if you want to use tlp-rdw – which in turn requires NetworkManager – it is mandatory to enable the corresponding service:

# systemctl enable NetworkManager-dispatcher

Start

After successful installation, TLP starts automatically on every boot.

Configuration

The configuration file is located at /etc/default/tlp.

The default configuration provides optimized power saving out of the box. For a full list of options, see: TLP Configuration.

To make use of the ThinkPad-specific battery options, install and configure tp_smapi and/or acpi_call (see Installation).

See also