Monitoring CPU and temperature

Unix & Linux Asked by Zeno Raiser on January 5, 2022

I’m looking for some interfaces to monitor the use of the CPU and the temperature, i have already installed lm-sensors for temp and htop for CPU but i want something that shows them always in real-time in the bar at the top of the screen (the one which says time, battery% ecc.. sorry i don’t know how it is called) so that i shouldn’t always run the mentioned command from the terminal. I have Ubuntu 16.04.

5 Answers

I personally use system monitor extension for Gnome since it's an inbuilt piece of software and doesn't consume too much resources in order to provide hardware information and is a widget on the top panel.

It's also highly customizable so you can set refresh rate per the separate components like cpu, ram, disk, network, etc It also has swap, fan and battery options.

enter image description here

This is my widget on Ubuntu 18.04.03 LTS with Unity, it's configured only to keep in track RAM and Disk read/writes, but you can customize it as you wish, as seen below in the preferences panel

enter image description here

Here you can find more information on how to install and use it

Answered by Deus on January 5, 2022

This is a quick-and-dirty way I use to monitor my system core temperatures.

  • install lm-sensors (if available in repository and can read CPU / GPU temps on respective hardware.
  • install watch

watch repeatedly executes the following command until exited. By default, it refreshes every 2 seconds, but this can be changed using "-n " switch.

In a console window or on cli, execute

  • watch sensors shows temps, refreshes every 2 seconds
  • watch -n 5 sensors shows temps, refreshes every 5 seconds

My output shows:

Every 5.0s: sensors              HOST-NAME: Wed Apr 15 08:13:57 2020

Adapter: ISA adapter
Package id 0:  +45.0°C  (high = +105.0°C, crit = +105.0°C)
Core 0:        +45.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:        +45.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:        +44.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:        +44.0°C  (high = +105.0°C, crit = +105.0°C)

Answered by JTW on January 5, 2022

There are ultilitys in lm_sensors, its all a bit non-intuitive,, fancontrol 1st, then pwmconfig

Answered by Dave Thompson on January 5, 2022

With psensor and real time measurement you need to be careful. I tried the program and I could hear by the fan of my laptop that the system-load created by psensor heated up the CPU non-negligibly. Somehow it prevented the CPU from idling. Now, with psensor de-installed the fan is less active. As the program only measures the temperatures and does not control the fan, at the same noise level the system should be cooler without psensor.

Answered by KarlG on January 5, 2022

The software is called psensor.

There is an option to display the info on the toolbar, as well as in a stand-alone window.

Answered by Vassilis Papanikolaou on January 5, 2022

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP