LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Thread Tools
Old 11-10-2007, 05:28 PM   #1
tduglas
LQ Newbie
 
Registered: Apr 2007
Location: Moscow
Distribution: Debian
Posts: 13
Thanked: 0
Question How to get CPU temperature in linux


[Log in to get rid of this advertisement]
Are there any libraries which allow me to get cpu temperature by simple library call?

Can i programmatically measure the heat dissipatiotion by the cpu?
tduglas is offline     Reply With Quote
Old 11-10-2007, 05:32 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware 12.1, Slackware 13.0
Posts: 3,784
Thanked: 19
Yes to your first question - have a look at http://www.lm-sensors.org/ (although Debian probably provides packages). I'm not sure about the second question...
gilead is offline     Reply With Quote
Old 11-10-2007, 08:10 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :}
Posts: 18,795
Blog Entries: 1
Thanked: 155
If your machine uses ACPI...

cat /proc/acpi/thermal_zone/THM0/temperature


Cheers,
Tink
Tinkster is offline     Reply With Quote
Old 11-11-2007, 04:17 PM   #4
tduglas
LQ Newbie
 
Registered: Apr 2007
Location: Moscow
Distribution: Debian
Posts: 13
Thanked: 0

Original Poster
Post

Quote:
Originally Posted by Tinkster View Post
If your machine uses ACPI...

cat /proc/acpi/thermal_zone/THM0/temperature


Cheers,
Tink
i can only move to /proc/acpi/thermal_zone/.
Linux laptop 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux
tduglas is offline     Reply With Quote
Old 11-12-2007, 04:11 AM   #5
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Puppy
Posts: 2,663
Thanked: 14
take the cover off and put your finger on it
bigearsbilly is offline     Reply With Quote
Old 11-13-2007, 05:28 PM   #6
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 216
Thanked: 0
Quote:
Originally Posted by bigearsbilly View Post
take the cover off and put your finger on it
Writting the man page for that would be way too complicated

Keith
kromberg is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cpu temperature alaios Linux - Hardware 4 09-21-2004 05:30 PM
CPU Temperature in LInux? fedivh Linux - Hardware 9 02-20-2004 04:51 PM
how to get cpu temperature taoweijia Linux - Software 3 02-13-2004 07:04 PM
CPU Temperature Cubiq Programming 3 04-06-2002 12:04 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration