Advertisement
Guest User

/etc/default/tlp for arch

a guest
Apr 19th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.28 KB | None | 0 0
  1. # ------------------------------------------------------------------------------
  2. # tlp - Parameters for power saving
  3. # See full explanation: https://linrunner.de/en/tlp/docs/tlp-configuration.html
  4.  
  5. # Notes:
  6. # - Some parameters are disabled, remove the leading '#' to enable # them;
  7. # shown values are suggestions not defaults
  8. # - Default *: intrinsic default that is effective when the parameter is missing
  9. # or disabled by a leading '#'; use PARAM="" to disable intrinsic defaults for
  10. # parameters with text string values
  11. # - Default <none>: do nothing or use kernel/hardware defaults
  12.  
  13. # Set to 0 to disable, 1 to enable TLP.
  14. # Default: 0
  15. TLP_ENABLE=1
  16.  
  17. # Operation mode when no power supply can be detected: AC, BAT.
  18. # Concerns some desktop and embedded hardware only.
  19. # Default: <none>
  20. TLP_DEFAULT_MODE=AC
  21.  
  22. # Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE
  23. # Hint: use in conjunction with TLP_DEFAULT_MODE=BAT for BAT settings on AC.
  24. # Default: 0
  25. TLP_PERSISTENT_DEFAULT=0
  26.  
  27. # Seconds laptop mode has to wait after the disk goes idle before doing a sync.
  28. # Non-zero value enables, zero disables laptop mode.
  29. # Default: 0 (AC), 2 (BAT)
  30. DISK_IDLE_SECS_ON_AC=0
  31. DISK_IDLE_SECS_ON_BAT=2
  32.  
  33. # Dirty page values (timeouts in secs).
  34. # Default: 15 (AC + BAT)
  35. MAX_LOST_WORK_SECS_ON_AC=15
  36. MAX_LOST_WORK_SECS_ON_BAT=60
  37.  
  38. # Note: CPU parameters below are disabled by default, remove the leading #
  39. # to enable them, otherwise kernel defaults will be used.
  40.  
  41. # Select a CPU frequency scaling governor.
  42. # Intel Core i processor with intel_pstate driver:
  43. # powersave(*), performance.
  44. # Older hardware with acpi-cpufreq driver:
  45. # ondemand(*), powersave, performance, conservative, schedutil.
  46. # (*) is recommended.
  47. # Use tlp-stat -p to show the active driver and available governors.
  48. # Important:
  49. # powersave for intel_pstate and ondemand for acpi-cpufreq are power
  50. # efficient for *almost all* workloads and therefore kernel and most
  51. # distributions have chosen them as defaults. If you still want to change,
  52. # you should know what you're doing! You *must* disable your distribution's
  53. # governor settings or conflicts will occur.
  54. # Default: <none>
  55. #CPU_SCALING_GOVERNOR_ON_AC=powersave
  56. #CPU_SCALING_GOVERNOR_ON_BAT=powersave
  57.  
  58. # Set the min/max frequency available for the scaling governor.
  59. # Possible values depend on your CPU. For available frequencies see
  60. # the output of tlp-stat -p.
  61. # Default: <none>
  62. #CPU_SCALING_MIN_FREQ_ON_AC=0
  63. #CPU_SCALING_MAX_FREQ_ON_AC=0
  64. #CPU_SCALING_MIN_FREQ_ON_BAT=0
  65. #CPU_SCALING_MAX_FREQ_ON_BAT=0
  66.  
  67. # Set energy performance hints (HWP) for Intel P-state governor:
  68. # performance, balance_performance, default, balance_power, power
  69. # Values are given in order of increasing power saving.
  70. # Note: Intel Skylake or newer CPU and Kernel >= 4.10 required.
  71. # Default: <none>
  72. CPU_HWP_ON_AC=balance_performance
  73. CPU_HWP_ON_BAT=balance_power
  74.  
  75. # Set Intel P-state performance: 0..100 (%).
  76. # Limit the max/min P-state to control the power dissipation of the CPU.
  77. # Values are stated as a percentage of the available performance.
  78. # Requires an Intel Core i processor with intel_pstate driver.
  79. # Default: <none>
  80. #CPU_MIN_PERF_ON_AC=0
  81. #CPU_MAX_PERF_ON_AC=100
  82. #CPU_MIN_PERF_ON_BAT=0
  83. #CPU_MAX_PERF_ON_BAT=30
  84.  
  85. # Set the CPU "turbo boost" feature: 0=disable, 1=allow
  86. # Requires an Intel Core i processor.
  87. # Important:
  88. # - This may conflict with your distribution's governor settings
  89. # - A value of 1 does *not* activate boosting, it just allows it
  90. # Default: <none>
  91. #CPU_BOOST_ON_AC=1
  92. #CPU_BOOST_ON_BAT=0
  93.  
  94. # Minimize number of used CPU cores/hyper-threads under light load conditions:
  95. # 0=disable, 1=enable.
  96. # Default: <none>
  97. SCHED_POWERSAVE_ON_AC=0
  98. SCHED_POWERSAVE_ON_BAT=1
  99.  
  100. # Kernel NMI Watchdog:
  101. # 0=disable (default, saves power), 1=enable (for kernel debugging only).
  102. # Default: <none>
  103. NMI_WATCHDOG=0
  104.  
  105. # Change CPU voltages aka "undervolting" - Kernel with PHC patch required.
  106. # Frequency voltage pairs are written to:
  107. # /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
  108. # CAUTION: only use this, if you thoroughly understand what you are doing!
  109. # Default: <none>.
  110. #PHC_CONTROLS="F:V F:V F:V F:V"
  111.  
  112. # Set CPU performance versus energy savings policy:
  113. # performance, balance-performance, default, balance-power, power.
  114. # Values are given in order of increasing power saving.
  115. # Requires kernel module msr and x86_energy_perf_policy from linux-tools.
  116. # Default: <none>
  117. ENERGY_PERF_POLICY_ON_AC=performance
  118. ENERGY_PERF_POLICY_ON_BAT=power
  119.  
  120. # Disk devices; separate multiple devices with spaces.
  121. # Devices can be specified by disk ID also (lookup with: tlp diskid).
  122. # Note: DISK parameters below are effective only when this option is configured.
  123. # Default: "nvme0n1 sda"
  124. DISK_DEVICES="nvme0n1 sda"
  125.  
  126. # Disk advanced power management level: 1..254, 255 (max saving, min, off).
  127. # Levels 1..127 may spin down the disk; 255 allowable on most drives.
  128. # Separate values for multiple disks with spaces. Use the special value 'keep'
  129. # to keep the hardware default for the particular disk.
  130. # Default: <none>
  131. DISK_APM_LEVEL_ON_AC="254 254"
  132. DISK_APM_LEVEL_ON_BAT="128 128"
  133.  
  134. # Hard disk spin down timeout:
  135. # 0: spin down disabled
  136. # 1..240: timeouts from 5s to 20min (in units of 5s)
  137. # 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
  138. # See 'man hdparm' for details.
  139. # Separate values for multiple disks with spaces. Use the special value 'keep'
  140. # to keep the hardware default for the particular disk.
  141. # Default: <none>
  142. #DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
  143. #DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"
  144.  
  145. # Select I/O scheduler for the disk devices.
  146. # Multi queue (blk-mq) schedulers:
  147. # mq-deadline(*), none, kyber, bfq
  148. # Single queue schedulers:
  149. # deadline(*), cfq, bfq, noop
  150. # (*) recommended.
  151. # Separate values for multiple disks with spaces. Use the special value 'keep'
  152. # to keep the kernel default scheduler for the particular disk.
  153. # Notes:
  154. # - Multi queue (blk-mq) may need kernel boot option 'scsi_mod.use_blk_mq=1'
  155. # and 'modprobe mq-deadline-iosched|kyber|bfq' on kernels < 5.0
  156. # - Single queue schedulers are legacy now and were removed together with
  157. # the old block layer in kernel 5.0
  158. # Default: keep
  159. #DISK_IOSCHED="mq-deadline mq-deadline"
  160.  
  161. # AHCI link power management (ALPM) for disk devices:
  162. # min_power, med_power_with_dipm(*), medium_power, max_performance.
  163. # (*) Kernel >= 4.15 required, then recommended.
  164. # Multiple values separated with spaces are tried sequentially until success.
  165. # Default: <none>
  166. SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
  167. SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
  168.  
  169. # Exclude host devices from AHCI link power management.
  170. # Separate multiple hosts with spaces.
  171. # Default: <none>
  172. #SATA_LINKPWR_BLACKLIST="host1"
  173.  
  174. # Runtime Power Management for AHCI host and disks devices:
  175. # on=disable, auto=enable.
  176. # EXPERIMENTAL ** WARNING: auto may cause system lockups/data loss.
  177. # Default: <none>
  178. #AHCI_RUNTIME_PM_ON_AC=on
  179. #AHCI_RUNTIME_PM_ON_BAT=on
  180.  
  181. # Seconds of inactivity before disk is suspended.
  182. # Note: effective only when AHCI_RUNTIME_PM_ON_AC/BAT is activated.
  183. # Default: 15
  184. AHCI_RUNTIME_PM_TIMEOUT=15
  185.  
  186. # PCI Express Active State Power Management (PCIe ASPM):
  187. # default(*), performance, powersave.
  188. # (*) keeps BIOS ASPM defaults (recommended)
  189. # Default: <none>
  190. #PCIE_ASPM_ON_AC=default
  191. #PCIE_ASPM_ON_BAT=default
  192.  
  193. # Set the min/max/turbo frequency for the Intel GPU.
  194. # Possible values depend on your hardware. For available frequencies see
  195. # the output of tlp-stat -g.
  196. # Default: <none>
  197. #INTEL_GPU_MIN_FREQ_ON_AC=0
  198. #INTEL_GPU_MIN_FREQ_ON_BAT=0
  199. #INTEL_GPU_MAX_FREQ_ON_AC=0
  200. #INTEL_GPU_MAX_FREQ_ON_BAT=0
  201. #INTEL_GPU_BOOST_FREQ_ON_AC=0
  202. #INTEL_GPU_BOOST_FREQ_ON_BAT=0
  203.  
  204. # Radeon graphics clock speed (profile method): low, mid, high, auto, default;
  205. # auto = mid on BAT, high on AC.
  206. # Default: default
  207. RADEON_POWER_PROFILE_ON_AC=default
  208. RADEON_POWER_PROFILE_ON_BAT=default
  209.  
  210. # Radeon dynamic power management method (DPM): battery, performance.
  211. # Default: <none>
  212. RADEON_DPM_STATE_ON_AC=performance
  213. RADEON_DPM_STATE_ON_BAT=battery
  214.  
  215. # Radeon DPM performance level: auto, low, high; auto is recommended.
  216. # Note: effective only when RADEON_DPM_STATE_ON_AC/BAT is activated.
  217. # Default: auto
  218. RADEON_DPM_PERF_LEVEL_ON_AC=auto
  219. RADEON_DPM_PERF_LEVEL_ON_BAT=auto
  220.  
  221. # WiFi power saving mode: on=enable, off=disable; not supported by all adapters.
  222. # Default: <none>
  223. WIFI_PWR_ON_AC=off
  224. WIFI_PWR_ON_BAT=on
  225.  
  226. # Disable wake on LAN: Y/N.
  227. # Default: N
  228. WOL_DISABLE=Y
  229.  
  230. # Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
  231. # A value of 0 disables, >=1 enables power saving (recommended: 1).
  232. # Default: <none>
  233. SOUND_POWER_SAVE_ON_AC=0
  234. SOUND_POWER_SAVE_ON_BAT=1
  235.  
  236. # Disable controller too (HDA only): Y/N.
  237. # Note: effective only when SOUND_POWER_SAVE_ON_AC/BAT is activated.
  238. # Default: Y
  239. SOUND_POWER_SAVE_CONTROLLER=Y
  240.  
  241. # Power off optical drive in UltraBay/MediaBay: 0=disable, 1=enable.
  242. # Drive can be powered on again by releasing (and reinserting) the eject lever
  243. # or by pressing the disc eject button on newer models.
  244. # Note: an UltraBay/MediaBay hard disk is never powered off.
  245. # Default: 0
  246. BAY_POWEROFF_ON_AC=0
  247. BAY_POWEROFF_ON_BAT=0
  248. # Optical drive device to power off
  249. # Default: sr0
  250. BAY_DEVICE="sr0"
  251.  
  252. # Runtime Power Management for PCI(e) bus devices: on=disable, auto=enable.
  253. # Default: <none>
  254. RUNTIME_PM_ON_AC=on
  255. RUNTIME_PM_ON_BAT=auto
  256.  
  257. # Exclude PCI(e) device adresses the following list from Runtime PM
  258. # (separate with spaces). Use lspci to get the adresses (1st column).
  259. # Default: <none>
  260. #RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6"
  261.  
  262. # Exclude PCI(e) devices assigned to the listed drivers from Runtime PM.
  263. # Default when unconfigured is "amdgpu nouveau nvidia radeon" which
  264. # prevents accidential power-on of dGPU in hybrid graphics setups.
  265. # Separate multiple drivers with spaces.
  266. # Default: "amdgpu mei_me nouveau nvidia pcieport radeon", use "" to disable
  267. # completely.
  268. #RUNTIME_PM_DRIVER_BLACKLIST="amdgpu mei_me nouveau nvidia pcieport radeon"
  269.  
  270. # Set to 0 to disable, 1 to enable USB autosuspend feature.
  271. # Default: 0
  272. USB_AUTOSUSPEND=1
  273.  
  274. # Exclude listed devices from USB autosuspend (separate with spaces).
  275. # Use lsusb to get the ids.
  276. # Note: input devices (usbhid) are excluded automatically
  277. # Default: <none>
  278. #USB_BLACKLIST="1111:2222 3333:4444"
  279.  
  280. # Bluetooth devices are excluded from USB autosuspend:
  281. # 0=do not exclude, 1=exclude.
  282. # Default: 0
  283. USB_BLACKLIST_BTUSB=0
  284.  
  285. # Phone devices are excluded from USB autosuspend:
  286. # 0=do not exclude, 1=exclude (enable charging).
  287. # Default: 0
  288. USB_BLACKLIST_PHONE=0
  289.  
  290. # Printers are excluded from USB autosuspend:
  291. # 0=do not exclude, 1=exclude.
  292. # Default: 1
  293. USB_BLACKLIST_PRINTER=1
  294.  
  295. # WWAN devices are excluded from USB autosuspend:
  296. # 0=do not exclude, 1=exclude.
  297. # Default: 0
  298. USB_BLACKLIST_WWAN=0
  299.  
  300. # Include listed devices into USB autosuspend even if already excluded
  301. # by the blacklists above (separate with spaces). Use lsusb to get the ids.
  302. # Default: <none>
  303. #USB_WHITELIST="1111:2222 3333:4444"
  304.  
  305. # Set to 1 to disable autosuspend before shutdown, 0 to do nothing
  306. # (workaround for USB devices that cause shutdown problems).
  307. # Default: 0
  308. #USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1
  309.  
  310. # Restore radio device state (Bluetooth, WiFi, WWAN) from previous shutdown
  311. # on system startup: 0=disable, 1=enable.
  312. # Note: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
  313. # are ignored when this is enabled.
  314. # Default: 0
  315. RESTORE_DEVICE_STATE_ON_STARTUP=0
  316.  
  317. # Radio devices to disable on startup: bluetooth, wifi, wwan.
  318. # Separate multiple devices with spaces.
  319. # Default: <none>
  320. #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"
  321.  
  322. # Radio devices to enable on startup: bluetooth, wifi, wwan.
  323. # Separate multiple devices with spaces.
  324. # Default: <none>
  325. #DEVICES_TO_ENABLE_ON_STARTUP="wifi"
  326.  
  327. # Radio devices to disable on shutdown: bluetooth, wifi, wwan.
  328. # (workaround for devices that are blocking shutdown).
  329. # Default: <none>
  330. #DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"
  331.  
  332. # Radio devices to enable on shutdown: bluetooth, wifi, wwan.
  333. # (to prevent other operating systems from missing radios).
  334. # Default: <none>
  335. #DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan"
  336.  
  337. # Radio devices to enable on AC: bluetooth, wifi, wwan.
  338. # Default: <none>
  339. #DEVICES_TO_ENABLE_ON_AC="bluetooth wifi wwan"
  340.  
  341. # Radio devices to disable on battery: bluetooth, wifi, wwan.
  342. # Default: <none>
  343. #DEVICES_TO_DISABLE_ON_BAT="bluetooth wifi wwan"
  344.  
  345. # Radio devices to disable on battery when not in use (not connected):
  346. # bluetooth, wifi, wwan.
  347. # Default: <none>
  348. #DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi wwan"
  349.  
  350. # Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module
  351. # required). Charging starts when the remaining capacity falls below the
  352. # START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH value.
  353. # Main / Internal battery (values in %)
  354. # Default: <none>
  355. #START_CHARGE_THRESH_BAT0=75
  356. #STOP_CHARGE_THRESH_BAT0=80
  357. # Ultrabay / Slice / Replaceable battery (values in %)
  358. # Default: <none>
  359. #START_CHARGE_THRESH_BAT1=75
  360. #STOP_CHARGE_THRESH_BAT1=80
  361.  
  362. # Restore charge thresholds when AC is unplugged: 0=disable, 1=enable.
  363. # Default: 0
  364. #RESTORE_THRESHOLDS_ON_BAT=1
  365.  
  366. # Battery feature drivers: 0=disable, 1=enable
  367. # Default: 1 (all)
  368. NATACPI_ENABLE=1
  369. TPACPI_ENABLE=1
  370. TPSMAPI_ENABLE=1
  371.  
  372. # ------------------------------------------------------------------------------
  373. # tlp-rdw - Parameters for the radio device wizard
  374. # Possible devices: bluetooth, wifi, wwan.
  375.  
  376. # Notes:
  377. # - Parameters are disabled by default, remove the leading # to enable them
  378. # - Separate multiple radio devices with spaces
  379.  
  380. # Default: <none> (for all parameters below)
  381.  
  382. # Radio devices to disable on connect.
  383. #DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
  384. #DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
  385. #DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"
  386.  
  387. # Radio devices to enable on disconnect.
  388. #DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
  389. #DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
  390. #DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""
  391.  
  392. # Radio devices to enable/disable when docked.
  393. #DEVICES_TO_ENABLE_ON_DOCK=""
  394. #DEVICES_TO_DISABLE_ON_DOCK=""
  395.  
  396. # Radio devices to enable/disable when undocked.
  397. #DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
  398. #DEVICES_TO_DISABLE_ON_UNDOCK=""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement