Psensor – A Graphical Hardware Temperature Monitoring Tool for Linux

Psensor is a GTK+ (Widget Toolkit for creating Graphical User Interface) based application software. It is one the simplest application to monitor hardware temperature and plot Real Time graph from the obtained data for quick review.

Linux Hardware Temperature Monitoring
Psensor – Linux Hardware Temperature Monitoring

Features of Psensor

  1. Show Temperature of motherboard, CPU, GPU (Nvidia), Hard Disk Drives.
  2. Show CPU fan speed.
  3. Psensor is capable of showing remote server Temperature and Fan Speed.
  4. Show CPU usages, as well.
  5. Infact Psensor will detect any supported Hardware and report the Temperature as text and over graph, automatically.
  6. All the temperatures are plotted in one graph.
  7. Alarms and Alerts ensures you don’t miss a critical System Hardware Temperature and Fan Speed related issues.
  8. Easy to Configure. Easy to use.


  1. lm-sensor and hddtemp: : Psensor depends upon these two packages to get the reports about temperature and fan speed.
  2. psensor-server : It is an optional package, which is required if you want to gather information about Remote Server Temperature and Fan Speed.

Installation of Psensor in Linux

1. As I said above that Psensor program depends on lm-sensor and hddtemp package and these two packages must installed on the system in order to install Psensor.

Both these two packages are available in the official repository of most of the standard Linux distributions, but in RedHat/CentOS based systems, you need to install and enable epel-release repository to get these packages.

On Debian, Ubuntu and Mint

# apt-get install lm-sensors hddtemp

On RedHat, CentOS and Fedora

# yum install epel-release 
# yum install lm_sensors lm_sensors-devel hddtemp

Note: If you are using Fedora 22, replace yum with dnf in above command.

2. Once these two dependencies installed on the system, you can install Psensor on Debian alike systems using following commands.

# apt-get install psensor

Unfortunately, on RedHat alike systems, Psensor isn’t available from the default system repository, and you need to compile it from source as shown below.

# yum install gcc gtk3-devel GConf2-devel cppcheck libatasmart-devel libcurl-devel json-c-devel libmicrohttpd-devel help2man libnotify-devel libgtop2-devel make 

Next, download the most recent stable Psensor (i.e version 1.1.3) source tarball and compile it using following commands.

# wget 
# tar zxvf psensor-1.1.3.tar.gz 
# cd psensor-1.1.3/ 
# ./configure 
# make 
# make install

3. Install Psensor Server – optional. It is required only if you want to see the temperature and fan speed of remote server.

# apt-get install psensor-server

Note: That the Psensor Server package is only available under Debian alike systems, there isn’t any binary or source packages available for RedHat systems.

Testing and Usage of Psensor

4. It is optional but suggestive step you should follow. Run sensors-detect, as root to diagnose the hardware’s by sensors. Every Time Type the default option ‘Yes’, until you know what you are doing.

# sensors-detect
Detect Sensors
Detect Sensors

5. Again Optional but suggestive setup you should follow. Run sensors, as root to display the temperature of various Hardware Devices. All these Data will be used for Psensor.

# sensors
Check Temperature Hardware
Check Temperature Hardware

6. Run Psensor, from the desktop Application Menu to get the graphical view.

Temperature Hardware Monitoring
Temperature Hardware Monitoring

Check mark all the Sensors to plot graph. You may notice the color codes.

Plot Graphs of Hardware Temperature
Plot Graphs of Hardware Temperature

Customize Psensor

7. Go to Menu PsensorPreferencesInterface. From here, you can have options for Interface related customization, Temperature Unit and Sensor table Position.

Psensor Interface Customization
Psensor Interface Customization

8. Under Menu PsensorPreferencesStartup. From here, you can configure Launch/Hide at Startup and Restore Window Position and Size.

Control Psensor
Control Psensor

9. Under the Hood Graph (PsensorPreferencesGraph), you may configure Foreground/Background Color, Monitoring Duration, Update Interval, etc.

Psensor Graph Customization
Psensor Graph Customization

10. You may configure Sensors Settings under (PsensorPreferences → Sensors).

Sensors Settings
Sensors Settings

11. The last tab (PsensorPreferencesProviders) provides you with Enable/Disable configuration for all the sensors.

Psensor Configuration Control
Psensor Configuration Control

You may do sensor Preferences under (PsensorSensor Preferences).

Give Sensor Name
Give Sensor Name
Give Sensor Color
Give Sensor Color
Set Sensor Threshold
Set Sensor Threshold
Enable Sensor Indicator
Enable Sensor Indicator


Psensor is a very useful tool which lets you see those gray areas of system monitoring which is often overlooked upon i.e., Hardware temperature monitoring. A over heating Hardware may damage that particular hardware, other hardware in the surrounding or may crash the whole system.

No, I am not thinking from financial perspective. Think of the value of Data that might loose and the cost and time it will take to build the system again. Hence it is always a good idea to have a tool like Psensor beside ourselves to avoid any such risk.

Installation on Debian alike system is pretty simple. For CentOS and alike System, installation is a bit tricky.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

13 thoughts on “Psensor – A Graphical Hardware Temperature Monitoring Tool for Linux”

  1. I got this working today in Fedora 31, with a bit of effort. I had some false starts when I overlooked what turned out to be critical “warnings” in the configure script. Your instructions on which headers to install were helpful, but in order to compile it, I also had to tweak the sources that I obtained from

    The issue with the sources is a reference to “is_error“, a macro that can be found in old versions of the json-c library. Newer versions have dropped it, including apparently whichever version my compiler was pulling in.

    The latest official release of psensor was version 1.2.0, sometime in 2017. The code does still receive updates, including what appears to be a fix for the “is_error” issue, contributed a few months ago by Matheus Teixeira, then merged to master last month.

    My advice to anyone who is compiling this for RedHat/Fedora/etc.:

    1. Read the output of “./configure” carefully. There may be a warning that just says “psensors will not be built“.

    2. If you get complaints at compile-time, saying “undefined reference to `is_error’“, try cloning the psensor repo from gitlab and compiling this commit: abf3533d — it’s the one where the is_error fix is merged.

  2. I’m really struggling with this. Linux newbie, wanting to troubleshoot unexplained shutdowns. Running Debian GNU/Linux 9 (stretch) 64-bit. Could find no clues in log files, so I figured monitoring CPU temp might help.

    Had to download/install compiler to get this far. Now I keep getting this error at the ‘# make’ step:

     In file included from ./hdd.h:23:0,
                     from hdd_hddtemp.c:37:
    ./psensor.h:22:29: fatal error: sensors/sensors.h: No such file or directory

    What do I need to do?

  3. I love psensor and use it on all of my computers, especially my 5 laptops. I would like to use the shutdown feature script but I havent been able to get it to work. If anyone has a script/template that I can use on my Linux machines, I’d be very grateful.

    I also need to know where the sensor log files are located and if I can move them to another location so that other Administrators can have access to them?

  4. Thank you for the nice article. Is it possible to display an alert and shutdown the system when the temperature goes beyond certain predefined level?

    Synaptic package manager in Ubuntu contains psensor, psensor-common, psensor-server (version 1.1.3-2ubuntu3),

    hope i can mark and install with this version also.

    • saw the alert facility, no idea about optimal threshold temperature in terms of value for various cores, cpu usage, free memory, hdd. thanks.

  5. Very nice article that I used on my F23. However, please add a missing package in Step 2 for Fedora/Redhat/CentOS to include “yum install lm_sensors-devel” as the make command was complaining about a missing header file.

    • @Naveej,

      Thanks for finding this article useful and also thanks for point out that missing dependency about lm_sensors-devel package, as per your suggestion, we’ve updated the article..


Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.