Temperature monitoring help

Solution 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

Solution 2:

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?