Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
4 Useful Tools to Monitor CPU and GPU Temperature in Ubuntu
Ubuntu is one of the most popular and widely used Linux distributions. It is known for its simplicity, reliability, and performance. However, like any other operating system, Ubuntu is not immune to overheating issues. Overheating can lead to a number of problems, such as decreased performance, system crashes, and even hardware damage. Therefore, it is important to monitor the temperature of your CPU and GPU regularly to prevent such issues from occurring.
lm-sensors
lm-sensors is a command-line tool that allows you to monitor temperature, voltage, and fan speed of your CPU, GPU, and other system components. It is a powerful tool that can provide detailed information about your system's hardware.
To install lm-sensors, open terminal and run:
sudo apt-get install lm-sensors
Once installed, detect sensors on your system with:
sudo sensors-detect
Follow the on-screen instructions to configure lm-sensors for your system. After the configuration process is complete, display temperature readings using:
sensors
The output will show detailed temperature information for all detected sensors:
coretemp-isa-0000 Adapter: ISA adapter Package id 0: +42.0°C (high = +100.0°C, crit = +100.0°C) Core 0: +39.0°C (high = +100.0°C, crit = +100.0°C) Core 1: +42.0°C (high = +100.0°C, crit = +100.0°C)
Psensor
Psensor is a graphical tool that displays temperature readings of your CPU, GPU, and other system components in real-time. It provides a user-friendly interface without requiring command-line interaction.
To install Psensor:
sudo apt-get install psensor
Once installed, launch Psensor from the Applications menu. Psensor displays temperature readings in the system tray and provides graphical charts for temperature monitoring over time. You can also configure temperature alerts to notify you when critical thresholds are reached, helping prevent overheating issues.
GNOME System Monitor
GNOME System Monitor is a graphical tool that provides detailed information about processes running on your system. It also displays CPU usage and basic temperature information in real-time.
To launch GNOME System Monitor, open the Activities menu and search for "System Monitor". Click on the Resources tab to view CPU usage graphs and basic temperature readings. While not as detailed as dedicated temperature monitoring tools, it provides a quick overview of system performance and thermal status.
Conky
Conky is a lightweight system monitor that displays system information directly on your desktop. It can show CPU and GPU temperatures along with other system metrics and is highly customizable.
To install Conky:
sudo apt-get install conky-all
Launch Conky by typing conky in the terminal. Conky displays system information on the desktop in real-time. You can customize its appearance and displayed information by editing the configuration file located at ~/.conkyrc. This tool is ideal for users who want persistent temperature monitoring visible on their desktop.
Additional Tools
Hardinfo
Hardinfo is a comprehensive system information and benchmarking tool that includes temperature monitoring capabilities.
sudo apt-get install hardinfo
After installation, launch Hardinfo and click on the "Sensors" tab to view CPU and GPU temperature readings along with other hardware information.
NVIDIA System Settings
For systems with NVIDIA graphics cards, nvidia-settings provides dedicated GPU temperature monitoring and performance data.
sudo apt-get install nvidia-settings
Launch nvidia-settings from the applications menu and navigate to the "GPU 0" section to view detailed GPU temperature and performance metrics.
Tool Comparison
| Tool | Interface | Features | Best For |
|---|---|---|---|
| lm-sensors | Command-line | Detailed hardware info, configurable | Advanced users, scripting |
| Psensor | Graphical | Real-time graphs, alerts | General monitoring |
| GNOME System Monitor | Graphical | Process info, basic temps | Quick system overview |
| Conky | Desktop widget | Highly customizable, persistent | Desktop monitoring |
Conclusion
Monitoring CPU and GPU temperatures is essential for maintaining system stability and preventing hardware damage. The tools covered lm-sensors, Psensor, GNOME System Monitor, and Conky each offer different approaches to temperature monitoring. Choose the tool that best fits your technical level and monitoring needs to keep your Ubuntu system running cool and efficiently.
