All TLP settings are stored in the config file /etc/default/tlp. The default configuration provides optimized power saving out of the box. Some advanced features like turning off the optical drive and battery thresholds need to be activated explicitly.
The config file can be changed with any text editor (root privilege is needed). For example:
Changes to the settings take effect after a reboot, a change of the power source or directly by
Hint: when installing updates of TLP, the package manager asks for confirmation before overwriting a changed config file with an updated version.
General hints:
Set to 0 to disable TLP (Reboot needed).
Values > 0 activate kernel laptop mode. No changes needed.
Timeout (in seconds) for writing unsaved data in file systems buffers to disk.
Selects the cpu scaling governor for automatic frequency scaling. Possible values are ondemand (default), powersave, performance and conservative.
Important:
Set the min/max frequency available for the scaling governor. Possible values depend on your CPU. For available frequencies consult the output of tlp-stat, Section "+++ Processor". A value of 0 means to use processor defaults.
Hint: after enabling the processor defaults a restart is required to ensure that the new setting takes.
Important: lowering the max frequency on battery power does not conserve power. The best results are achieved by the ondemand governor without frequency limits.
Disable cpu "turbo boost" (Intel) or "turbo core" (AMD) feature (0 = disable / 1 = allow).
Hints:
Minimize number of used cpu cores/hyper-threads under light load conditions (1 = enabled, 0 = disabled). Depends on processor model.
Activate kernel NMI watchdog timer (0 = disabled/save power, 1=enabled). A value of 1 is relevant for kernel debugging only.
Hint: advanced Linux skills are necessary to use this feature.
Frequency/voltage ID pairs for the undervolting of Intel processors. Assumes that a kernel with PHC patches is installed. For more information see the PHC wiki.
Defines the disk devices the following parameters are effective for. Multiple devices are separated with blanks.
When using a 2nd disk in a swappable drive slot or the Ultrabay, the assignment of device names by the kernel (sda/sdb) can change possibly. In this case it is advisable to do the device assignment using IDs:
The command
shows the IDs of all attached disks.
Set the "Advanced Power Management Level". Possible values range between 1 and 255:
Different values for multiple disks are separated with blanks.
Timeout value until the spindle motor stops when the disk is idle. Valid settings:
Different values for multiple disks are separated with blanks.
SSDs don't have moving parts, therefore this setting is "don't care" for them and can remain disabled.
Hint: stopping the system disk for extended periods of time is unlikely to work, because applications and system daemons wake up the disk frequently. However for a 2nd disk in a swappable drive slot or the Ultrabay that is not accessed permanently, this setting may be quite useful.
Sets the I/O scheduler per disk. Possible values:
Different values for multiple disks are separated with blanks.
Sets the power management mode for the SATA links connecting disk and optical drives. Possible values:
Sets PCIe ASPM power saving mode. Available with kernel 2.6.35 and above. Possible values:
Controls the graphics card's clock. Available with kernel 2.6.35 and above. Supported by the radeon driver, not fglrx. Possible values:
Hint: this setting makes the display flicker briefly upon changing the power source.
Sets wifi power saving mode. Adapter support depends on kernel and driver. Possible values:
Hint: power save can cause an unstable wifi link.
Hint: after enabling a restart is required to ensure that the new setting takes.
Timeout (in seconds) for the audio power saving mode (supports Intel HDA, AC97). A value of 0 disables power save.
Hint: this setting can cause slight clicks in sound output.
Device file for the optical drive (default: /dev/sr0).
Hints:
Controls runtime power management for PCI(e) bus devices. Available with kernel 2.6.35 and above. Possible values:
Controls which PCI(e) devices are considered for runtime power management:
Warning: RUNTIME_PM_ALL=1 is an experimental feature, it may cause problems with reboot and shutdown.
Set autosuspend mode for all USB devices upon system start or a change of power source. Input devices like mice and keyboards are exluded by default. Possible values:
Exclude USB devices from autosuspend mode. Useful for devices having difficulties in waking up from autosuspend. Use lsusb to determine IDs. Multiple IDs are separated with blanks.
Disables USB autosuspend mode upon system shutdown. This is intended as a workaround if suspended USB devices disturb the shutdown process.
Restores radio device state (builtin bluetooth, wifi, wwan) from previous shutdown on system startup:
Hint: the parameters DEVICES_TO_DISABLE_ON_STARTUP/SHUTDOWN below are ignored when this is enabled.
Disables builtin radio devices upon system start:
Multiple devices are separated with blanks.
Hint: this feature is not available for all laptops. It depends on rfkill support for your model.
Linux enables all builtin radio devices by default. In case of exception you can use this setting to enable the missing devices upon system startup. Possible values are as above.
Disables builtin radio devices upon system shutdown. May be used as a workaround when enabled radio devices block the shutdown process. Possible values are as above.
Enables builtin radio devices upon system shutdown. May be used as a workaround to prevent other operating systems from missing disabled devices. Possible values are as above.
ThinkPads / Ubuntu only
Radio devices to enable when wireless radio switch is turned on.
Hint: this feature is only available for ThinkPads with a slide switch (not Fn+F5!) running Ubuntu.
ThinkPads only
Set ThinkPad battery charge thresholds for main battery (BAT0) and auxiliary/Ultrabay battery (BAT1). Values are given as a percentage of the full capacity.
Charging starts upon connecting AC power, but only if the remaining capacity is below the value of START_CHARGE_TRESH (lower threshold). Charging stops when reaching the STOP_CHARGE_TRESH (upper threshold) value. If, however when you connect the AC adapter, charge is above the lower threshold, then it will not charge.
The default configuration file provides sample settings designed to minimize battery wear – the battery is charged to 80% only. However these settings are disabled by default and must be enabled explicitly by the user (remove the leading '#'). Note that even the hardware defaults of 96 / 100% – effective without TLP – already prevent battery wear by blocking short charge cycles.
Hint: the charging process is not controlled by software, but by hardware. TLP just writes the thresholds to the hardware registers (via tp-smapi or tpacpi-bat).
Disable use of tpacpi-bat – and use tp-smapi instead – for setting the charge thresholds on Sandy Bridge models (X220, T420 et al.) .
Hint: do not use this option with Ivy Bridge models (X230, T430 et al.) where tpacpi-bat is mandatory because tp-smapi does not work.
For further questions concerning battery thresholds consult the TLP FAQ.
The radio device wizard provides the capability to enable or disable builtin radio devices triggered by certain events. In Ubuntu and Debian it is implemented in the (optional) package tlp-rdw.
Hint: the radio device wizard needs Network Manager as a prerequisite.
Upon a lan, wifi or wwan connect the stated radio devices are disabled:
Multiple devices are separated with blanks.
Upon a lan, wifi or wwan disconnect the stated radio devices are enabled.
After docking the stated radio devices are enabled/disabled.
After undocking the stated radio devices are enabled/disabled.
For support purposes TLP provides a trace mode. To enable it add the following line to the configuration file:
For reference see /etc/default/tlp as contained in the installation package.
© 2013, linrunner. Licensed under the CC BY-NC-SA.