# Dynamic CPU frequency

**URL:** <https://community.mnt.re/t/dynamic-cpu-frequency/2255>\
**Category:** MNT Pocket Reform\
**Created:** [July 12, 2024, 11:30am UTC](https://community.mnt.re/t/dynamic-cpu-frequency/2255 "2024-07-12T11:30:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![moep](https://community.mnt.re/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moep](https://community.mnt.re/u/moep)\
**Post date:** [July 12, 2024, 11:30am UTC](https://community.mnt.re/t/dynamic-cpu-frequency/2255/1 "2024-07-12T11:30:30Z")

</div>

Currently the cores of the i.MX8MPlus module are all running at fixed 2 GHz, which contributes to the device becoming really warm/hot really fast even while idling.  
Is this normal/expected behaviour?  
Will there be or are there already other CPU governors available, which will allow the CPU to lower the clock to stay cooler and to conserve energy?

---

<div class="post-metadata">

**Author:** ![amospalla](https://community.mnt.re/letter_avatar_proxy/v4/letter/a/54ee81/32.png) [@amospalla](https://community.mnt.re/u/amospalla)\
**Post date:** [July 12, 2024, 2:59pm UTC](https://community.mnt.re/t/dynamic-cpu-frequency/2255/2 "2024-07-12T14:59:34Z")

</div>

Hi, on Pocket there are two available governors, performance and schedutil. By default it uses schedutil which is dynamic.

My pocket sitting idle stays 1.6Ghz and when on load bumps to 2.0Ghz. I could force the maximum frequency to 1.2Ghz (or another one) by setting the upper limit, but then it won’t go beyond that when on load (see last command below).

```auto
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies 
1200000 1600000 1800000 2000000 

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors   
performance schedutil 

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

$ echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 

```

---

<div class="post-metadata">

**Author:** ![moep](https://community.mnt.re/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moep](https://community.mnt.re/u/moep)\
**Post date:** [July 12, 2024, 3:22pm UTC](https://community.mnt.re/t/dynamic-cpu-frequency/2255/3 "2024-07-12T15:22:06Z")

</div>

this does not seem to work. my governor was already set to schedutil but never drops sub 2 GHz even when no core has visible load. I can however set a manual frequency, which is then honored.  
When I set the governor to performance it stays at 2 GHz, even if I set it back to schedutil. The available frequencies are the same as you showed.

---

<div class="post-metadata">

**Author:** ![moep](https://community.mnt.re/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moep](https://community.mnt.re/u/moep)\
**Post date:** [July 12, 2024, 3:27pm UTC](https://community.mnt.re/t/dynamic-cpu-frequency/2255/4 "2024-07-12T15:27:38Z")

</div>

There seems to be a problem in htop, which can display the cpu frequency. When idle there is always 2 GHz visible, until a manual maximum is set. Then this freq is visible there. I checked with

> cat /sys/devices/system/cpu/cpu0/cpufreq/scalin\_cur\_freq

And there 1600000 is shown, which matches your idle freq.  
When I create load it jumps to 2000000, which is the current max freq.  
So it seems that it is a bug in htop.

---

<div class="post-metadata">

**Author:** ![amospalla](https://community.mnt.re/letter_avatar_proxy/v4/letter/a/54ee81/32.png) [@amospalla](https://community.mnt.re/u/amospalla)\
**Post date:** [July 12, 2024, 3:40pm UTC](https://community.mnt.re/t/dynamic-cpu-frequency/2255/5 "2024-07-12T15:40:25Z")

</div>

Mine, when idle stays most of the time 1.6, but I can see some 1.2 or 2.0 from time to time.

Anyway, these are minutely cpu temperatures, with a one minute difference between them. First with the schedutil governor which was almost all the time at 1.6, then I forced the frequency to 1.2 and later to 2.0. As you can see there is no much difference between temperatures.

1.6 (aproximately, using a dynamic governor)  
temp1: +58.0°C  
temp1: +58.0°C  
temp1: +58.0°C  
temp1: +58.0°C  
temp1: +58.0°C  
temp1: +58.0°C  
temp1: +58.0°C

1.2  
temp1: +58.0°C  
temp1: +58.0°C  
temp1: +58.0°C  
temp1: +58.0°C  
temp1: +58.0°C  
temp1: +58.0°C  
temp1: +58.0°C

2.0  
temp1: +58.0°C  
temp1: +59.0°C  
temp1: +59.0°C  
temp1: +59.0°C  
temp1: +59.0°C  
temp1: +59.0°C  
temp1: +59.0°C

EDIT: all the time Pocket was idle, not doing anything.

---

<div class="post-metadata">

**Author:** ![selfawaresoup](https://community.mnt.re/user_avatar/community.mnt.re/selfawaresoup/32/1392_2.png) [@selfawaresoup](https://community.mnt.re/u/selfawaresoup)\
**Post date:** [July 20, 2024, 1:35pm UTC](https://community.mnt.re/t/dynamic-cpu-frequency/2255/6 "2024-07-20T13:35:24Z")

</div>

Maybe related to this:

My Pocket is running really hot when idling, about 73C and the battery charge is dropping very fast as well, almost an entire charge in under 2h.

The top of the lid (on the MNT logo) is also very hot to the touch, to the point where I’d say it’s unsafe and a burn hazard.

---

<div class="post-metadata">

**Author:** ![selfawaresoup](https://community.mnt.re/user_avatar/community.mnt.re/selfawaresoup/32/1392_2.png) [@selfawaresoup](https://community.mnt.re/u/selfawaresoup)\
**Post date:** [July 20, 2024, 3:50pm UTC](https://community.mnt.re/t/dynamic-cpu-frequency/2255/7 "2024-07-20T15:50:10Z")

</div>

I have observed the CPU frequency with `glances` for a while today with the device just sitting idle on my desk. Most of the time it seems to sit at 1.6GHz, but also jumps to 1.8 a lot.

---

<div class="post-metadata">

**Author:** ![moep](https://community.mnt.re/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moep](https://community.mnt.re/u/moep)\
**Post date:** [July 21, 2024, 8:29am UTC](https://community.mnt.re/t/dynamic-cpu-frequency/2255/8 "2024-07-21T08:29:29Z")

</div>

I also see the high teperature issue with my device. 4 Minutes after boot it reaches \>70ºC and does not fall below until powered off or manually set the CPU frequency to 1,2 GHz. Even then it is far from running cool at around 66ºC.

---

<div class="post-metadata">

**Author:** ![moep](https://community.mnt.re/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moep](https://community.mnt.re/u/moep)\
**Post date:** [July 21, 2024, 9:02am UTC](https://community.mnt.re/t/dynamic-cpu-frequency/2255/9 "2024-07-21T09:02:33Z")

</div>

I just did a thermal check with an infrared thermometer and sadly it seems to be a burn hazard, as the top cover (around the copper logo) temperature easily reaches 56ºC.  
Even with the freq capped at 1,2 GHz it sits at around 48ºC.

Maybe someone can check my results with their device.
