You are not logged in.

#1 2021-10-02 12:00:06

sakya
Member
Registered: 2021-09-26
Posts: 9

[SOLVED] Laptop always boot with powersave governor

I have an Asus N56JR that always boots with the powersave CPU governor.
I installed tlp, cpupower and thermald.

In /etc/default/cpupower I have set
governor='ondemand'

What should I check?

Last edited by sakya (2021-10-02 14:17:37)

Offline

#2 2021-10-02 12:37:34

dogknowsnx
Guest

Re: [SOLVED] Laptop always boot with powersave governor

You have to enable 'cpupower.service', as well. Keep in mind, if you're using the 'intel_pstate' driver, you're limited to choosing between 'powersafe' and 'performance' only.
https://wiki.archlinux.org/title/CPU_fr … _governors

Last edited by dogknowsnx (2021-10-02 12:44:23)

#3 2021-10-02 12:44:02

sakya
Member
Registered: 2021-09-26
Posts: 9

Re: [SOLVED] Laptop always boot with powersave governor

Many thanks for the reply.

I enabled the cpupower.service

● cpupower.service - Apply cpupower configuration
     Loaded: loaded (/usr/lib/systemd/system/cpupower.service; enabled; vendor preset: disabled)
     Active: active (exited) since Sat 2021-10-02 13:08:25 CEST; 1h 33min ago
    Process: 405 ExecStart=/usr/lib/systemd/scripts/cpupower (code=exited, status=0/SUCCESS)
   Main PID: 405 (code=exited, status=0/SUCCESS)
        CPU: 7ms

ott 02 13:08:25 sakya systemd[1]: Starting Apply cpupower configuration...
ott 02 13:08:25 sakya systemd[1]: Finished Apply cpupower configuration.

I can manually set ondemand governor...so I think I'm not using intel_pstate (?)

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
ondemand

Offline

#4 2021-10-02 12:45:10

dogknowsnx
Guest

Re: [SOLVED] Laptop always boot with powersave governor

Reboot and you will see.

#5 2021-10-02 12:56:06

sakya
Member
Registered: 2021-09-26
Posts: 9

Re: [SOLVED] Laptop always boot with powersave governor

The service was enabled before my last reboot.
I rebooted but the CPU governor was still "powersave".

I tried to change the default to "performance", rebooted again but still "powersave"...

cat /etc/default/cpupower 
# Define CPUs governor
# valid governors: ondemand, performance, powersave, conservative, userspace.
governor='performance'

# Limit frequency range
# Valid suffixes: Hz, kHz (default), MHz, GHz, THz
#min_freq="2.25GHz"
#max_freq="3GHz"

# Specific frequency to be set.
# Requires userspace governor to be available.
# Do not set governor field if you use this one.
#freq=

# Utilizes cores in one processor package/socket first before processes are 
# scheduled to other processor packages/sockets.
# See man (1) CPUPOWER-SET for additional details.
#mc_scheduler=

# Utilizes thread siblings of one processor core first before processes are
# scheduled to other cores. See man (1) CPUPOWER-SET for additional details.
#smp_scheduler=

#  Sets a register on supported Intel processore which allows software to convey
# its policy for the relative importance of performance versus energy savings to
# the  processor. See man (1) CPUPOWER-SET for additional details.
#perf_bias=

# vim:set ts=2 sw=2 ft=sh et:

Offline

#6 2021-10-02 12:59:01

dogknowsnx
Guest

Re: [SOLVED] Laptop always boot with powersave governor

My guess is that 'tlp' is interfering with 'cpupower'. Try enabling only one service.

#7 2021-10-02 13:13:04

sakya
Member
Registered: 2021-09-26
Posts: 9

Re: [SOLVED] Laptop always boot with powersave governor

Ok, I disabled the tlp.service

sudo systemctl status tlp.service
○ tlp.service - TLP system startup/shutdown
     Loaded: loaded (/usr/lib/systemd/system/tlp.service; disabled; vendor preset: disabled)
     Active: inactive (dead)
       Docs: https://linrunner.de/tlp

and rebooted....still powersave.

I also tried disabling also the cpupower.service and rebooted again (while on performance governor) but still powersave.

Last edited by sakya (2021-10-02 13:34:28)

Offline

#8 2021-10-02 13:22:02

dogknowsnx
Guest

Re: [SOLVED] Laptop always boot with powersave governor

Mask 'tlp', or remove it altogether, since it is meant for battery optimizations rather than performance improvements. (If you want to use 'tlp', look for governor related options in '/etc/tlp.conf')

Last edited by dogknowsnx (2021-10-02 13:26:57)

#9 2021-10-02 13:37:07

sakya
Member
Registered: 2021-09-26
Posts: 9

Re: [SOLVED] Laptop always boot with powersave governor

I removed tlp, rebooted but still powersave.
Now I tried to remove also cpupower, rebooted again and...schedutil (better than powersave)!

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
schedutil

EDIT: I really don't know why but I just reinstalled cpupower, enabled the service, set ondemand in /etc/default/cpupower, rebooted and now it seems to work...

Last edited by sakya (2021-10-02 13:45:17)

Offline

#10 2021-10-02 13:45:31

dogknowsnx
Guest

Re: [SOLVED] Laptop always boot with powersave governor

If you were able to set your governor with

sudo cpupower frequency-set -g ondemand

I don't see why this won't apply using 'cpupower.service'.

Maybe post the output of 'systemctl' to see what else could be interfering...

EDIT: Just saw your 'EDIT'...

Last edited by dogknowsnx (2021-10-02 13:47:10)

#11 2021-10-02 14:01:34

sakya
Member
Registered: 2021-09-26
Posts: 9

Re: [SOLVED] Laptop always boot with powersave governor

Now I also reinstalled tlp, enabled the service, rebooted and cpupower still works (ondemand).
I'll never know why it wasn't working tongue

Many thanks for your help

Last edited by sakya (2021-10-02 14:01:47)

Offline

#12 2021-10-02 14:05:07

dogknowsnx
Guest

Re: [SOLVED] Laptop always boot with powersave governor

If you consider this solved, please edit the title accordingly smile

Board footer

Powered by FluxBB