TLP

From ArchWiki
Revision as of 12:32, 24 April 2011 by Gabm (Talk | contribs) (Created page with "== Overview == '''tlp''' is set of powersaving-scripts for Lenovo/IBM ThinkPads (c), which handle powersaving options according to the current power source. It was originally wr...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

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:

  1. Kernel-Laptop-Mode and timouts for writeback of the filesystembuffer to hard disk
  2. Advanced Power Management Level per hard disk
  3. I/O scheduler per hard disk
  4. SATA Aggressive Link Power Management (ALPM)
  5. Wifi powersaving mode for wifi-cards with iwlagn driver
  6. battery-charging thresholds on some ThinkPads with (optionally) tp_smapi
  7. 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 deamon, add tlp to the DEAMONS section in Template:Filename

DEAMONS=( ... 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"