Monitor CPU and GPU Temperature in Raspberry Pi

Here's how to keep an eye on the CPU and GPU temperature of your Raspberry Pi in both GUI and command line.
Warp Terminal

Heating is one of the most common issues in all the single board computers like Raspberry Pi.

Keeping an eye on the CPU temperature could be one way to determine why your Pi is lagging or acting slow.

πŸ“‹
This tutorial has been performed on a Raspberry Pi 5 running Raspberry Pi OS. And hence it uses the tools provided by Raspberry Pi.

I'll be discussing two ways of monitoring the CPU and GPU temperature on a Raspberry Pi running the Raspbian OS:

  • Monitor the temperature with an applet on the top panel (for desktop systems with GUI)
  • Monitoring the temperature in command line (suitable for all systems)

Let's see them one by one.

⚠️
Raspberry Pi uses a system on chip (SoC) from Broadcom which consists of an ARM processor (CPU) and an on-chip GPU. In simpler words, the chip has both CPU and GPU in it. Raspberry Pi provides utilities that show the temperature for this SoC. You can take that as the temperature of both CPU and GPU.

Method 1: Monitoring Raspberry Pi CPU and GPU temperature using GUI tool

If you are using your Raspberry Pi as a desktop system with Raspbian OS, you can add a handy applet to the top of your screen. It will show you the current CPU (actually the SoC) temperature.

Here are the steps.

Right click on an empty space on the top panel.

Add top panel plugin in Raspberry Pi

Since most people are concerned with CPU temperature, it is named as CPU Temp even though it shows the temperature of the SoC (that houses both CPU and GPU).

Select CPU Temp and click on Add to right and hit the OK button.

Add CPU temperature to the top panel in Raspberry Pi

The 'Add to right' means it will be added to the right most corner of the panel. This is where you would want it anyway. CPU and GPU will show the CPU and GPU usage respectively (if you want that as well in the top panel).

Now, you should start seeing the temperature of your processor chip:

Showing the CPU temperature in Raspberry Pi
The SoC temperature changes continually

Right click on the applet and you can configure it to some extent.

Raspberry Pi top plugin configuration

You can change the colors of the applet or of critical points such as CPU frequency cap or temperature threshold.

Options for changing the CPU temperature monitoring

Pironman 5 Case With Tower Cooler and Fan

This dope Raspberry Pi 5 case has a tower cooler and dual RGB fans to keep the device cool. It also extends your Pi 5 with M.2 SSD slot and 2 standard HDMI ports.

Explore Pironman 5

Method 2: Monitoring Raspberry Pi GPU and CPU temperature in the command line

Raspberry Pi has a dedicated command line utility, vcgencmd, that shows various aspects of the Broadcom SoC, including its core temperature.

To see the current temperature of the system on chip (that consists of both CPU and GPU), use this command:

vcgencmd measure_temp

It will show an output like:

temp=52.3'C

Now, it's a one time command. But if you want to monitor the CPU temperature at a regular interval, you can use the watch command:

Let's say you want to monitor the chip temperature every 2 seconds. Use it in this fashion:

watch -n 2 vcgencmd measure_temp

And now it you'll see the current temperature value changes at every two seconds:

Every 2.0s: vcgencmd measure_temp  raspberrypi: Mon Jan 29 16:25:27 2024

temp=53.0'C

By the way, if you are seeing your screen filled up with YYYYYY while using the watch command, change the locale and use a UTF-8 one. That happened with me on my new Raspberry Pi 5.

Conclusion

Monitoring your CPU temperature is important in Raspberry Pi. If you find that your Pi is heating up frequently, you may want to invest in a heat sink or cooler of some sort (Amazon affiliate link) to reduce the SoC temperature.

GeeekPi Active Cooler for Raspberry Pi 5

This Armor Lite V5 Aluminum Heatsink supports PWM speed regulation, which is perfectly compatible with Raspberry Pi OS. With 3510 ultra-quiet cooling fan and thermal pads, it can lower the temperature of Raspberry Pi Board quickly.

This is an affiliate link, which means we get a tiny part of the purchase.

Get it on Amazon

You may also use other Linux commands like sensors (package lm-sensor has to be installed) for measuring CPU temperature.

Enjoy your Pi and don't hesitate to use the comment section for your questions, suggestions or thank-yous πŸ˜„

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries πŸ•΅οΈβ€β™‚οΈ

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.