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