Operation and Profiles
TLP_ENABLE
TLP_ENABLE=1
Set to 0 to disable TLP (reboot needed).
Default when unconfigured: 1
TLP_DISABLE_DEFAULTS
Version 1.9 and newer
TLP_DISABLE_DEFAULTS=0
Set to 1 to deactivate all intrinsic defaults of TLP. This means that TLP only applies settings that have been explicitly activated i.e. parameters without a leading ‘#’.
Notes:
Helpful if one wants to use only selected features of TLP
After activation, use tlp-stat -c to display your effective configuration
TLP_WARN_LEVEL
TLP_WARN_LEVEL=3
Controls how warnings about invalid settings are issued:
0 - disabled
1 - background tasks (boot, resume, change of power source) report to the syslog/journal
2 - shell commands report to the terminal (stderr)
3 - combination of 1 and 2
Default when unconfigured: 3
TLP_MSG_COLORS
Version 1.7 and newer
TLP_MSG_COLORS="91 93 1 92"
Colorize error, warning, notice and success messages. Colors are specified with ANSI codes:
1=bold black, 90=grey, 91=red, 92=green, 93=yellow, 94=blue, 95=magenta, 96=cyan, 97=white.
Notes:
Other colors are possible, refer to: ANSI escape code
Colors must be specified in the order “<error> <warning> <notice> <success>”
By default, errors are shown in red, warnings in yellow, notices in bold and success in green
Disable the feature completely by using
TLP_MSG_COLORS=""
Default when unconfigured: “91 93 1 92”
TLP_AUTO_SWITCH
Version 1.9 and newer
TLP_AUTO_SWITCH=2
Control automatic switching of the TLP profile when connecting or removing the charger [1], when booting the system or when executing tlp start:
0 - disabled: never switch, use TLP_DEFAULT_MODE if configured
- 1 - auto: always switch, select performance on AC and balanced on battery power [2]
2 - smart: do not switch if the following profiles were active previously:
power-saver or balanced on AC
power-saver or performance on battery power
Default when unconfigured: 2
TLP_PROFILE_AC/BAT
Version 1.10 and newer
TLP_PROFILE_AC=BAL
TLP_PROFILE_BAT=SAV
TLP profiles to use for AC and battery power when automatic switching is enabled (TLP_AUTO_SWITCH=1 or 2):
PRF - performance
BAL - balanced
SAV - power-saver
Default when unconfigured: PRF (AC power), BAL (battery power)
TLP_PROFILE_DEFAULT
Version 1.10 and newer
TLP_PROFILE_DEFAULT=PRF
Version 1.9.1 and 1.9
TLP_DEFAULT_MODE=PRF
Defines the TLP profile to use when automatic switching is disabled (TLP_AUTO_SWITCH=0) or no power source is detected:
PRF - performance
BAL - balanced
SAV - power-saver
Note: Legacy values AC and BAT continue to work. They are mapped respectively.
Note
To disable automatic switching and default to the balanced profile, configure:
TLP_AUTO_SWITCH=0
TLP_PROFILE_DEFAULT=BAL
Version 1.8 and older
TLP_DEFAULT_MODE=BAT
Defines TLP’s default operation mode (AC or BAT) when a power source cannot be detected.
TLP_PERSISTENT_DEFAULT
This parameter is deprecated since version 1.10, do not use anymore. Instead use TLP_AUTO_SWITCH=0 together with TLP_PROFILE_DEFAULT (or TLP_DEFAULT_MODE) to lock TLP to a fixed profile.
TLP_PERSISTENT_DEFAULT=0
Lock TLP profile:
0 - disabled: profile depends on automatic switching (see TLP_AUTO_SWITCH above)
1 - enabled: profile is locked to TLP_PROFILE_DEFAULT (or TLP_DEFAULT_MODE); TLP_AUTO_SWITCH is ignored
Default when unconfigured: 0
TLP_PS_IGNORE
TLP_PS_IGNORE="BAT"
Power supply class(es) to ignore when determining operation mode:
AC
BAT
USB
Enter multiple classes separated with spaces.
Note
Use as a workaround for laptops where operation mode AC or BAT is incorrectly detected.
See also
Settings: Introduction
FAQ: Operation