LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2014, 03:02 PM   #1
zmau
LQ Newbie
 
Registered: Jul 2013
Posts: 19

Rep: Reputation: Disabled
How to hook for overheating ?


Hi!

I would like to have a SW hook to handle the case of overheating.
How can I do it ?

More information:
The system is based on i7.
Linux version is 3.4.47


Thanks
zmau
 
Old 01-26-2014, 03:40 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,687

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
1) What operating system ?
2) what version OS ?
3) CPU or GPU ?
4) what have you tried ?
5 WHAT LANGUAGE do you want to use
c,c++,python,perl,GO,ruby,......
6) through 19 )
anything else we should know

20) server or desktop ?

Last edited by John VV; 01-26-2014 at 03:41 PM.
 
Old 01-26-2014, 03:42 PM   #3
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
if you want to write a simple script you can find some useful commands over here.

btw, it is not 100% clear what you want to achive
 
Old 01-27-2014, 07:17 AM   #4
zmau
LQ Newbie
 
Registered: Jul 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
How to hook for overheating ? clarifications....

Hi!

Thanks for answering.
Eventually the system will be an embedded system (The OS is Linux 3.4.47 with an RT-patch).
The language is C or C++

It's not clear right now if overheating is an issue. So, at the moment I simply want to monitor the temprature.
The idea is simple : if the system overheats do something (Actually send a message for the moment).

I know that the temperature can be seen by "cat /sys/bus/acpi/devices/LNXTHERM\:00/thermal_zone/temp" (See http://www.linuxquestions.org/questi...n-linux-598658)
There are 4 cores so there 4 entries to query. There is also the GPU to query (which I do not know how at the moment).

But how often should I check these fields ? Every second ? Every millisecond ? Every minute ?

So, I thought that a hook will be the best solution.



Thanks
zmau
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hook? imbandol Linux - Newbie 3 05-16-2013 12:54 PM
Overheating Kronus980 Linux - Laptop and Netbook 13 03-07-2012 01:55 AM
[SVN - post-commit hook] hook failed, did not exit cleanly G00fy Programming 0 01-21-2009 02:15 AM
Overheating? khalidrabunrot Linux - Newbie 3 06-01-2006 02:46 AM
p4 overheating JonEberger Linux - Hardware 11 04-15-2005 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration