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. Please refer to the TLP FAQ.
General hints:
Set to 0 to disable TLP (Reboot needed).
Defines TLP's default operation mode (AC / BAT) in case a power source cannot be detected. Concerns some desktop and embedded hardware only.
Select TLP's operation mode:
Hint: TLP_DEFAULT_MODE=BAT, TLP_PERSISTENT_DEFAULT=1 forces BAT settings while AC powered.
Values > 0 activate kernel laptop mode. Do not change this setting.
Timeout (in seconds) for writing unsaved data in file systems buffers to disk.
Selects the CPU scaling governor for automatic frequency scaling. Configuration depends on the active driver:
For Intel Core i 2nd gen. ("Sandy Bridge") or newer hardware. Supported governors are:
For older hardware. Supported governors are:
Hints:
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 -p. A value of 0 means to use processor defaults.
Hints:
Set energy performance hints (HWP) for the intel_pstate scaling driver. Possible values are (in order of increasing power saving):
Hints:
Define the min/max P-state for Intel Core processors. Values are stated as a percentage (0..100%) of the total available processor performance.
Hints:
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.
Define the general performance versus energy savings policy for the CPU. Possible values are performance, normal and powersave.
Important: this setting requires the kernel module msr and the tool x86_energy_perf_policy matching your kernel version.
Activate kernel NMI watchdog timer (0 = disabled/save power, 1=enabled). A value of 1 is relevant for kernel debugging and the watchdog daemon.
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.
Note: TLP's default settings work well with SSDs, there is no immediate need to tune them.
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.
Some selected values are:
Values for multiple disks are separated with blanks.
Timeout value until the spindle motor stops when the disk is idle. Valid settings:
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:
Values for multiple disks are separated with blanks.
Sets the power management mode for the SATA links connecting disk and optical drives. Possible values:
Hint: to disable this setting completely, insert a '#' in the first column.
Exclude listed SATA host devices from link power management. Look into the output of tlp-stat -d, section "SATA Aggressive Link Power Management", to determine valid host identifiers (format: "hostX"). This is intended as a workaround for SATA host devices not bearing power management.
Separate multiple hosts with spaces.
Sets PCIe ASPM power saving mode. Available with kernel 2.6.35 and above. Possible values:
Controls the graphics card's clock. Supported by the radeon driver only, not fglrx. Possible values:
Hint: this setting makes the display flicker briefly upon changing the power source.
Since kernel 3.11 the new radeon dynamic power management (DPM) is available. Supported by the radeon driver only, not fglrx.
Hint: needs the kernel boot option radeon.dpm=1.
Controls the power management method. Possible values:
Controls the performance level. Possible values:
Sets wifi power saving mode. Adapter support depends on kernel and driver. Possible values:
Note: deprecated config values 1=off/5=on are supported for backwards compatibility.
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) devices. Possible values:
Hint: to disable this setting completely, insert a '#' in the first column.
Exclude listed PCI(e) device addresses from runtime power management. Use lspci to lookup the addresses (first column).
Exclude PCI(e) devices assigned to listed drivers from runtime power management. Use tlp-stat -e to lookup the drivers (in parentheses at end of line). Separate multiple drivers with spaces.
The default (even when commented via '#') is "amdgpu nouveau nvidia radeon" to prevent accidential power on of hybrid graphics' discrete part. Use an empty list ("") to disable the feature completely (not recommended).
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 (see USB_DRIVER_BLACKLIST below). Possible values:
Note: TLP activates USB autosuspend independent of the power source, i.e. on battery and AC.
Exclude USB device IDs from autosuspend mode. Useful for devices having difficulties in waking up from autosuspend. Use tlp-stat -u to determine IDs. Multiple IDs are separated with blanks.
Hint: all input devices (driver "usbhid") get excluded by default. It's therefore unnecessary to put them on the USB_BLACKLIST. To circumvent the default for certain devices enter the IDs into USB_WHITELIST.
Note: because of conflicts with udevd v221 (and higher) the parameter USB_DRIVER_BLACKLIST had to be removed with TLP version 0.8. Enter the device IDs to be excluded into USB_BLACKLIST instead.
Exclude bluetooth devices from autosuspend mode:
Note: this feature is intended to solve stability issues with bluetooth connections.
Exclude smartphones from autosuspend mode to enable charging:
Exclude builtin WWAN devices from autosuspend mode:
Note: this feature is implemented by an internal blacklist currently matching cards from Qualcomm, Ericsson and Sierra. To re-enable autosuspend mode for WWAN, enter the ID into USB_WHITELIST.
Re-enable autosuspend mode for USB device IDs already excluded by any of the lists above (whitelist always wins). Use tlp-stat -u 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:
Hints:
Disables builtin radio devices upon system start:
Multiple devices are separated with blanks.
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.
Note: the following settings apply only at the moment where the power source actually changes (from AC to battery or vice versa).
Enables builtin radio devices when AC power is plugged in. Possible values are as above.
Disables builtin radio devices when changing to battery power regardless of their connection state. Possible values are as above.
Disables builtin radio devices that are not connected when changing to battery power. Possible values are as above.
Hint: do not use both DEVICES_TO_DISABLE_ON_BAT and DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE for the same radio device because DEVICES_TO_DISABLE_ON_BAT always has precendence.
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. A value of 0 is translated to the hardware defaults 96 / 100%.
Charging starts upon connecting AC power, but only if the remaining capacity is below the value of START_CHARGE_TRESH (start threshold). Charging stops when reaching the STOP_CHARGE_TRESH (stop threshold) value. If, however when you connect the AC adapter, charge is above the start threshold, then it will not charge.
Note: the charge threshold settings are disabled by default and must be enabled explicitly by removing the leading '#'.
ThinkPad T420(s)/T520/W520/X220 (and all newer models): check erratic battery behavior (FAQ).
For further questions concerning charge thresholds please visit the TLP FAQ.
Restore configured charge thresholds when AC is unplugged:
Hint: after a command like tlp setcharge/discharge/recalibrate the charge thresholds will stay at the hardware defaults 96 / 100% until the next reboot. Use this feature to restore them prematurely.
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.
© 2016, linrunner. Licensed under the CC BY-NC-SA.