How To Monitor Computer Hardware in Ubuntu

When we handle Linux environments such as Debian or Ubuntu, we have various tools that will facilitate the supervision and control of hardware resources of computers, but today we want to talk about a special one that will be of great help for our tasks: Sensors.

What is lm-sensors?

Lm-Sensors is a free open source tool that gives us a complete report on the status of all the hardware components of the Ubuntu or Debian computers and in this way has information detailed of each of these to, in this way, know what actions to take for the correct performance of the team. Thanks to lm-sensors we can access the following:

  • Display the temperature of the equipment
  • See the speed of the fans, etc

Installing lm-sensors in Ubuntu

For this tutorial, we will use Ubuntu 16.04. First, we will use the sudo apt-get update command to update all the operating system libraries.

Once this step is done, we proceed to install lm-sensors and use the following command:

sudo apt-get install lm-sensors

Detect the built-in sensors in Ubuntu

This point is vital before using the tool for the first time since it will allow lm-sensors to detect each active sensor of the system and in this way to obtain concrete and true information of each component in real time.

To execute this detection we will enter the following command:

sudo sensors-detect

We see that the tool detects the manufacturers of some of the main components.

In the final part of the evaluation we will see a series of questions associated with whether we want to perform the scan in all the components of the system, we will answer YES to all these questions.

  • Board
  • Processor
  • Kernel kernel, etc.

In the first question we are told about the CPU jumpers , when accepting the scan we will see the following result:

The next question is associated with the input and output chips, by selecting YES we will see the result of the scan.

When we approve all these questions, the results will be stored in the path /etc/modules.

Start the service in Ubuntu

Once we have configured these parameters we will use the following command to start the service:

service kmod start

How to use Im-sensors in Ubuntu

Once we have started the service just enter the term sensors in the console to get detailed information about the components of Ubuntu 16:

We can see the information with the temperature of each processor, the speed in RPM (revolutions per minute) of each fan, etc. Basically with lm-sensors we have complete information of the active sensors in the operating system.

We can install a series of front-ends, depending on the graphic environment of each distro, to have an access to the information in a graphic way and not by terminal.

  • Simply install the package (in bold) using the terminal:
  • GNOME environments we will use the front-end sensors-applet
  • KDE, we will use the ksensors package
  • XFCE environments we will use the xfce4-sensors-plugin package
  • For the lm-sensors interface we can use the xsensors package

As we have been able to understand, lm-sensors is a great help for the whole issue of temperature and speed monitoring of both the processors and the fans and this is vital since a processor with overheating affects all the operation and stability of the system.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *