Difference between revisions of "TLP"

From ArchWiki
Jump to: navigation, search
m (Remove deprecated instructions for deamonarray)
(Start)
(4 intermediate revisions by 2 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
+
'''TLP''' is an advanced power management tool for Linux. It is a pure command line tool with
automated background tasks. It does not contain a GUI. The default configuration provides optimized power saving out of the box.  
+
automated background tasks and does not contain a GUI.  
  
{{aur|tlp}} is available in the AUR. Read the the full documentation at the [http://linrunner.de/tlp project homepage].
+
TLP is available in the AUR: {{aur|tlp}}, {{aur|tlp-rdw}}.  
  
 
== Features ==
 
== Features ==
Settings depending on the power source ac/bat:
+
Read the 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].  
+
Install the following packages plus dependencies:
 +
* [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 ==
 
After successful installation, you can start TLP by typing ''as root/with sudo'':
 
After successful installation, you can start TLP by typing ''as root/with sudo'':
 
  tlp start
 
  tlp start
 +
 
To run TLP automatically upon system startup, enable the service via:
 
To run TLP automatically upon system startup, enable the service via:
   systemctl enable tlp-init.service
+
   systemctl enable tlp.service
 +
 
 +
'''Hint:''' the above step is also necessary when upgrading to 0.3.8.1 because the service name changed.
  
 
== 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 config 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].  
 +
 
 +
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]]).  
  
 
== Kernel 2.6.39 ==
 
== Kernel 2.6.39 ==

Revision as of 11:41, 13 April 2013

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.

TLP is available in the AUR: tlpAUR, tlp-rdwAUR.

Features

Read the the full documentation at the project homepage.

Installation

Install the following packages plus dependencies:

  • tlp (AUR) – Power saving
  • tlp-rdw (AUR) – optional, Radio Device Wizard
  • tp_smapi (Community) – optional ThinkPad only, tp-smapi is needed for battery charge thresholds and ThinkPad specific status output of tlp-stat
  • 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

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:

 systemctl enable tlp.service

Hint: the above step is also necessary when upgrading to 0.3.8.1 because the service name changed.

Configuration

The config 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).

Kernel 2.6.39

According to this 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