Advertisement
corrosiontears

My configuration on TLP: /etc/default/tlp

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