You are not logged in.

#1 2024-05-09 10:02:09

carpenter
Member
Registered: 2024-04-21
Posts: 14

how to switch cpu scaling mode of TLP with cli command ?

when I change TLP mode, I need to change /etc/tlp.conf:

#CPU_SCALING_GOVERNOR_ON_AC=powersave

CPU_SCALING_GOVERNOR_ON_AC=performance

then, restart tlp service.

is there any way using cli command to switch it ?

Offline

#2 2024-05-10 10:24:12

linrunner
Member
Registered: 2013-04-21
Posts: 56

Re: how to switch cpu scaling mode of TLP with cli command ?

First of all: the correct way to apply changed TLP settings is

sudo tlp start

Refer to the FAQ.

Now to your question: a temporary change of settings without adjusting the configuration file is possible as follows:

sudo tlp start -- CPU_SCALING_GOVERNOR_ON_AC=performance

After the '--' you can also enter several parameters separated by blanks.

This is actually a testing API, but it can also be used generally. However, the change only lasts until the next power source change or reboot.

Last edited by linrunner (2024-05-10 10:24:44)

Offline

#3 2024-05-11 05:37:47

carpenter
Member
Registered: 2024-04-21
Posts: 14

Re: how to switch cpu scaling mode of TLP with cli command ?

linrunner wrote:

First of all: the correct way to apply changed TLP settings is

sudo tlp start

Refer to the FAQ.

Now to your question: a temporary change of settings without adjusting the configuration file is possible as follows:

sudo tlp start -- CPU_SCALING_GOVERNOR_ON_AC=performance

After the '--' you can also enter several parameters separated by blanks.

This is actually a testing API, but it can also be used generally. However, the change only lasts until the next power source change or reboot.


thanks bro, it works !

Offline

Board footer

Powered by FluxBB