The following tools are useful for monitoring CPU and GPU temperatures in Ubuntu. It helps users automatically monitor CPU and GPU temperatures to ensure that the system runs within the safe temperature range.
Glances is a cross-platform real-time system monitoring tool that uses the psutil library to gather information on various system resources, including CPU and GPU temperatures. It can also remotely monitor Linux servers through web server mode. The following commands can be used to install Glances:
curl -L https://bit.ly/glances | /bin/
or
wget -O- https://bit.ly/glances | /bin/
After starting Glances, press f to view the sensor information.
Sensors is a simple command line tool that displays current readings for all sensor chips, including the CPU. In Ubuntu, lm-sensors can be installed with the following command:
sudo apt-get install lm-sensors
Then run the following command to detect all sensors on the system:
sudo sensors-detect
Finally, use the sensors command to check CPU temperature, GPU temperature, fan speed, voltage, etc.
Hardinfo is a lightweight system analyzer and benchmarking tool for hardware analysis and report generation. It provides a comprehensive report of the system hardware and allows the generation of HTML reports. To install Hardinfo on Ubuntu, use the following command:
sudo apt install hardinfo
After the installation is complete, run the following command to view the device information:
hardinfo -rma devices.so
Or search in the System menu and open "System Profiler and Benchmark" to view sensor information.
i7z is a small command line tool designed to report Intel Core i7, i5, and i3 CPU information, including temperature. To install i7z on Ubuntu, you can use the following command:
sudo apt install i7z
After installation, run i7z with root privileges:
sudo i7z
This displays information about the Intel Core CPU, including temperature.
Psensor is a GTK+ based application that monitors hardware temperature and charts it in real time. It displays the temperature of the motherboard, CPU, GPU (Nvidia), and hard drive, as well as the CPU fan speed. Psensor relies on the lm-sensors and hddtemp packages, both of which must be installed on your system to use Psensor:
sudo apt-get install lm-sensors hddtemp
sudo apt-get install psensor
Once installed, you can run Psensor to monitor the hardware temperature.
For nvidia Gpus, Nvidia-SMI is a command line tool that can be used to monitor the temperature of the GPU. You can use the watch command to monitor the GPU temperature in real time:
watch -n 2 nvidia-smi -q -d TEMPERATURE
This command refreshes the GPU temperature information every two seconds.
These tools can help you effectively monitor the CPU and GPU temperature in your Ubuntu system to ensure that the system is running stably.