Hardware monitoring
The Raspberry Pi Foundation provides a tool called vcgencmd
, which gives you detailed data about various hardware used in the Raspberry Pi. This tool is updated from time to time and can be used to log the temperature of the GPU, voltage levels, processor frequencies, and so on. Some commands for monitoring are as follows:
- To see a list of supported commands, we type the following in the console:
vcgencmd commands
- As newer versions are released, there will be more commands available here. To check the current GPU temperature, we will use the following command:
vcgencmd measure_temp
- We can use the following command to check how RAM is split between the CPU and GPU:
vcgencmd get_mem arm/gpu
- To check the firmware version, we can use the following command:
vcgencmd version
The output of all these commands is a simple text that can be parsed and displayed on a website or stored in a database.