Skip to content
Advanced Power Management for Linux
Shell Perl Makefile Roff
Branch: master
Clone or download
linrunner CPU_ENERGY_PERF_POLICY_ON_AC/BAT: backward compatible merge of
settings for Intel energy vs. performance policies

Depending on the CPU model the values
  performance, balance_performance, default, balance_power, power
in CPU_ENERGY_PERF_POLICY_ON_AC/BAT are applied to:
(1) energy-performance preference (HWP.EPP) in MSR_IA32_HWP_REQUEST
(2) energy-performance bias (EPB) in MSR_IA32_ENERGY_PERF_BIAS
when HWP.EPP is available, EPB is not set (unless forced) because
the CPU will ignore it anyway.

Full backwards compatibility for the replaced parameters:
(1) CPU_HWP_ON_AC/BAT: no translation needed
(2) ENERGY_PERF_POLICY_ON_AC/BAT: translate
    balance-performance --> balance_perfomance
    normal              --> default
    balance-power       --> balance_power

Remove interim solution ENERGY_PERF_BIAS_ON_AC/BAT (commit 9130a4d).

References:
* https://www.kernel.org/doc/html/latest/admin-guide/pm/intel_pstate.html#energy-vs-performance-hints
* https://www.kernel.org/doc/html/latest/admin-guide/pm/intel_epb.html
* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4beec1d7519691b4b6c6b764e75b4e694a09c5f7
* http://manpages.ubuntu.com/manpages/disco/man8/x86_energy_perf_policy.8.html
* #421
Latest commit 81a99c0 Aug 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github GH bug reporting: all matching cases. Apr 6, 2019
func.d CPU_ENERGY_PERF_POLICY_ON_AC/BAT: backward compatible merge of Aug 18, 2019
man-rdw tlp-rdw: new command to disable RDW actions temporarily. Jan 16, 2019
man man tlp: remove 'stat'. May 1, 2019
AUTHORS AUTHORS: refer to contributor list on GitHub. Feb 27, 2018
COPYING Change links from http:// to https://. Jan 25, 2019
LICENSE GPL v2 license file May 30, 2011
Makefile CQM: fix trace output, Makefile, tlp.init. Jul 16, 2019
README.md CPU_ENERGY_PERF_POLICY_ON_AC/BAT: backward compatible merge of Aug 18, 2019
changelog CPU_ENERGY_PERF_POLICY_ON_AC/BAT: backward compatible merge of Aug 18, 2019
de.linrunner.tlp.metainfo.xml metainfo: https:// Feb 7, 2019
default CPU_ENERGY_PERF_POLICY_ON_AC/BAT: backward compatible merge of Aug 18, 2019
tlp-func-base.in CPU_ENERGY_PERF_POLICY_ON_AC/BAT: backward compatible merge of Aug 18, 2019
tlp-pcilist (c) 2019. Jan 5, 2019
tlp-rdw-nm.in CQM: implement André's review results (24.02.2019). Feb 25, 2019
tlp-rdw-udev.in CQM: implement André's review results (24.02.2019). Feb 25, 2019
tlp-rdw.bash_completion tlp-rdw: new command to disable RDW actions temporarily. Jan 16, 2019
tlp-rdw.in CQM: implement André's review results (24.02.2019). Feb 25, 2019
tlp-rdw.rules.in rdw: support ThinkPad Pro Dock CS18 (17ef:306f). Mar 4, 2019
tlp-rf.in shellcheck: disable for single lines only (where it makes sense). Feb 20, 2019
tlp-run-on.in shellcheck: disable for single lines only (where it makes sense). Feb 20, 2019
tlp-sleep.elogind
tlp-sleep.service.in Change links from http:// to https://. Jan 25, 2019
tlp-stat.in CPU_ENERGY_PERF_POLICY_ON_AC/BAT: backward compatible merge of Aug 18, 2019
tlp-usb-udev.in usb: exclude scanners managed by libsane from autosuspend Mar 5, 2019
tlp-usblist tlp-usblist: chmod -x. Feb 25, 2019
tlp.bash_completion tlp-stat -b: show data for non-featured batteries != BAT0/BAT1 too Apr 26, 2019
tlp.in CPU_ENERGY_PERF_POLICY_ON_AC/BAT: backward compatible merge of Aug 18, 2019
tlp.init CQM: fix trace output, Makefile, tlp.init. Jul 16, 2019
tlp.rules.in (c) 2019. Jan 5, 2019
tlp.service.in tlp.service: don't wait for bluetooth.service, NetworkManager.service Jun 12, 2019
tlp.upstart.in (c) 2019. Jan 5, 2019
tpacpi-bat tpacpi-bat: new upstream version Jan 12, 2018

README.md

TLP - Linux Advanced Power Management

TLP saves laptop battery power on Linux without the need to understand every technical detail.

TLP comes with a default configuration already optimized for battery life, so you may just install and forget it. Nevertheless TLP is highly customizable to fulfil your specific requirements.

TLP is a pure command line tool with automated background tasks. It does not contain a GUI.

Features

Power profiles

Depending on the power source (AC or battery) the following settings are applied:

  • Kernel laptop mode and dirty buffer params
  • Processor frequency scaling including "turbo boost" / "turbo core"
  • Limit Intel CPU max/min P-state to control power dissipation (Intel P-state only)
  • Intel CPU energy/performance policies HWP.EPP (Intel P-state only) and EPB
  • Disk drive advanced power management level (APM) and spin down timeout
  • AHCI link power management (ALPM) with device blacklist
  • AHCI runtime power management for host controllers and disks (EXPERIMENTAL)
  • PCIe active state power management (PCIe ASPM)
  • Runtime power management for PCIe bus devices
  • Intel GPU frequency limits
  • Radeon graphics power management (KMS and DPM)
  • Wifi power saving mode
  • Enable/disable integrated radio devices (excluding connected devices)
  • Power off optical drive in UltraBay/MediaBay
  • Audio power saving mode

Additional

  • I/O scheduler (per disk)
  • USB autosuspend with device blacklist/whitelist (input devices excluded automatically)
  • Enable or disable integrated radio devices upon system startup and shutdown
  • Restore radio device state on system startup (from previous shutdown)
  • Radio device wizard: switch radios upon network connect/disconnect and dock/undock
  • Disable Wake On LAN
  • Integrated WWAN and bluetooth state is restored after suspend/hibernate
  • Battery charge thresholds and recalibration - ThinkPads only

Installation

TLP packages are available for all major Linux distributions; see Installation.

Configuration

The default configuration provides optimized power saving out of the box.

Settings are stored in /etc/default/tlp; see Configuration for details.

Documentation

Read the the full documentation at the website:

Or take a look at the manpages:

  • tlp (apply settings)
  • tlp-rdw (control the radio device wizard)
  • tlp-stat (display tlp status and active settings)
  • wifi, bluetooth, wwan (switch wireless devices on/off)
  • run-on-ac, run-on-bat

Support

Please use adequate Linux forums for help and support questions.

Bug reports

Refer to the Bug Reporting Howto.

Contributing

Contributing is not only about coding and pull requests. Volunteers helping with testing and support are always welcome!

See Contributing.

You can’t perform that action at this time.