Psensor is a GTK + application tool for monitoring temperature. Its graphical interface shows the temperature of the motherboard, the CPU, the GPU and the hard drives. Also shows the speed of the fans and the CPU utilization. Psensor records the data in real-time charts and issues warnings.
In this tutorial we will learn how to Install Psensor in Linux.
With Psensor you can perform the following functions:
- Checks the temperature of your CPU, hard drive, GPU (NVIDIA) and the entire motherboard.
- Displays the CPU fan speed.
- Checks and prints the CPU usage.
- Displays the temperature data in a diagram.
- Provides alarms at critical temperatures and fan speeds.
Install Psensor under Linux
Psensor relies on two other tools to effectively measure and report CPU temperature. It depends on the following:
lm sensor : Checks and reports the speed of the CPU fan.
hddtemp: This determines the temperature of the hard disk drive.
To get a holistic report, these two tools must be installed.
Debian / Ubuntu distributions
If you’re running Debian 9 and higher, Ubuntu 18.04 and higher, and any newer derivatives of the two, run the APT command as shown to install Psensor and its dependencies.
$ sudo apt install lm-sensors psensor hddtemp
CentOS / RHEL distributions
For RedHat distributions, you must first ensure that the EPEL repository is activated as follows:
$ sudo dnf install epel-release
$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Once EPEL is installed, go ahead and install Psensor and its dependencies as shown.
$ sudo dnf install lm_sensors hddtemp lm_sensors-devel
How to use Psensor
First, scan your system for various hardware monitoring chips or sensors. The command determines which modules are loaded for lm_sensors to work effectively.
$ sudo sensors-detect
This will ask you to allow a variety of sensors to be auto-detected. When prompted, just type ‘YES SIR‘and press ENTER.
Do the same for all prompts.
After discovery is complete, run the following command to view the temperature of various CPU cores
To start displaying the graphics, press the Super key (Windows logo key) and search for Psensor as shown.
Note: Using Gnome Desktop on Ubuntu 20.04
This will start the Psensor temperature monitor as shown. Make sure to check all CPU cores, disk and memory options for graphing.
Make sure you can find the Psensor icon in the menu on the top bar. Click it to see the temperature of various CPU cores, CPU usage, and hard drive temperature.
To edit the sensor settings, click on the ‘Sensor settings‘Options. You can edit various parameters, for example set the alarm thresholds.
In addition, you can configure the display of sensor readings for each component in the menu on the top bar by clicking the ‘Application indicator‘Tab and checking on’Display sensor in the label (experimental)‘ Opportunity.
This will display the temperature readings in the top menu bar as shown.
Installing and using the Psensor tool is a fairly simple task. It provides an overview of the temperature measurement of CPU cores, hard drives and other chipsets, the temperature of which can be measured and recorded. Note that this only works on a physical PC and not on a virtual machine because the components are in a virtual state.