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.

Back Top

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

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Back Top

icon_wink.gif icon_neutral.gif icon_mad.gif icon_twisted.gif icon_smile.gif icon_eek.gif icon_sad.gif icon_rolleyes.gif icon_razz.gif icon_redface.gif icon_surprised.gif icon_mrgreen.gif icon_lol.gif icon_idea.gif icon_biggrin.gif icon_evil.gif icon_cry.gif icon_cool.gif icon_arrow.gif icon_confused.gif icon_question.gif icon_exclaim.gif 

SEO Powered by Platinum SEO from Techblissonline