mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Programming

Reply
 
Thread Tools
Old 2005-07-08, 13:27   #1
ndpowell
 
ndpowell's Avatar
 
Jun 2005
Madison, Indiana, U.S.A.

101012 Posts
Question Reading CPU Temperature

Does anyone know of any code that I can place in an app to read the cpu's core temperature sensor?
ndpowell is offline   Reply With Quote
Old 2005-07-09, 10:03   #2
cjohnsto
 
Jun 2005

3·5 Posts
Default

I would be suprised if there is any simple bit of code. I believe it would be processor and motherboard dependant.
cjohnsto is offline   Reply With Quote
Old 2005-07-11, 22:23   #3
Peter Nelson
 
Peter Nelson's Avatar
 
Oct 2004

52910 Posts
Default

It does depend on the chip used on the motherboard.

However there are some common chips that would cover most mobos with this capability.

As for source code to read them....

Well check out the sensors library under linux which I think uses I2C protocol to communicate with the sensor chip. Sometimes different scaling factors are used to calculate temp. There is also GUI monitor to run under KDE which gets figures from sensors.

see
lm-sensors at....

http://secure.netroedge.com/~lm78/

HOWEVER DO *NOT* USE THIS ON AN IBM THINKPAD!!! Read readme about probs so maybe need to detect ibm and exit monitoring if you dont want to lockup user's thinkpad very nastily. This prob doesn't affect other manufacturers.

http://ksensors.sourceforge.net/ (gui reporting of results from lm-sensors)

You are advised to download, compile and install these on a linux box as I have done to become familiar with them.

Now if you are a windows programmer, the reason I have told you this is that you can go get the linux SOURCE code, read through, see what it is doing, what chips it supports and make a few changes to implement the same stuff under windows.

I assume you are trying to implement similar functionality as Motherboard Monitor into your own app. You should also find it possible to monitor temperatures of certain hard drives if you desired to do so.

Your hope to read temperatures is certainly possible. Sorry there is not a simple Windows API call to do so. Wish you every success.

Last fiddled with by Peter Nelson on 2005-07-11 at 22:32
Peter Nelson is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU temperature different when LL than when TF Schamschi Hardware 3 2009-11-17 20:48
LL vs. DC ... am I reading this right? petrw1 PrimeNet 9 2008-12-02 11:57
cpu temperature 80 C_>>is it normal? gh_tino Hardware 8 2007-04-04 05:30
Core2Duos - temperature nucleon Hardware 19 2006-10-04 20:40
How do I check the temperature of the CPU dave_0273 Hardware 4 2003-12-14 23:15

All times are UTC. The time now is 08:19.

Thu Aug 13 08:19:58 UTC 2020 up 4:55, 0 users, load averages: 1.40, 1.73, 1.89

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.