Tlp: Difference between revisions
From wikinotes
No edit summary |
(→Usage) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
tlp helps control/reduce your power consumption. | tlp helps control/reduce your power consumption. | ||
* cpu scaling | |||
* gpu scaling | |||
* audio powersaving | |||
* partial charge to prevent battery wear | |||
* power-off various drive bays | |||
* spin down disks | |||
* wifi/radio power saving | |||
= Documentation = | = Documentation = | ||
Line 37: | Line 46: | ||
tlp runs in the background, but you can collect stats | tlp runs in the background, but you can collect stats | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
tlp-stat # | # show active settings | ||
tlp-stat | |||
# these show warnings/recommendations | |||
tlp-stat -s # system (has recommendations) | |||
tlp-stat -w # warnings | |||
# you can also see only specific settings | |||
# (see 'man tlp-stat' for all) | |||
tlp-stat -p # cpu | |||
tlp-stat -g # graphics | |||
tlp-stat -t # temp | |||
tlp-stat -b # battery | |||
</syntaxhighlight> | </syntaxhighlight> | ||
You may find the following tools helpful in determining the effectiveness of your settings | |||
{| class="wikitable" | |||
|- | |||
| [[i7z]] | |||
|- | |||
| [[cpupower]] | |||
|- | |||
| [[powertop]] | |||
|- | |||
|} | |||
</blockquote><!-- Usage --> | </blockquote><!-- Usage --> | ||
= Configuration = | = Configuration = | ||
<blockquote> | <blockquote> | ||
== Background == | |||
<blockquote> | |||
<syntaxhighlight lang="yaml"> | |||
# 'governors' ('platform profiles' in tlp) are exposed by linux to manage your | |||
# cpu-scaling/battery/etc scaling. (ex: performance, powersave, ...) | |||
# | |||
# use either to see available profiles: | |||
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors | |||
sudo tlp-stat -p | |||
</syntaxhighlight> | |||
</blockquote><!-- Background --> | |||
== Sample Config == | |||
<blockquote> | |||
Sample Config | |||
<syntaxhighlight lang="conf"> | <syntaxhighlight lang="conf"> | ||
# /etc/tlp.conf | # /etc/tlp.conf | ||
Line 50: | Line 97: | ||
CPU_SCALING_GOVERNOR_ON_BAT=powersave | CPU_SCALING_GOVERNOR_ON_BAT=powersave | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Sample Config --> | |||
== CPU == | |||
<blockquote> | |||
</blockquote><!-- CPU --> | |||
</blockquote><!-- Configuration --> | </blockquote><!-- Configuration --> |
Latest revision as of 15:56, 7 March 2022
tlp helps control/reduce your power consumption.
- cpu scaling
- gpu scaling
- audio powersaving
- partial charge to prevent battery wear
- power-off various drive bays
- spin down disks
- wifi/radio power saving
Documentation
official docs https://linrunner.de/tlp/
Locations
/etc/tlp.conf
config
Install
# tlp manages regular resources (cpu, memory, wifi, lan, ...) sudo pacman -S tlp sudo systemctl enable tlp sudo systemctl start tlp # tlp-rdw (optional) provides hooks for you to disable radio items # (for example, you may want to disable wifi if laptop docked) sudo pacman -S tlp-rdw
Usage
tlp runs in the background, but you can collect stats
# show active settings tlp-stat # these show warnings/recommendations tlp-stat -s # system (has recommendations) tlp-stat -w # warnings # you can also see only specific settings # (see 'man tlp-stat' for all) tlp-stat -p # cpu tlp-stat -g # graphics tlp-stat -t # temp tlp-stat -b # batteryYou may find the following tools helpful in determining the effectiveness of your settings
i7z cpupower powertop
Configuration
Background
# 'governors' ('platform profiles' in tlp) are exposed by linux to manage your # cpu-scaling/battery/etc scaling. (ex: performance, powersave, ...) # # use either to see available profiles: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors sudo tlp-stat -pSample Config
Sample Config
# /etc/tlp.conf CPU_SCALING_GOVERNOR_ON_AC=powersave CPU_SCALING_GOVERNOR_ON_BAT=powersaveCPU