So, I'm having some overheating problems with an HP Envy 15 that are driving me nuts. See this and this for reference.
Anyway, I did an Ubuntu 18.04 fresh install. Also installed tlp
and cpufrequtils
. So, if I do tlp stat -p
...
+++ Processor
CPU model = Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
[....]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = performance
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 3100000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 3100000 [kHz]
/sys/devices/system/cpu/intel_pstate/min_perf_pct = 25 [%]
/sys/devices/system/cpu/intel_pstate/max_perf_pct = 100 [%]
/sys/devices/system/cpu/intel_pstate/no_turbo = 0
/sys/devices/system/cpu/intel_pstate/turbo_pct = 50 [%]
/sys/devices/system/cpu/intel_pstate/num_pstates = 24
Now, since I want to use a powersave
governor, as per this, I get to use it.
+++ Processor
CPU model = Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
[....]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 3100000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 3100000 [kHz]
/sys/devices/system/cpu/intel_pstate/min_perf_pct = 25 [%]
/sys/devices/system/cpu/intel_pstate/max_perf_pct = 100 [%]
/sys/devices/system/cpu/intel_pstate/no_turbo = 0
/sys/devices/system/cpu/intel_pstate/turbo_pct = 50 [%]
/sys/devices/system/cpu/intel_pstate/num_pstates = 24
So far, so good.
Two things do call my attention:
- If I do start using my laptopt again, don't know why, but from time to time, the
tlp stat -p
shows again that thescaling_governor=performance
. - Why are
scaling_min_freq
andscaling_max_freq
equal? I'd like to reduce both of them to see if I can somehow control the overheating problem that I'm facing.
How can I avoid the performance
governor? How can I tune the min
and max
scaling?
thanks!
Lucas
Force to
powersave
speed governorYou are using
sudo tlp stat -p
to find out when the speed governor is set atperformance
mode. When this happens reset it topowersave
with this command:Run
tlp
statistics again and ensure minimum frequency is normalized and no longer set at maximum frequency.Keep running
tlp
to find out how often the governor is being reset toperformance
mode.Keep searching for the program that is reseting the speed governor.
As a last resort you could:
powersave
every x seconds.This answer is for your second question:
I don't know how they got set to the same, but something must have done it. To limit your maximum CPU frequency, when using the intel_pstate CPU frequency scaling driver, one way is (to 70% for example):
Example: