Psensor is a GTK+ application tool used to monitor the temperature. Its graphical interface displays the temperature of the motherboard, CPU, GPU, Hard Disk Drives. Additionally shows the rotational speed of fans and CPU usage. Psensor plots the data on real-time charts and raises alerts.
In this tutorial, we learn how to install Psensor in Linux.
Psensor allows you to perform the following functions:
- Checks the temperature of your CPU, hard disk, GPU (NVIDIA), and the entire motherboard.
- Displays the CPU fan speed.
- Checks and prints the CPU usage.
- Plots the temperature data on a chart.
- Provides alarms as a result of critical temperatures and fan speeds.
Install Psensor on Linux
Psensor relies on two other tools to effectively probe and report on the CPU temperature. It depends on the following:
lm-sensor : Probes and reports on the rotation speeds of the CPU fans.
hddtemp: This obtains the hard disk drive temperature.
To get a holistic report, both of these tools need to be installed.
If you are running Debian 9 and later versions, Ubuntu 18.04 and later, 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
For RedHat distributions, you need to , first of all , ensure that EPEL repository is enabled 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, proceed 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 will be loaded for lm_sensors to work effectively.
$ sudo sensors-detect
This is going to request you to allows autodetection of a myriad of sensors. When prompted, simply type ‘YES‘ and hit ENTER.
Do likewise for all the prompts.
Once the detection is complete, invoke the command below to view the temperature of various CPU cores
To start viewing the graphs, press the Super key ( Windows Logo Key ) and search for Psensor as shown.
Note: Using Gnome Desktop on Ubuntu 20.04
This launches the Psensor temperature monitor as shown. Ensure that you check all the CPU cores, hard drive and memory options for graphing.
On the top bar menu, be sure to locate the Psensor icon. Click on it to reveal the temperature of various CPU cores, CPU usage and hard drive temperature.
To edit sensor preferences, click on the ‘Sensor Preferences‘ options. You can edit various parameters, for instance setting up the alarm thresholds.
Additionally, you can configure sensor readings to be displayed on the top bar menu for each component by clicking on the ‘Application Indicator‘ tab and checking on the ‘Display sensor in the label (Experimental)‘ option.
This displays the temperature readings on the top bar menu as shown.
Installing and using the Psensor tool is quite an easy task. It provides an overviews of the temperature reading of CPU cores, Hard drive and any other chipsets whose temperature can be probed and recorded. Be reminded that this only works on a physical PC and not in a virtual machines since the components are in a virtual state.
#Install #Psensor #Linux