LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Monitoring CPU temp (https://www.linuxquestions.org/questions/linux-hardware-18/monitoring-cpu-temp-436803/)

BobNutfield 04-19-2006 01:18 PM

Monitoring CPU temp
 
Hi everyone,

Just a quick question for anyone who knows....

I want to monitor the temperature of my CPU while in Linux. My motherboard (nForce w/Award bios) has this feature along with monitoring CPU fan speed. I have searched the net (and these forums) and learned about lm_sensors, which I installed, and a front end called GKllM. I installed lm_sensores and went through the sensor_detect routine and it found the board I2C eeprom, but nothing else happened and when I run "sensors", I get "no sensors found".

My question is: Since the motherboard bios is constandly monitoring this data, is there a way to access this information directly from the BIOS within Linux, or is some additional hardware necessasry?

Any help appreciated.


Bob

Wells 04-19-2006 01:37 PM

lm_sensors does actually access the information from the BIOS. The problem I have seen recently, at least with our new boards, is that lm_sensors has not quite caught up with a number of the new BIOS chipsets, and therefore while it detects them, does not know what to do with them.

BobNutfield 04-19-2006 01:51 PM

Thanks for the information, which is what I suspected because the sensors-detect routine seemed to find everything OK. Just though there might be something I didn't know about built into Linux that might access BIOS data directly.

There is a gadget for SuperKaramba in KDE which monitors CPU temp but I assume it also uses lm_senosrs somehow. But that is in Fedora only, I believe, and I wanted to do it in Slackware anyway.

Oh, well, just have to reboot to check, I guess.

Thanks for your help.

Bob

Wells 04-19-2006 01:55 PM

One thing to do is to keep an eye out for updates for lm_sensors and kernel updates. It will very likely get into the stream eventually, it just hasn't done so yet.

BobNutfield 04-19-2006 02:17 PM

I have found tons of little desktop applets for Gnome and KDE that will do this, but virtually all of them use lm_sensors, so I guess it is pointless to download any of them.

Thanks

Bob

kg4ysy 04-19-2006 02:58 PM

modprobe thermal

if you don't have this module, then you may want to consider recompiling...it will update a file /proc/acpi/thermal/CPUx/state with the current temperature.

I wrote a simple python script that will go into that file and do some stuff with it and print it out. I have the script in case you may be interested. Try modprobing thermal and see if it works

peligrorice 08-27-2007 07:55 PM

Maybe stupid, maybe too obvious
 
FYI: I received the same messages as you did above "no sensors detected" when lm_sensors was not running. This may be just simple enough to have easily missed:

/etc/rc.d/init.d/lm_sensors start


All times are GMT -5. The time now is 10:10 PM.