A question. Sensors for cpu

I need to monitoring the CPU temperatures. There’s an equivalent for lm-sensors?
Thank you all. Great community.

Hello plinux84,

There is currently no dedicated GUI app that I can find in the App Center.

But from the command line[1], here is an idea:

  1. Open a Terminal app

  2. Get the list of hardware monitor

$ ls -1 /sys/class/hwmon
hwmon0
hwmon1
hwmon2
hwmon3
hwmon4
hwmon5
hwmon6
  1. Find the hwmon interface for the processor
$ cat /sys/class/hwmon/hwmon*/name
AC
acpitz
BAT0
pch_skylake
thinkpad
coretemp
iwlwifi_1
  1. Get the list of core temperatures
$ cat /sys/class/hwmon/hwmon*/temp*_input
65000
65000
63000

From my observation, the first temp0_input should be the overall processor temperature.

temp[1-*]_input Temperature input value. Unit: millidegree Celsius [2]

  1. And then if you want to watch this command every 1-second use this command:
$ watch -n1 cat /sys/class/hwmon/hwmon*/temp*_input

Should be a fairly quick way to get the temperature readings of the machine.

Reference:

  1. hardware - How do I get the CPU temperature? - Ask Ubuntu
  2. https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface
1 Like

Great solution EndlessYung!! THANK YOU so much EndlessYung! It works. In my case was hwmon1.
Have a nice day (in italy now 07:20 AM) :grin:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.