[OPi5] Is it possible to get the real time CPU frequency? #173
-
Device: Orange Pi 5 By far I have tested every combination of commands that I can find on the internet to query the current CPU frequency. They only seem to show the MAX frequency of the cores but not the real-time frequencies. Also, do the A76 cores ever hit their max ~2.6Ghz or they are capped at 1.8Ghz like their little brothers? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
You should be able to view the current CPU frequency using the sysfs interface. ubuntu@ubuntu-desktop:~$ cat /sys/bus/cpu/devices/cpu*/cpufreq/scaling_cur_freq
1800000
1800000
1800000
1800000
2304000
2304000
2304000
2304000 I see the A55 cores are at 1.8Ghz and the A76 cores are around ~2.3Ghz. |
Beta Was this translation helpful? Give feedback.
-
on Ubuntu I'm using python and the |
Beta Was this translation helpful? Give feedback.
Right, this is the expected behavior by default. I have two systemd services that set the performance governor for the GPU and CPU to
performance
instead of the defaultondemand
value. This is because I noticed the CPU and GPU are slightly delayed when increasing the frequency under load, causing stuttering.If you want to change only the cpu governor yourself to ondemand, you can use this command.
One example I observed a while ago is dragging the Chromium window around. It can stutter and become laggy when the governor is set to its default value of ondemand. So I decided to have two services set the CPU and GPU…