Tlp

From wikinotes

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