Difference between revisions of "TLP"

From ArchWiki
Jump to: navigation, search
(Start)
(add unit to restart TLP after resuming to set correct APM value for harddisks)
(One intermediate revision by one other user not shown)
Line 22: Line 22:
 
   systemctl enable tlp.service
 
   systemctl enable tlp.service
  
''Hint:'' the above step is also necessary when upgrading to 0.3.8.1 because the service name changed.
+
'''Hint:''' the above step is also necessary when upgrading to 0.3.8.1 because the service name changed.
 +
 
 +
 
 +
To run TLP automatically upon resuming from standby / hibernation to set correct APM Value for HDD (activate with {{ic|# systemctl enable tlp_start}}):
 +
 
 +
{{hc|/etc/systemd/system/tlp_start.service|2=<nowiki>
 +
[Unit]
 +
Description=Start the TLP power management script after suspend/hibernation
 +
After=basic.target
 +
After=suspend.target
 +
After=hibernate.target
 +
StopWhenUnneeded=yes
 +
 
 +
[Service]
 +
Type=oneshot
 +
RemainAfterExit=yes
 +
ExecStart=-/usr/sbin/tlp start
 +
 
 +
[Install]
 +
WantedBy=basic.target
 +
WantedBy=suspend.target
 +
WantedBy=hibernate.target</nowiki>}}
  
 
== Configuration ==
 
== Configuration ==

Revision as of 10:18, 23 May 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.


To run TLP automatically upon resuming from standby / hibernation to set correct APM Value for HDD (activate with # systemctl enable tlp_start):

/etc/systemd/system/tlp_start.service
[Unit]
Description=Start the TLP power management script after suspend/hibernation
After=basic.target
After=suspend.target
After=hibernate.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-/usr/sbin/tlp start

[Install]
WantedBy=basic.target
WantedBy=suspend.target
WantedBy=hibernate.target

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