Difference between revisions of "TLP"

From ArchWiki
Jump to: navigation, search
(Start)
(Installation)
(24 intermediate revisions by 9 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/dkms-acpi_call-git/ dkms-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.)
+
  
== Start ==
+
{{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.}}
After successful installation, you can start TLP by typing ''as root/with sudo'':
+
tlp start
+
  
To run TLP automatically upon system startup, enable the service via:
+
Optional dependencies are:
  systemctl enable tlp.service
+
* {{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.)
  
''Hint:'' the above step is also necessary when upgrading to 0.3.8.1 because the service name changed.
+
After package installation, it is mandatory to enable both contained services via:
 +
# systemctl enable tlp
 +
# systemctl enable tlp-sleep
  
== Configuration ==
+
'''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]]:
The config file is located at {{ic|/etc/default/tlp}}.
+
# systemctl enable NetworkManager-dispatcher
  
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].  
+
== Start ==
 +
 
 +
After successful installation, TLP starts automatically on every boot.
 +
 
 +
== Configuration ==
 +
The configuration file is located at {{ic|/etc/default/tlp}}.  
  
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]]).  
+
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].  
  
== Kernel 2.6.39 ==
+
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]]).
According to this [https://bbs.archlinux.org/viewtopic.php?pid=946633 thread], the kernel 2.6.39 does not allow user-settings to
+
/sys/module/pcie_aspm/parameters/policy
+
You can use PCIe ASPM settings by starting the kernel with
+
pcie_aspm=force
+
  
== 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