4

I'm new to ubuntu and I'm having some trouble with reading temperatures on my system. I've tried using lm-sensors and psensors by following some guides with no luck. Ive also tried hardinfo which seems really nice and useful, when I use it to monitor my cpy temps I get the following info:

hardinfo sreenshot

Note: The pc has no problems detecting the cores or cpu usage.

When I run hardinfo from terminal I get this message as well:

hardinfo terminal

Related to the matter, but unrelated to ubuntu, the cpu temps on my computer runs really hot when I monitor it through the bios it goes from 35-45 celcius, I'm unsure if this is because the motherboard doesn't read the temperature right or if the cooler paste somehow was spread badly when I mounted my new cooler, it is a corsair 150i pro which comes with pre-applied cooler paste or lastly if the fans on it somehow doesn't spin fast enough (I'm assuming if the system cant read the cpu temperature it cant control the fan speed as necessary).

I understand if the second part is in the wrong forum but I would appreciate if I could get help for both since I think the problems are related.

Thanks in advance.

Edit: I realized the temperature monitoring worked all along, it was just that it had(to me) a strange name - "k10temp_temp1" and there is, apparently, only 1 sensor on my cpu (ryzen 2700x) which was new to me coming from windows and intel.

Mads
  • 43

2 Answers2

1

There are text files containing temperature data here: /sys/devices/platform/coretemp.0/hwmon/hwmon[0-9]

The [0-9] is shown as a variable. There is actually just a single digit number there, that changes from from startup to startup.

I'm running Ubuntu on a Macbook Pro 2009 9dual core processor), and have found these two files to contain my two CPU core temperatures:

cpucoretemp0 -> /sys/devices/platform/coretemp.0/hwmon/hwmon[0-9]/temp2_input

cpucoretemp1 -> /sys/devices/platform/coretemp.0/hwmon/hwmon[0-9]/temp3_input
1

I use an alias to monitor temperature:

$ temp
INT3400 Thermal  20.0°C
SEN1             52.0°C
SEN2             50.0°C
SEN3             57.0°C
SEN4             60.0°C
B0D4             50.0°C
pch_skylake      81.5°C
x86_pkg_temp     50.0°C

Note: pch_skylake is the Thunderbolt port which for some reason is always out of wack. The bottom temperature x86_pkg_temp is the temperature I use for overall system temperature. The first four SEN temperatures (SEN1 through SEN4) are the CPU core temperatures (Intel Quad Cord i7-6700HQ processor).

You can mimic my temp alias by copying and pasting this line into the terminal:

paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/'

Source: How do I get the CPU temperature?