Update tlp's configuration file
[~bandali/configs] / other / tlp / etc / default / tlp
1 # ------------------------------------------------------------------------------
2 # tlp - Parameters for power saving
3 # See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html
4
5 # Hint: some features are disabled by default, remove the leading # to enable
6 # them.
7
8 # Set to 0 to disable, 1 to enable TLP.
9 TLP_ENABLE=1
10
11 # Operation mode when no power supply can be detected: AC, BAT
12 # Concerns some desktop and embedded hardware only.
13 TLP_DEFAULT_MODE=AC
14
15 # Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE
16 # Hint: use in conjunction with TLP_DEFAULT_MODE=BAT for BAT settings on AC
17 TLP_PERSISTENT_DEFAULT=0
18
19 # Seconds laptop mode has to wait after the disk goes idle before doing a sync.
20 # Non-zero value enables, zero disables laptop mode.
21 DISK_IDLE_SECS_ON_AC=0
22 DISK_IDLE_SECS_ON_BAT=2
23
24 # Dirty page values (timeouts in secs).
25 MAX_LOST_WORK_SECS_ON_AC=15
26 MAX_LOST_WORK_SECS_ON_BAT=60
27
28 # Hint: CPU parameters below are disabled by default, remove the leading #
29 # to enable them, otherwise kernel default values are used.
30
31 # Select a CPU frequency scaling governor.
32 # Intel Core i processor with intel_pstate driver:
33 # powersave(*), performance
34 # Older hardware with acpi-cpufreq driver:
35 # ondemand(*), powersave, performance, conservative
36 # (*) is recommended.
37 # Hint: use tlp-stat -p to show the active driver and available governors.
38 # Important:
39 # You *must* disable your distribution's governor settings or conflicts will
40 # occur. ondemand is sufficient for *almost all* workloads, you should know
41 # what you're doing!
42 CPU_SCALING_GOVERNOR_ON_AC=performance
43 CPU_SCALING_GOVERNOR_ON_BAT=powersave
44
45 # Set the min/max frequency available for the scaling governor.
46 # Possible values strongly depend on your CPU. For available frequencies see
47 # the output of tlp-stat -p.
48 CPU_SCALING_MIN_FREQ_ON_AC=800000
49 CPU_SCALING_MAX_FREQ_ON_AC=3300000
50 CPU_SCALING_MIN_FREQ_ON_BAT=800000
51 CPU_SCALING_MAX_FREQ_ON_BAT=3300000
52
53 # Set energy performance hints (HWP) for Intel P-state governor:
54 # default, performance, balance_performance, balance_power, power
55 # Values are given in order of increasing power saving.
56 # Note: Intel Skylake or newer CPU and Kernel >= 4.10 required.
57 CPU_HWP_ON_AC=balance_performance
58 CPU_HWP_ON_BAT=balance_power
59
60 # Set Intel P-state performance: 0..100 (%)
61 # Limit the max/min P-state to control the power dissipation of the CPU.
62 # Values are stated as a percentage of the available performance.
63 # Requires an Intel Core i processor with intel_pstate driver.
64 CPU_MIN_PERF_ON_AC=0
65 CPU_MAX_PERF_ON_AC=100
66 CPU_MIN_PERF_ON_BAT=0
67 CPU_MAX_PERF_ON_BAT=100
68
69 # Set the CPU "turbo boost" feature: 0=disable, 1=allow
70 # Requires an Intel Core i processor.
71 # Important:
72 # - This may conflict with your distribution's governor settings
73 # - A value of 1 does *not* activate boosting, it just allows it
74 CPU_BOOST_ON_AC=1
75 CPU_BOOST_ON_BAT=1
76
77 # Minimize number of used CPU cores/hyper-threads under light load conditions
78 SCHED_POWERSAVE_ON_AC=0
79 SCHED_POWERSAVE_ON_BAT=1
80
81 # Kernel NMI Watchdog:
82 # 0=disable (default, saves power), 1=enable (for kernel debugging only)
83 NMI_WATCHDOG=0
84
85 # Change CPU voltages aka "undervolting" - Kernel with PHC patch required
86 # Frequency voltage pairs are written to:
87 # /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
88 # CAUTION: only use this, if you thoroughly understand what you are doing!
89 #PHC_CONTROLS="F:V F:V F:V F:V"
90
91 # Set CPU performance versus energy savings policy:
92 # performance, normal, powersave
93 # Requires kernel module msr and x86_energy_perf_policy from linux-tools
94 ENERGY_PERF_POLICY_ON_AC=performance
95 ENERGY_PERF_POLICY_ON_BAT=powersave
96
97 # Hard disk devices; separate multiple devices with spaces (default: sda).
98 # Devices can be specified by disk ID also (lookup with: tlp diskid).
99 DISK_DEVICES="sda"
100
101 # Hard disk advanced power management level: 1..254, 255 (max saving, min, off)
102 # Levels 1..127 may spin down the disk; 255 allowable on most drives.
103 # Separate values for multiple disks with spaces. Use the special value 'keep'
104 # to keep the hardware default for the particular disk.
105 DISK_APM_LEVEL_ON_AC="254"
106 DISK_APM_LEVEL_ON_BAT="128"
107
108 # Hard disk spin down timeout:
109 # 0: spin down disabled
110 # 1..240: timeouts from 5s to 20min (in units of 5s)
111 # 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
112 # See 'man hdparm' for details.
113 # Separate values for multiple disks with spaces. Use the special value 'keep'
114 # to keep the hardware default for the particular disk.
115 #DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
116 #DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"
117
118 # Select IO scheduler for the disk devices: cfq, deadline, noop (Default: cfq);
119 # Separate values for multiple disks with spaces. Use the special value 'keep'
120 # to keep the kernel default scheduler for the particular disk.
121 #DISK_IOSCHED="cfq cfq"
122
123 # SATA aggressive link power management (ALPM):
124 # min_power, medium_power, max_performance
125 #SATA_LINKPWR_ON_AC=max_performance
126 #SATA_LINKPWR_ON_BAT=min_power
127
128 # Exclude SATA host devices from link power management.
129 # Separate multiple hosts with spaces.
130 #SATA_LINKPWR_BLACKLIST="host1"
131
132 # Runtime Power Management for AHCI controllers and disks:
133 # on=disable, auto=enable
134 # EXPERIMENTAL ** WARNING: auto will most likely cause system lockups/data loss
135 #AHCI_RUNTIME_PM_ON_AC=on
136 #AHCI_RUNTIME_PM_ON_BAT=on
137
138 # Seconds of inactivity before disk is suspended
139 AHCI_RUNTIME_PM_TIMEOUT=15
140
141 # PCI Express Active State Power Management (PCIe ASPM):
142 # default, performance, powersave
143 PCIE_ASPM_ON_AC=performance
144 PCIE_ASPM_ON_BAT=powersave
145
146 # Radeon graphics clock speed (profile method): low, mid, high, auto, default;
147 # auto = mid on BAT, high on AC; default = use hardware defaults.
148 # (Kernel >= 2.6.35 only, open-source radeon driver explicitly)
149 #RADEON_POWER_PROFILE_ON_AC=high
150 #RADEON_POWER_PROFILE_ON_BAT=low
151
152 # Radeon dynamic power management method (DPM): battery, performance
153 # (Kernel >= 3.11 only, requires boot option radeon.dpm=1)
154 #RADEON_DPM_STATE_ON_AC=performance
155 #RADEON_DPM_STATE_ON_BAT=battery
156
157 # Radeon DPM performance level: auto, low, high; auto is recommended.
158 #RADEON_DPM_PERF_LEVEL_ON_AC=auto
159 #RADEON_DPM_PERF_LEVEL_ON_BAT=auto
160
161 # WiFi power saving mode: on=enable, off=disable; not supported by all adapters.
162 WIFI_PWR_ON_AC=off
163 WIFI_PWR_ON_BAT=on
164
165 # Disable wake on LAN: Y/N
166 WOL_DISABLE=Y
167
168 # Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
169 # A value of 0 disables, >=1 enables power saving.
170 SOUND_POWER_SAVE_ON_AC=0
171 SOUND_POWER_SAVE_ON_BAT=1
172
173 # Disable controller too (HDA only): Y/N
174 SOUND_POWER_SAVE_CONTROLLER=N
175
176 # Power off optical drive in UltraBay/MediaBay: 0=disable, 1=enable.
177 # Drive can be powered on again by releasing (and reinserting) the eject lever
178 # or by pressing the disc eject button on newer models.
179 # Note: an UltraBay/MediaBay hard disk is never powered off.
180 #BAY_POWEROFF_ON_AC=0
181 #BAY_POWEROFF_ON_BAT=0
182 # Optical drive device to power off (default sr0).
183 #BAY_DEVICE="sr0"
184
185 # Runtime Power Management for PCI(e) bus devices: on=disable, auto=enable
186 RUNTIME_PM_ON_AC=on
187 RUNTIME_PM_ON_BAT=auto
188
189 # Exclude PCI(e) device adresses the following list from Runtime PM
190 # (separate with spaces). Use lspci to get the adresses (1st column).
191 #RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6"
192
193 # Exclude PCI(e) devices assigned to the listed drivers from Runtime PM.
194 # Default when unconfigured is "amdgpu nouveau nvidia radeon" which
195 # prevents accidential power-on of dGPU in hybrid graphics setups.
196 # Use "" to disable the feature completely.
197 # Separate multiple drivers with spaces.
198 #RUNTIME_PM_DRIVER_BLACKLIST="amdgpu nouveau nvidia radeon"
199
200 # Set to 0 to disable, 1 to enable USB autosuspend feature.
201 USB_AUTOSUSPEND=1
202
203 # Exclude listed devices from USB autosuspend (separate with spaces).
204 # Use lsusb to get the ids.
205 # Note: input devices (usbhid) are excluded automatically
206 #USB_BLACKLIST="1111:2222 3333:4444"
207
208 # Bluetooth devices are excluded from USB autosuspend:
209 # 0=do not exclude, 1=exclude
210 USB_BLACKLIST_BTUSB=0
211
212 # Phone devices are excluded from USB autosuspend:
213 # 0=do not exclude, 1=exclude (enable charging)
214 USB_BLACKLIST_PHONE=0
215
216 # WWAN devices are excluded from USB autosuspend:
217 # 0=do not exclude, 1=exclude
218 USB_BLACKLIST_WWAN=1
219
220 # Include listed devices into USB autosuspend even if already excluded
221 # by the blacklists above (separate with spaces).
222 # Use lsusb to get the ids.
223 #USB_WHITELIST="1111:2222 3333:4444"
224
225 # Set to 1 to disable autosuspend before shutdown, 0 to do nothing
226 # (workaround for USB devices that cause shutdown problems).
227 #USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1
228
229 # Restore radio device state (Bluetooth, WiFi, WWAN) from previous shutdown
230 # on system startup: 0=disable, 1=enable.
231 # Hint: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
232 # are ignored when this is enabled!
233 RESTORE_DEVICE_STATE_ON_STARTUP=0
234
235 # Radio devices to disable on startup: bluetooth, wifi, wwan.
236 # Separate multiple devices with spaces.
237 #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"
238
239 # Radio devices to enable on startup: bluetooth, wifi, wwan.
240 # Separate multiple devices with spaces.
241 #DEVICES_TO_ENABLE_ON_STARTUP="wifi"
242
243 # Radio devices to disable on shutdown: bluetooth, wifi, wwan
244 # (workaround for devices that are blocking shutdown).
245 #DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"
246
247 # Radio devices to enable on shutdown: bluetooth, wifi, wwan
248 # (to prevent other operating systems from missing radios).
249 #DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan"
250
251 # Radio devices to enable on AC: bluetooth, wifi, wwan
252 #DEVICES_TO_ENABLE_ON_AC="bluetooth wifi wwan"
253
254 # Radio devices to disable on battery: bluetooth, wifi, wwan
255 #DEVICES_TO_DISABLE_ON_BAT="bluetooth wifi wwan"
256
257 # Radio devices to disable on battery when not in use (not connected):
258 # bluetooth, wifi, wwan
259 #DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi wwan"
260
261 # Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module
262 # required). Charging starts when the remaining capacity falls below the
263 # START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH value.
264 # Main / Internal battery (values in %)
265 #START_CHARGE_THRESH_BAT0=75
266 #STOP_CHARGE_THRESH_BAT0=80
267 # Ultrabay / Slice / Replaceable battery (values in %)
268 #START_CHARGE_THRESH_BAT1=75
269 #STOP_CHARGE_THRESH_BAT1=80
270
271 # Restore charge thresholds when AC is unplugged: 0=disable, 1=enable
272 #RESTORE_THRESHOLDS_ON_BAT=1
273
274 # ------------------------------------------------------------------------------
275 # tlp-rdw - Parameters for the radio device wizard
276 # Possible devices: bluetooth, wifi, wwan
277
278 # Hints:
279 # - Parameters are disabled by default, remove the leading # to enable them.
280 # - Separate multiple radio devices with spaces.
281
282 # Radio devices to disable on connect.
283 #DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
284 #DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
285 #DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"
286
287 # Radio devices to enable on disconnect.
288 #DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
289 #DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
290 #DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""
291
292 # Radio devices to enable/disable when docked.
293 #DEVICES_TO_ENABLE_ON_DOCK=""
294 #DEVICES_TO_DISABLE_ON_DOCK=""
295
296 # Radio devices to enable/disable when undocked.
297 #DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
298 #DEVICES_TO_DISABLE_ON_UNDOCK=""