Method for monitoring Linux temperature using psensor

  

If the system hardware performance is insufficient, then when playing games or running other software with higher configuration requirements, the system heats up faster, and hardware may burn out, so real-time Monitoring system temperature is very necessary, and psensor is a good system temperature monitoring tool. The following small series will introduce you to the method of using psensor to monitor system temperature.

There are many user-level tools under Linux that can check and monitor the temperature of various system components.

For example, lm-sensors, which can get information from hardware embedded sensors to monitor temperature, voltage, humidity and fans; and hddtemp, which can measure temperature by reading SMART parameters; today We are going to introduce psensor, a front-end graphical interface temperature monitoring tool that visualizes the temperature of multiple hardware devices such as CPU, Nvidia/ATI/AMD graphics cards, and hard drives.

Next, I will describe how to set up psensor to monitor the temperature of CPUs and hard drives.

Installing psensor on a Linux desktop system

Visually displaying system temperature using psensor requires data based on other tools such as lm-sensors and hddtemp. So you need to install both tools while installing psensor.

Installing psensor under Debian or Ubuntu:

$ sudo apt-get install lm-sensors hddtemp psensor

Under Ubuntu, you can also install the latest version of psensor through the PPA repository. :

$ sudo add-apt-repository ppa:jfi/ppa

$ sudo apt-get update

$ sudo apt-get install lm-sensors hddtemp psensor

Installing psensor under Fedora:

$ sudo yum install lm_sensors hddtemp

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

$ wget http://wpitchoune.net/psensor/files/psensor-0.8.0.3.tar.gz

$ tar xvfvz psensor-0.8.0.3.tar.gz

$ cd psensor-0.8.0.3

$ . /configure

$ make

$ sudo make install

Note that due to the support of the GTK3 library, psensor is not compatible with CentOS or RHEL 6 with GNOME2 desktop.

Configuring psensor in Linux

Before starting psensor, you need to configure lm_sensors and hddtemp.

lm_sensors Configuration

Run the following command to configure lm_sensors, and select YES for each item.

$ sudo sensors-detect

This command will probe and detect the sensors embedded in your hardware (including CPUs, storage controllers, I/O chips) and then automatically determine which one in the system The drive module needs to load and monitor its temperature.

Once the sensor detection is complete, you need to add the detected driver modules to the /etc configuration so they can be loaded automatically at boot time.

under Debian or Ubuntu, the detected driving module will be added to the /etc /modules. Under Fedora, driver information is added to /etc/sysconfig/lm_sersors.
Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved