https://wiki.archlinux.org/api.php?action=feedcontributions&user=Kajm&feedformat=atomArchWiki - User contributions [en]2024-03-29T02:20:53ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=TLP&diff=575344TLP2019-06-13T12:24:41Z<p>Kajm: Added a section about tlp causing wireless mice to lag/stutter. This issue has a simple fix but was really annoying to figure out. The wiki page about bluetooth mice only mentions polling rate as a cause of lag.</p>
<hr />
<div>[[Category:Power management]]<br />
[[ja:TLP]]<br />
[[zh-hans:TLP]]<br />
{{Related articles start}}<br />
{{Related|Laptop}}<br />
{{Related|Laptop Mode Tools}}<br />
{{Related articles end}}<br />
<br />
From the [http://linrunner.de/en/tlp/tlp.html project page]:<br />
<br />
:TLP brings you the benefits of advanced power management for 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 fulfill your specific requirements.<br />
<br />
== Installation ==<br />
<br />
[[Install]] the {{Pkg|tlp}} package. Installing the optional dependencies may help provide additional power saving.<br />
<br />
[[Enable]]/[[start]] {{ic|tlp.service}} and {{ic|tlp-sleep.service}}.<br />
<br />
=== Radio Device Wizard (tlp-rdw) ===<br />
<br />
When using the Radio Device Wizard ({{pkg|tlp-rdw}}), it is required to use [[NetworkManager]] and [[enabling]] {{ic|NetworkManager-dispatcher.service}}.<br />
<br />
One should also [[mask]] the service {{ic|systemd-rfkill.service}} and socket {{ic|systemd-rfkill.socket}} to avoid conflicts and assure proper operation of TLP's radio device switching options.<br />
<br />
See [http://linrunner.de/en/tlp/docs/tlp-configuration.html#rdw TLP configuration] for details.<br />
<br />
=== ThinkPads only ===<br />
<br />
For advanced battery functions, i.e. charge thresholds and recalibration, install the following package(s):<br />
<br />
* {{Pkg|tp_smapi}} – tp-smapi is needed for battery charge thresholds, recalibration and specific status output of tlp-stat<br />
* {{Pkg|acpi_call}} – acpi-call is needed for battery charge thresholds and recalibration on Sandy Bridge and newer models (X220/T420, X230/T430 et al.)<br />
<br />
See the TLP FAQ, section [http://linrunner.de/en/tlp/docs/tlp-faq.html#kernmod "Which kernel module?"], for details.<br />
<br />
Controlling the charge thresholds using D-Bus without root privileges is possible using {{AUR|threshy}} and it's example Qt user interface {{AUR|threshy-gui}}.<br />
<br />
=== Front end ===<br />
<br />
{{AUR|tlpui-git}} is a [[GTK]] user interface for TLP written in Python. As of October 2018, the software is still in beta.<br />
<br />
== Configuration ==<br />
<br />
The configuration file is located at {{ic|/etc/default/tlp}} and provides a "largely" optimized power saving by default. For a full explanation of options see: [http://linrunner.de/en/tlp/docs/tlp-configuration.html TLP configuration].<br />
<br />
=== Force battery (BAT) configuration ===<br />
When no power supply can be detected, the setting for AC will be used (e.g. on desktops and embedded hardware).<br />
<br />
You may want to force the battery (BAT) settings when using TLP on these devices to enable more power saving:<br />
<br />
{{hc|/etc/default/tlp|2=<br />
# Operation mode when no power supply can be detected: AC, BAT.<br />
TLP_DEFAULT_MODE=BAT<br />
<br />
# Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE<br />
TLP_PERSISTENT_DEFAULT=1}}<br />
<br />
=== Btrfs ===<br />
<br />
{{Accuracy|Hardware/kernel-specific quirk|section=Btrfs}}<br />
<br />
To avoid filesystem corruption on btrfs formatted partitions, set:<br />
<br />
SATA_LINKPWR_ON_BAT=max_performance<br />
<br />
See also these links for discussion on this topic: [https://github.com/linrunner/TLP/issues/128 Github bug report], [https://www.reddit.com/r/archlinux/comments/4f5xvh/saving_power_is_the_btrfs_dataloss_warning_still/ Reddit follow-up discussion].<br />
<br />
=== Bumblebee with NVIDIA driver ===<br />
<br />
If you're running [[Bumblebee]] with NVIDIA driver, you need to disable power management for the GPU in TLP in order to make Bumblebee control the power of the GPU.<br />
<br />
Run {{ic|lspci}} to determine the address of the GPU (such as 01:00.0), then set the value:<br />
<br />
RUNTIME_PM_BLACKLIST="01:00.0"<br />
<br />
=== Wireless Mouse ===<br />
<br />
Enabling tlp can sometimes cause micro-stuttering when using a bluetooth or wireless mouse. A simple fix is to add your device to the autosuspend blacklist.<br />
The id of your device can be found using {{ic|lsusb}} (for example 1111:2222) . Alternatively, preventing all bluetooth devices from autosuspending also works.<br />
<br />
{{hc|/etc/default/tlp|2=<br />
# Exclude listed devices from USB autosuspend (separate with spaces).<br />
USB_BLACKLIST="1111:2222"<br />
<br />
# Bluetooth devices are excluded from USB autosuspend:<br />
USB_BLACKLIST_BTUSB=1}}<br />
<br />
<br />
=== Command line ===<br />
<br />
TLP provides several command line tools. See [http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html#commands TLP commands].<br />
<br />
== Debugging ==<br />
You can display information about the currently used Mode(AC/BAT) and applied configurations:<br />
<br />
# tlp-stat<br />
<br />
== Features intentionally excluded ==<br />
<br />
* Fan control. See [[Fan speed control]]<br />
<br />
* Backlight brightness. See [[Backlight]]<br />
<br />
== See also ==<br />
<br />
* [http://linrunner.de/tlp TLP - Linux Advanced Power Management] - Project homepage & documentation.</div>Kajm