Difference between revisions of "TLP"

From ArchWiki
Jump to: navigation, search
Line 1: Line 1:
'''tlp''' is set of powersaving-scripts for Lenovo/IBM ThinkPads (c), which handle powersaving options according to the current power source. It was originally written by linrunner for Ubuntu.  
+
'''TLP''' is set of powersaving-scripts for Lenovo/IBM ThinkPads (c), which handle powersaving options according to the current power source. It was originally written by linrunner for Ubuntu.  
 
A port is available at the [https://aur.archlinux.org/packages.php?ID=48464l AUR]. Although it is written for ThinkPads, it should work on other laptops as well, but without ThinkPad specific functions. Some features are:
 
A port is available at the [https://aur.archlinux.org/packages.php?ID=48464l AUR]. Although it is written for ThinkPads, it should work on other laptops as well, but without ThinkPad specific functions. Some features are:
 
* Kernel-Laptop-Mode and timouts for writeback of the filesystembuffer to hard disk
 
* Kernel-Laptop-Mode and timouts for writeback of the filesystembuffer to hard disk
Line 11: Line 11:
 
== Installation ==
 
== Installation ==
 
Just install it from the [https://aur.archlinux.org/packages.php?ID=48464l AUR].  
 
Just install it from the [https://aur.archlinux.org/packages.php?ID=48464l AUR].  
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 start tlp as a deamon, add '''tlp''' to the DEAMONS section in {{Filename|/etc/rc.conf}}
+
To start TLP as a daemon, add '''tlp''' to the DAEMONS section in {{Filename|/etc/rc.conf}}
  DEAMONS=( ... '''tlp''' ...)
+
  DAEMONS=( ... '''tlp''' ...)
  
 
== Configuration ==
 
== Configuration ==
Line 21: Line 21:
  
 
== Wifi ==
 
== Wifi ==
Some intel wifi cards require to set their powersaving options '''after''' establishing connection. Therefore the original version of tlp adds a script to {{Filename|/etc/network/if-up.d/}}, which itself calls (''as root'')
+
Some intel wifi cards require to set their powersaving options '''after''' establishing connection. Therefore the original version of TLP adds a script to {{Filename|/etc/network/if-up.d/}}, which itself calls (''as root'')
 
  tlp wifi $IFACE
 
  tlp wifi $IFACE
 
where '''$IFACE''' is the current Interface (e.g. wlan0). In Arch Linux, there is no such possibility by default. If you own a wifi card, which is not supported out of the box, please use the post-up methods of your preferred networking manager (like [[netcfg]] oder [[NetworkManager]]).
 
where '''$IFACE''' is the current Interface (e.g. wlan0). In Arch Linux, there is no such possibility by default. If you own a wifi card, which is not supported out of the box, please use the post-up methods of your preferred networking manager (like [[netcfg]] oder [[NetworkManager]]).
  
If tlp sets the powersaving options properly on ac-state changed, you do not need to change anything. Check this, by issuing the following command twice, before and after unplugging your ac adapter:
+
If TLP sets the powersaving options properly on ac-state changed, you do not need to change anything. Check this, by issuing the following command twice, before and after unplugging your ac adapter:
 
  iwconfig | grep "Power Management"
 
  iwconfig | grep "Power Management"
  
 
== External Links ==
 
== External Links ==
* tlp Documentaion at [http://thinkpad-wiki.org/TLP_-_Stromspareinstellungen_fuer_Ubuntu thinkpad-wiki.org] (in German)
+
* TLP Documentaion at [http://thinkpad-wiki.org/TLP_-_Stromspareinstellungen_fuer_Ubuntu thinkpad-wiki.org] (in German)
* tlp Developer Documentation at [http://thinkpad-wiki.org/TLP_Programmdokumentation thinkpad-wiki.org] (in German)
+
* TLP Developer Documentation at [http://thinkpad-wiki.org/TLP_Programmdokumentation thinkpad-wiki.org] (in German)

Revision as of 18:04, 25 April 2011

TLP is set of powersaving-scripts for Lenovo/IBM ThinkPads (c), which handle powersaving options according to the current power source. It was originally written by linrunner for Ubuntu. A port is available at the AUR. Although it is written for ThinkPads, it should work on other laptops as well, but without ThinkPad specific functions. Some features are:

  • Kernel-Laptop-Mode and timouts for writeback of the filesystembuffer to hard disk
  • Advanced Power Management Level per hard disk
  • I/O scheduler per hard disk
  • SATA Aggressive Link Power Management (ALPM)
  • Wifi powersaving mode for wifi-cards with iwlagn driver
  • battery-charging thresholds on some ThinkPads with (optionally) tp_smapi
  • and some more...

Installation

Just install it from the AUR. After successful installation, you can start TLP by typing as root/with sudo:

tlp start

To start TLP as a daemon, add tlp to the DAEMONS section in Template:Filename

DAEMONS=( ... tlp ...)

Configuration

The config-file is located at Template:Filename. To make use of the battery-charging option, install and configure Tp_smapi. A full list of Options is documented here: www.thinkpad-wiki.org (currently only in German language)

Wifi

Some intel wifi cards require to set their powersaving options after establishing connection. Therefore the original version of TLP adds a script to Template:Filename, which itself calls (as root)

tlp wifi $IFACE

where $IFACE is the current Interface (e.g. wlan0). In Arch Linux, there is no such possibility by default. If you own a wifi card, which is not supported out of the box, please use the post-up methods of your preferred networking manager (like netcfg oder NetworkManager).

If TLP sets the powersaving options properly on ac-state changed, you do not need to change anything. Check this, by issuing the following command twice, before and after unplugging your ac adapter:

iwconfig | grep "Power Management"

External Links