June 13th, 2009
[Tips] How to make lmsensors read Phenom II CPU Temp ?
Computer Hardware & Software, Software review, Tips & trick, by brigs.![]()
Commonly people like to using lmsensors module to create driver module in kernel level to read thermistor sensors on CPU or other sensors device on the motherboard and GPU. After that we can connecting them with GUI tools like gkrellm or Ksensors. But sadly lmsensors supporting for AMD K10 CPU doesn’t look good even their sensors-detect module can detected and locate the sensors.

Of course you can check lmsensors supporting to other device monitor IC on their website here. K10 user can make little trick to compile a new driver for lmsensors for reading a built-in thermistor sensors in the CPU die. First you must download k10temp.c for source compiling later.
Do the following intruction (root) :
$ mkdir k10temp && mv k10temp.c k10temp/k10temp.c
Create a makefile with the lines :
obj-m := k10temp.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
Example for my kernel is :
obj-m := k10temp.o
KDIR := /lib/modules/2.6.27.21-0.1-default/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
and now you can start compile these node with :
$ make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
$ cp k10temp.ko /lib/modules/$(uname -r)/kernel/drivers/hwmon
$ depmod && modprobe k10temp
Last, don’t forget to put lm_sensors on the startup driver.













Responses to “[Tips] How to make lmsensors read Phenom II CPU Temp ?”
Leave a Reply