You are not logged in.
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
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)
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
ondemandOffline
Reboot and you will see.
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
My guess is that 'tlp' is interfering with 'cpupower'. Try enabling only one service.
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/tlpand 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
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)
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
schedutilEDIT: 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
If you were able to set your governor with
sudo cpupower frequency-set -g ondemandI 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)
Now I also reinstalled tlp, enabled the service, rebooted and cpupower still works (ondemand).
I'll never know why it wasn't working ![]()
Many thanks for your help
Last edited by sakya (2021-10-02 14:01:47)
Offline
If you consider this solved, please edit the title accordingly ![]()