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!

Related Questions

How to validate a line if followed by a specifc line?

2  Asked on December 29, 2020 by user441539


LightDM: how to distinguish users with the same name?

2  Asked on December 29, 2020 by maddin25


Making bit identical ext2 filesystems

4  Asked on December 28, 2020 by jhufford


Which installed software packages use the most disk space on Debian?

9  Asked on December 28, 2020 by mirzhan-irkegulov


How to force ddclient to use only HTTPS?

0  Asked on December 28, 2020 by mountainx


How to execute a script after every systemd automount?

1  Asked on December 27, 2020 by john-wh-smith


How to detect and clean up junk journal files?

1  Asked on December 27, 2020 by reinierpost


ARM LXC Container template

2  Asked on December 27, 2020 by bulkmoustache


Updating kernel: vmlinuz in /boot not being created by DNF

4  Asked on December 26, 2020 by big-millz


Samba shared folder with setgid problem

1  Asked on December 24, 2020 by alex-forencich


Ask a Question

Get help from others!

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