LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-18-2010, 03:19 PM   #1
wpost
LQ Newbie
 
Registered: Jul 2004
Location: Comayagua, Honduras
Distribution: Mageia
Posts: 24

Rep: Reputation: 1
Automatic clean shutdown on overheating [SOLVED]


The other day my box uncleanly shut down. It was easy to diagnose, because upon restarting I saw a message telling me of a processor thermal trip. So of course now I'm learning all about how to monitor my hardware and how to run a cooler box.

Aside from my learning, I want to implement a means of cleanly and automatically shutting down the box if the processor overheats. While of course I should keep an eye on the temperature monitor, I also want to be able to leave the box running unattended, secure in the knowledge nothing is going to fry in my absence. Some bells and whistles would be nice -- first try throttling back the processor to avoid the need to shut down, hibernate instead of shut down, watch the hard drive temperature too, notify the user why the box is going down -- but for now I can settle for the basics.

I've googled "+overheat +shutdown +script" but only find other users looking for the same thing I am. I must be looking in the wrong place; I can't believe that this issue hasn't been solved by someone somewhere.

I have lm_sensors and smartmontools giving me temperatures. I use Xfce, but ideally hope to find an environment-agnostic solution. I don't care if the solution is a script or a GUI, and I don't mind learning how to hack someone else's code or even roll my own.

I'm running Mandriva 2008.1, 2.6.26. I'd certainly consider moving up to a more modern release if needed; my box just works so well that so far I've seen no need to change.

Any suggestions as to what I might try to get this working?

Last edited by wpost; 05-28-2010 at 10:13 PM. Reason: Mark as solved
 
Old 05-18-2010, 04:22 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 11,539

Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
I think acpi if the bios and os fully support it can do a clean shutdown.
 
Old 05-18-2010, 05:12 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,012

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
"Overheating" really means "insufficient cooling".

Having the system just shut down, even gracefully when it gets too hot isn't the answer: You need to provide better cooling.

I see you live in Honduras, where it may be very hot, and humid. If you want to run a high powered PC there, you may need to invest in air-conditioning or much more powerful fans in your PC. Otherwise perhaps you can do something as simple as moving your PC to an area with better ventilation.
 
1 members found this post helpful.
Old 05-19-2010, 02:54 PM   #4
wpost
LQ Newbie
 
Registered: Jul 2004
Location: Comayagua, Honduras
Distribution: Mageia
Posts: 24

Original Poster
Rep: Reputation: 1
@tredegar:

You are quite right. My original post is merely the third prong of a three-prong response I am taking: (1) improve cooling, (2) put the temperature and other data on my desktop where I can see it, and (3) do an automatic clean shutdown in an emergency. Points #1 and #2 are the important ones, but #3 will save my butt if (for example) my processor fan fails while the box is running unattended.

Per #1, I opened the case, blew out the dust bunnies, and used compressed air to take care of the embedded dust in the PSU and the processor heat sink that the vacuum couldn't suck off. I pulled the heat sink and replaced the dried out old thermal paste. I rerouted the cables in the case to improve airflow. Noticing that the case lacked an intake fan, I installed one.

The box wouldn't reboot; the root filesystem was damaged by the unclean shutdown. No problem; Mandriva Flash + xfs_repair took care of that. Gory details here; feel free to take a look and let me know if I forgot something:

http://my.opera.com/wpost/blog/xfs-repair

Per #2 I set up lm_sensors, hddtemp, and xfce4-sensors-plugin to watch my temperatures and fans. This is a work in progress; I am still working on a desktop monitor for hard disk temperature. Again, take a look and remind me of anything I may have forgotten to do:

http://my.opera.com/wpost/blog/sensors

Watching my sensors, I notice that the processor's temperature is now in the low 50's doing just about anything, but spikes to the 70's during video playback. My guess is that I have a video driver problem -- something I've long suspected for other reasons -- and I am looking into that.

And of course, the original subject of this thread. Once I get all this done my box should be pretty well protected.

Last edited by wpost; 05-28-2010 at 08:59 AM. Reason: Update URL
 
Old 05-20-2010, 06:29 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,546
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by wpost View Post
Per #2 I set up lm_sensors, hddtemp, and xfce4-sensors-plugin to watch my temperatures and fans. This is a work in progress; I am still working on a desktop monitor for hard disk temperature.
As per your link, I use lmsensors and hddtemp to feed data to GKrellM for display. I use Xfce but chose GKrellM instead of xfce4-sensors-plugin, simply because I was using GKrellM before migrating to Xfce. For each temperature limit, GKrellM can be configured to run a command when it is exceeded.
 
1 members found this post helpful.
Old 05-25-2010, 07:32 PM   #6
wpost
LQ Newbie
 
Registered: Jul 2004
Location: Comayagua, Honduras
Distribution: Mageia
Posts: 24

Original Poster
Rep: Reputation: 1
Thanks catkin, I've switched to gkrellm and am very happy with it. It sees all my hardware and, as you point out, can run commands or scripts on alarm conditions. I'm setting that up now.
 
Old 05-25-2010, 08:54 PM   #7
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 266

Rep: Reputation: 30
Another thing. Constant overheats will shorten the life expectancy of your PC's components pretty fast.
 
1 members found this post helpful.
Old 05-28-2010, 08:56 AM   #8
wpost
LQ Newbie
 
Registered: Jul 2004
Location: Comayagua, Honduras
Distribution: Mageia
Posts: 24

Original Poster
Rep: Reputation: 1
Automatic clean shutdown on overheating [SOLVED]

Answering my own question, but to bring closure to this thread: I have gkrellm monitoring my processor and hard disk temperaures. If a component's temperature reaches its rated maximum, it runs a simple script I wrote that calls pm-hibernate after mailing me the output of lm_sensors and hddtemp for diagnostic purposes.

Details here: http://my.opera.com/wpost/blog/gkrellm

cpuburn shows me that I still have to improve cooling some more, but at least nothing is going to overheat.

Last edited by wpost; 05-28-2010 at 08:57 AM.
 
  


Reply

Tags
hardware, monitor, processor, temperature


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
overheating then sudden shutdown on acer laptop ethereal27 Linux - Laptop and Netbook 9 12-25-2009 06:29 AM
random shutdown... overheating? reakinator Linux - General 4 04-13-2008 10:47 AM
automatic shutdown muhammednavas Fedora 1 12-01-2006 10:48 AM
linux laptop overheating causes shutdown jtan325 Linux - Hardware 6 02-23-2005 09:29 AM
Automatic shutdown NetScripter Linux - General 1 10-17-2002 02:45 PM


All times are GMT -5. The time now is 07:02 AM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration