Difference between revisions of "TLP"

From ArchWiki
Jump to: navigation, search
m (Remove deprecated instructions for deamonarray)
(Installation)
(28 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
[[Category:Power management]]
 
[[Category:Power management]]
'''TLP''' implements advanced power management for Linux. TLP is a pure command line tool with
+
{{Related articles start}}
automated background tasks. It does not contain a GUI. The default configuration provides optimized power saving out of the box.  
+
{{Related|Laptop Mode Tools}}
 +
{{Related articles end}}
 +
[http://linrunner.de/tlp TLP] is an advanced power management tool for Linux.  
  
{{aur|tlp}} is available in the AUR. Read the the full documentation at the [http://linrunner.de/tlp project homepage].
+
It is a pure, command-line tool with automated background tasks and does not contain a GUI.  
  
 
== Features ==
 
== Features ==
Settings depending on the power source ac/bat:
+
Read the full documentation at the [http://linrunner.de/tlp project homepage].
* Kernel laptop mode and dirty buffer params
+
* CPU scaling governor and mix/max frequencies
+
* Power aware process scheduler for multi-core/hyper-threading
+
* Hard disk advanced power magement level and spin down timeout (per disk)
+
* SATA aggressive link power management (ALPM)
+
* PCIe active state power management (PCIe ASPM) - Kernel 2.6.35 and above
+
* Runtime power management for PCI(e) bus devices - Kernel 2.6.35 and above
+
* Radeon graphics KMS power management - Kernel 2.6.35 and above, not fglrx
+
* Wifi power saving mode -  depending on kernel/driver
+
* Power off optical drive in drive bay (on battery)
+
 
+
Additional functions:
+
* I/O scheduler (per disk)
+
* USB autosuspend with blacklist (input devices excluded automatically)
+
* Audio power saving mode - hda_intel, ac97
+
* Enable or disable integrated radio devices upon system startup and shutdown
+
* Restore radio device state on system startup (from previous shutdown).
+
* Radio device wizard: switch radios upon network connect/disconnect and dock/undock
+
* Disable Wake On LAN
+
* Integrated wwan state is restored after suspend/hibernate
+
* Untervolting of Intel processors - requires kernel with PHC-Patch
+
* Battery charge thresholds - ThinkPads only
+
* Recalibrate battery - ThinkPads only
+
  
 
== Installation ==
 
== Installation ==
Just install it from the [https://aur.archlinux.org/packages.php?ID=48464l AUR].  
+
[[pacman|Install]] the {{Pkg|tlp}} and {{Pkg|tlp-rdw}} packages, which are available in the [[official repositories]].
After successful installation, you can start TLP by typing ''as root/with sudo'':
+
 
  tlp 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.}}
To run TLP automatically upon system startup, enable the service via:
+
 
  systemctl enable tlp-init.service
+
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-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 ==
 +
 
 +
After successful installation, TLP starts automatically on every boot.
  
 
== Configuration ==
 
== Configuration ==
The config-file is located at {{ic|/etc/default/tlp}}. A full list of options is documented here: [http://linrunner.de/en/tlp/docs/tlp-configuration.html TLP Configuration]. To make use of the battery-related options, install and configure [[Tp_smapi]].  
+
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].  
  
== 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