This quick tutorial shows you how to check CPU temperature in Ubuntu and other Linux distributions with a help of a tool called Psensor.
Overheating of laptops is a common issue one faces these days. Monitoring hardware temperature may help you to diagnose why laptop is getting overheated. In this article, we’ll see how to check CPU temperature in Ubuntu.
Check CPU temp with Psensor GUI tool
We are going to use a GUI tool Psensor that allows you to monitor hardware temperature in Linux. With Psensor you can:
- monitor the temperature of the motherboard and CPU sensors
- monitor the temperature of the NVidia GPUs
- monitor the temperature of the Hard Disk Drives
- monitor the rotation speed of the
fans monitorthe CPU usage
The latest version of Psensor also provides applet indicator for Ubuntu and thus it makes the monitoring of hardware temperature even easier in Ubuntu. You can choose to display the temperature right in the top panel itself. It even sends a desktop notification when the temperature exceeds the limit.
Install Psensor in Ubuntu 18.04 and 16.04
Before you install Psensor, you need to install and configure lm-sensors, a command line utility for hardware monitoring. If you want to measure hard disk temperature, you need to install hddtemp as well. To install these tools, run the following command in a terminal:
sudo apt install lm-sensors hddtemp
Then start the detection of your hardware sensors:
To make sure that it works, run the command below:
It will give you an output like:
Adapter: Virtual device
temp1: +43.0°C (crit = +98.0°C)
Adapter: ISA adapter
Physical id 0: +44.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +41.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +40.0°C (high = +100.0°C, crit = +100.0°C)
If everything seems alright, proceed with the installation of Psensor by using the command below:
sudo apt install psensor
Once installed, run the application by looking for it in Unity Dash. At first run, you should configure on what stats do you want to collect in Psensor.
Display temperature in the panel
If you want to show the temperature in the top panel, go to Sensor Preferences:
Then under the Application Indicator menu, select the component for which you want to display the temperature and then check the Display sensor in the label option.
Start Psensor at each start up
Go to Preferences->Startup and the check Launch on session startup to start Psensor at each boot.
That’s it. All you need to monitor and check the CPU temperature is here. You can keep an eye on it and it may help you find out which process is overheating your computer.
If you prefer command line, you can use a few commands to monitor the GPU and CPU temperature in Linux terminal. There are terminal based tools like s-tui as well that let you monitor the CPU utilization in a fancy way.
However do note that many times, it’s the hardware that causes overheating. If you use a desktop computer, you should regularly clean it. You can refer to this article about reducing CPU temperature.
I hope you find this article useful. Please take a moment to share the article on social media, Hacker News and other such websites. Thank you.