Saturday, October 10, 2020

Watch CPU frequency of Raspberry Pi: adding menu item of CPUFreq frontend and using vcgencmd.

This video show how to watch CPU frequency of Raspberry Pi running Rspberry Pi OS (tested on Raspberry Pi 4):
- adding menu item of CPUFreq frontend
- or using vcgencmd. 

vcgencmd is a command line utility that can get various pieces of information from the VideoCore GPU on the Raspberry Pi, details refer to Raspberry Pi Document of vcgencmd.

To get the actual speed of ARM cores, enter the command in Terminal:

$ vcgencmd measure_clock arm

You can also keep watching vcgencmd result in Terminal using the watch command.

$ watch -n 1 vcgencmd measure_clock arm

Alternatively, you can also check it in the file /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq, where cpu0 can be cpu0~4 for Raspberry Pi 4 with 4 core. Read HERE.


No comments: