You are not logged in.

#1 2016-02-09 04:24:05

bernardogo
Member
Registered: 2015-10-26
Posts: 22

Disable auto switching between battery and AC in TLP

Hello,

Is there any way to disable this? I have a smaller power supply that does not work well in the performance mode, TLP keeps switching to performance while charging.

Offline

#2 2016-02-11 19:54:24

mkey
Member
Registered: 2015-02-09
Posts: 38

Re: Disable auto switching between battery and AC in TLP

You can easily customize what setting is applied in each mode by editing /etc/defaut/tlp configuration file.
CPU performance policy is set with:

ENERGY_PERF_POLICY_ON_AC=performance
ENERGY_PERF_POLICY_ON_BAT=powersave

You can also force a mode with command line and thus ignore the actual power source.

sudo tlp bat
or
sudo tlp ac

This can be used as a udev rule for instance and run a script when the AC adapter is plugged.
To do so, add this to /etc/udev/rules.d/powersave.rules

SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/path/to/your/script"

And create a script file to run:

#! /bin/bash                                                                                   
tlp bat

Offline

Board footer

Powered by FluxBB