tlp.conf 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. # ------------------------------------------------------------------------------
  2. # /etc/tlp.conf - TLP user configuration (version 1.4)
  3. # See full explanation: https://linrunner.de/tlp/settings
  4. #
  5. # Settings are read in the following order:
  6. #
  7. # 1. Intrinsic defaults
  8. # 2. /etc/tlp.d/*.conf - Drop-in customization snippets
  9. # 3. /etc/tlp.conf - User configuration (this file)
  10. #
  11. # Notes:
  12. # - In case of identical parameters, the last occurence has precedence
  13. # - This also means, parameters enabled here will override anything else
  14. # - However you may append values to a parameter already defined as intrinsic
  15. # default or in a previously read file: use PARAMETER+="add values"
  16. # - IMPORTANT: all parameters here are disabled; remove the leading '#' if you
  17. # like to enable a feature without default or have a value different from the
  18. # default
  19. # - Default *: intrinsic default that is effective when the parameter is missing
  20. # or disabled by a leading '#'; use PARAM="" to disable an intrinsic default
  21. # - Default <none>: do nothing or use kernel/hardware defaults
  22. # -
  23. # ------------------------------------------------------------------------------
  24. # tlp - Parameters for power saving
  25. # Set to 0 to disable, 1 to enable TLP.
  26. TLP_ENABLE=1
  27. # Operation mode when no power supply can be detected: AC, BAT.
  28. # Concerns some desktop and embedded hardware only.
  29. TLP_DEFAULT_MODE=AC
  30. # Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE
  31. # Note: use in conjunction with TLP_DEFAULT_MODE=BAT for BAT settings on AC.
  32. TLP_PERSISTENT_DEFAULT=0
  33. # Select a CPU frequency scaling governor.
  34. # Intel processor with intel_pstate driver:
  35. # performance, powersave(*).
  36. # Intel processor with intel_cpufreq driver (aka intel_pstate passive mode):
  37. # conservative, ondemand, userspace, powersave, performance, schedutil(*).
  38. # Intel and other processor brands with acpi-cpufreq driver:
  39. # conservative, ondemand(*), userspace, powersave, performance, schedutil(*).
  40. # Use tlp-stat -p to show the active driver and available governors.
  41. # Important:
  42. # Governors marked (*) above are power efficient for *almost all* workloads
  43. # and therefore kernel and most distributions have chosen them as defaults.
  44. # You should have done your research about advantages/disadvantages *before*
  45. # changing the governor.
  46. CPU_SCALING_GOVERNOR_ON_AC=performance
  47. CPU_SCALING_GOVERNOR_ON_BAT=powersave
  48. # Set the min/max frequency available for the scaling governor.
  49. # Possible values depend on your CPU. For available frequencies see
  50. # the output of tlp-stat -p.
  51. # Notes:
  52. # - Min/max frequencies must always be specified for both AC *and* BAT
  53. # - Not recommended for use with the intel_pstate scaling driver, use
  54. # CPU_MIN/MAX_PERF_ON_AC/BAT below instead
  55. # Default: <none>
  56. #CPU_SCALING_MIN_FREQ_ON_AC=0
  57. #CPU_SCALING_MAX_FREQ_ON_AC=0
  58. #CPU_SCALING_MIN_FREQ_ON_BAT=0
  59. #CPU_SCALING_MAX_FREQ_ON_BAT=0
  60. # Set Intel CPU energy/performance policies HWP.EPP and EPB:
  61. # performance, balance_performance, default, balance_power, power.
  62. # Values are given in order of increasing power saving.
  63. # Notes:
  64. # - HWP.EPP: requires kernel 4.10, intel_pstate scaling driver and Intel Core i
  65. # 6th gen. or newer CPU
  66. # - EPB: requires kernel 5.2 or module msr and x86_energy_perf_policy from
  67. # linux-tools, intel_pstate or intel_cpufreq scaling driver and Intel Core i
  68. # 2nd gen. or newer CPU
  69. # - When HWP.EPP is available, EPB is not set
  70. # Default: balance_performance (AC), balance_power (BAT)
  71. #CPU_ENERGY_PERF_POLICY_ON_AC=balance_performance
  72. #CPU_ENERGY_PERF_POLICY_ON_BAT=balance_power
  73. # Set Intel CPU P-state performance: 0..100 (%).
  74. # Limit the max/min P-state to control the power dissipation of the CPU.
  75. # Values are stated as a percentage of the available performance.
  76. # Requires intel_pstate or intel_cpufreq driver and Intel Core i 2nd gen. or
  77. # newer CPU.
  78. # Default: <none>
  79. CPU_MAX_PERF_ON_AC=100
  80. CPU_MAX_PERF_ON_BAT=90
  81. CPU_MIN_PERF_ON_AC=0
  82. CPU_MIN_PERF_ON_BAT=0
  83. # Set the CPU "turbo boost" (Intel) or "turbo core" (AMD) feature:
  84. # 0=disable, 1=allow.
  85. # Note: a value of 1 does *not* activate boosting, it just allows it.
  86. CPU_BOOST_ON_AC=1
  87. CPU_BOOST_ON_BAT=0
  88. # Set the Intel CPU HWP dynamic boost feature:
  89. # 0=disable, 1=enable.
  90. # Requires intel_pstate scaling driver in 'active' mode and Intel Core i
  91. # 6th gen. or newer CPU.
  92. CPU_HWP_DYN_BOOST_ON_AC=1
  93. CPU_HWP_DYN_BOOST_ON_BAT=0
  94. # Minimize number of used CPU cores/hyper-threads under light load conditions:
  95. # 0=disable, 1=enable.
  96. SCHED_POWERSAVE_ON_AC=0
  97. SCHED_POWERSAVE_ON_BAT=1
  98. # Kernel NMI Watchdog:
  99. # 0=disable (default, saves power), 1=enable (for kernel debugging only).
  100. # Default: 0
  101. #NMI_WATCHDOG=0
  102. # Select platform profile:
  103. # performance, balanced, low-power.
  104. # Controls system operating characteristics around power/performance levels,
  105. # thermal and fan speed. Values are given in order of increasing power saving.
  106. # Note: check the output of tlp-stat -p to determine availability on your
  107. # hardware and additional profiles such as: balanced-performance, quiet, cool.
  108. PLATFORM_PROFILE_ON_AC=balanced_performance
  109. PLATFORM_PROFILE_ON_BAT=balance_power
  110. # Hard disk spin down timeout:
  111. # 0: spin down disabled
  112. # 1..240: timeouts from 5s to 20min (in units of 5s)
  113. # 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
  114. # See 'man hdparm' for details.
  115. # Separate values for multiple disks with spaces. Use the special value 'keep'
  116. # to keep the hardware default for the particular disk.
  117. DISK_SPINDOWN_TIMEOUT_ON_AC="keep"
  118. DISK_SPINDOWN_TIMEOUT_ON_BAT="keep"
  119. # Wi-Fi power saving mode: on=enable, off=disable.
  120. WIFI_PWR_ON_AC=off
  121. WIFI_PWR_ON_BAT=off
  122. # Disable Wake-on-LAN: Y/N.
  123. # Default: Y
  124. #WOL_DISABLE=Y
  125. # Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
  126. # A value of 0 disables, >= 1 enables power saving.
  127. # Note: 1 is recommended for Linux desktop environments with PulseAudio,
  128. # systems without PulseAudio may require 10.
  129. SOUND_POWER_SAVE_ON_AC=0
  130. SOUND_POWER_SAVE_ON_BAT=10
  131. # Disable controller too (HDA only): Y/N.
  132. # Note: effective only when SOUND_POWER_SAVE_ON_AC/BAT is activated.
  133. # Default: Y
  134. #SOUND_POWER_SAVE_CONTROLLER=Y
  135. # PCIe Active State Power Management (ASPM):
  136. # default(*), performance, powersave, powersupersave.
  137. # (*) keeps BIOS ASPM defaults (recommended)
  138. # Default: <none>
  139. # Set to 0 to disable, 1 to enable USB autosuspend feature.
  140. USB_AUTOSUSPEND=1
  141. # Exclude audio devices from USB autosuspend:
  142. # 0=do not exclude, 1=exclude.
  143. USB_EXCLUDE_AUDIO=1
  144. # Exclude bluetooth devices from USB autosuspend:
  145. # 0=do not exclude, 1=exclude.
  146. # Default: 0
  147. #USB_EXCLUDE_BTUSB=0
  148. # Exclude phone devices from USB autosuspend:
  149. # 0=do not exclude, 1=exclude (enable charging).
  150. USB_EXCLUDE_PHONE=0
  151. # Exclude printers from USB autosuspend:
  152. # 0=do not exclude, 1=exclude.
  153. #USB_EXCLUDE_PRINTER=1
  154. # Exclude WWAN devices from USB autosuspend:
  155. # 0=do not exclude, 1=exclude.
  156. #USB_EXCLUDE_WWAN=0
  157. # Radio devices to disable on startup: bluetooth, nfc, wifi, wwan.
  158. # Separate multiple devices with spaces.
  159. DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"
  160. # Battery Care -- Charge thresholds
  161. # Charging starts when the charge level is below the START_CHARGE_THRESH value
  162. # when the charger is connected. It stops when the STOP_CHARGE_THRESH value is
  163. # reached.
  164. # Required hardware: Lenovo ThinkPads and select other laptop brands are driven
  165. # via specific plugins, the actual support status is shown by tlp-stat -b.
  166. # For more explanations and vendor specific details refer to
  167. # https://linrunner.de/tlp/settings/battery.html
  168. # Notes:
  169. # - ThinkPads may require external kernel module(s), refer to the output of
  170. # tlp-stat -b
  171. # - Vendor specific parameter value ranges are shown by tlp-stat -b
  172. # - If your hardware supports a start *and* a stop threshold, you must
  173. # specify both, otherwise TLP will refuse to apply the single threshold
  174. # - If your hardware supports only a stop threshold, set the start value to 0
  175. START_CHARGE_THRESH_BAT0=50
  176. STOP_CHARGE_THRESH_BAT0=1
  177. # Restore charge thresholds when AC is unplugged: 0=disable, 1=enable.
  178. RESTORE_THRESHOLDS_ON_BAT="1"
  179. # Control battery care drivers: 0=disable, 1=enable.
  180. NATACPI_ENABLE=1
  181. TPACPI_ENABLE=1
  182. TPSMAPI_ENABLE=1
  183. # ------------------------------------------------------------------------------
  184. # tlp-rdw - Parameters for the radio device wizard
  185. # Possible devices: bluetooth, wifi, wwan.
  186. # Separate multiple radio devices with spaces.
  187. # Default: <none> (for all parameters below)
  188. # Radio devices to disable on connect.
  189. #DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
  190. #DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
  191. #DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"
  192. # Radio devices to enable on disconnect.
  193. #DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
  194. #DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
  195. #DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""
  196. # Radio devices to enable/disable when docked.
  197. #DEVICES_TO_ENABLE_ON_DOCK=""
  198. #DEVICES_TO_DISABLE_ON_DOCK=""
  199. # Radio devices to enable/disable when undocked.
  200. #DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
  201. #DEVICES_TO_DISABLE_ON_UNDOCK=""