NoPaste

Akku-tlp

von ottonormal

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

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN