3
votes

I have come across several post to read CPU temperature ad fan speed[ 1, 2], but could not find any post for the 64-bit i7 Intel architecture (quad core) using Linux OS. Can any one point to any article and/or source code that can read individual core temperature and possibly fan speed. I have been going through the performance counters in the intel architecture, I find Chapter 14 to describe the Thermal Monitors for the thermal status informations. Any sample C code to read these information/ registers will be of great help.

1

1 Answers

2
votes

One common way is to read /sys/class/thermal/thermal_zone0/temp.

You can take a look at the source code of i3status which is written in C and is able to display the CPU temperature: print_cpu_temperature.c