Tlp: Difference between revisions

From wikinotes
(Created page with "tlp helps control/reduce your power consumption. = Documentation = <blockquote> {| class="wikitable" |- | official docs || https://linrunner.de/tlp/ |- |} </blockquote><!-- D...")
 
 
(2 intermediate revisions 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 9: Line 18:
|}
|}
</blockquote><!-- Documentation -->
</blockquote><!-- Documentation -->
= Locations =
<blockquote>
{| class="wikitable"
|-
| <code>/etc/tlp.conf</code> || config
|-
|}
</blockquote><!-- Locations -->


= Install =
= Install =
Line 23: Line 41:
</source>
</source>
</blockquote><!-- Install -->
</blockquote><!-- Install -->
= Usage =
<blockquote>
tlp runs in the background, but you can collect stats
<syntaxhighlight lang="bash">
# 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>
You may find the following tools helpful in determining the effectiveness of your settings
{| class="wikitable"
|-
| [[i7z]]
|-
| [[cpupower]]
|-
| [[powertop]]
|-
|}
</blockquote><!-- Usage -->


= Configuration =
= Configuration =
<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">
# /etc/tlp.conf
CPU_SCALING_GOVERNOR_ON_AC=powersave
CPU_SCALING_GOVERNOR_ON_BAT=powersave
</syntaxhighlight>
</blockquote><!-- Sample Config -->
== CPU ==
<blockquote>
<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 # battery

You 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 -p

Sample Config

Sample Config

# /etc/tlp.conf

CPU_SCALING_GOVERNOR_ON_AC=powersave
CPU_SCALING_GOVERNOR_ON_BAT=powersave

CPU