SHARE
TWEET

Untitled

Marus_ Dec 2nd, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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=BAT
  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=50
  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=1
  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 max_performance"
  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=""
  269.  
  270. # Set to 0 to disable, 1 to enable aggressive 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. USB_BLACKLIST="1d6b:0003 05c8:03b7 8087:0a2b 1d6b:0002"
  280.  
  281. # Bluetooth devices are excluded from USB autosuspend:
  282. #   0=do not exclude, 1=exclude.
  283. # Default: 0
  284. USB_BLACKLIST_BTUSB=0
  285.  
  286. # Phone devices are excluded from USB autosuspend:
  287. #   0=do not exclude, 1=exclude (enable charging).
  288. # Default: 0
  289. USB_BLACKLIST_PHONE=1
  290.  
  291. # Printers are excluded from USB autosuspend:
  292. #   0=do not exclude, 1=exclude.
  293. # Default: 1
  294. USB_BLACKLIST_PRINTER=1
  295.  
  296. # WWAN devices are excluded from USB autosuspend:
  297. #   0=do not exclude, 1=exclude.
  298. # Default: 0
  299. USB_BLACKLIST_WWAN=0
  300.  
  301. # Include listed devices into USB autosuspend even if already excluded
  302. # by the blacklists above (separate with spaces). Use lsusb to get the ids.
  303. # Default: <none>
  304. #USB_WHITELIST="1111:2222 3333:4444"
  305.  
  306. # Set to 1 to disable autosuspend before shutdown, 0 to do nothing
  307. # (workaround for USB devices that cause shutdown problems).
  308. # Default: 0
  309. #USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1
  310.  
  311. # Restore radio device state (Bluetooth, WiFi, WWAN) from previous shutdown
  312. # on system startup: 0=disable, 1=enable.
  313. # Note: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
  314. #   are ignored when this is enabled.
  315. # Default: 0
  316. RESTORE_DEVICE_STATE_ON_STARTUP=0
  317.  
  318. # Radio devices to disable on startup: bluetooth, wifi, wwan.
  319. # Separate multiple devices with spaces.
  320. # Default: <none>
  321. #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"
  322.  
  323. # Radio devices to enable on startup: bluetooth, wifi, wwan.
  324. # Separate multiple devices with spaces.
  325. # Default: <none>
  326. #DEVICES_TO_ENABLE_ON_STARTUP="wifi"
  327.  
  328. # Radio devices to disable on shutdown: bluetooth, wifi, wwan.
  329. # (workaround for devices that are blocking shutdown).
  330. # Default: <none>
  331. #DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"
  332.  
  333. # Radio devices to enable on shutdown: bluetooth, wifi, wwan.
  334. # (to prevent other operating systems from missing radios).
  335. # Default: <none>
  336. #DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan"
  337.  
  338. # Radio devices to enable on AC: bluetooth, wifi, wwan.
  339. # Default: <none>
  340. #DEVICES_TO_ENABLE_ON_AC="bluetooth wifi wwan"
  341.  
  342. # Radio devices to disable on battery: bluetooth, wifi, wwan.
  343. # Default: <none>
  344. #DEVICES_TO_DISABLE_ON_BAT="bluetooth wifi wwan"
  345.  
  346. # Radio devices to disable on battery when not in use (not connected):
  347. #   bluetooth, wifi, wwan.
  348. # Default: <none>
  349. #DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi wwan"
  350.  
  351. # Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module
  352. # required). Charging starts when the remaining capacity falls below the
  353. # START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH value.
  354. # Main / Internal battery (values in %)
  355. # Default: <none>
  356. #START_CHARGE_THRESH_BAT0=75
  357. #STOP_CHARGE_THRESH_BAT0=80
  358. # Ultrabay / Slice / Replaceable battery (values in %)
  359. # Default: <none>
  360. #START_CHARGE_THRESH_BAT1=75
  361. #STOP_CHARGE_THRESH_BAT1=80
  362.  
  363. # Restore charge thresholds when AC is unplugged: 0=disable, 1=enable.
  364. # Default: 0
  365. #RESTORE_THRESHOLDS_ON_BAT=1
  366.  
  367. # Battery feature drivers: 0=disable, 1=enable
  368. # Default: 1 (all)
  369. NATACPI_ENABLE=1
  370. TPACPI_ENABLE=1
  371. TPSMAPI_ENABLE=1
  372.  
  373. # ------------------------------------------------------------------------------
  374. # tlp-rdw - Parameters for the radio device wizard
  375. # Possible devices: bluetooth, wifi, wwan.
  376.  
  377. # Notes:
  378. # - Parameters are disabled by default, remove the leading # to enable them
  379. # - Separate multiple radio devices with spaces
  380.  
  381. # Default: <none> (for all parameters below)
  382.  
  383. # Radio devices to disable on connect.
  384. #DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
  385. #DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
  386. #DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"
  387.  
  388. # Radio devices to enable on disconnect.
  389. #DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
  390. #DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
  391. #DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""
  392.  
  393. # Radio devices to enable/disable when docked.
  394. #DEVICES_TO_ENABLE_ON_DOCK=""
  395. #DEVICES_TO_DISABLE_ON_DOCK=""
  396.  
  397. # Radio devices to enable/disable when undocked.
  398. #DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
  399. #DEVICES_TO_DISABLE_ON_UNDOCK=""
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top