From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-52124-garchives=archives.gentoo.org@gentoo.org>)
	id 1GTemp-0003XH-Hm
	for garchives@archives.gentoo.org; Sat, 30 Sep 2006 13:21:47 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8UDJwOF019006;
	Sat, 30 Sep 2006 13:19:58 GMT
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184])
	by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8UDDpUh002740
	for <gentoo-user@lists.gentoo.org>; Sat, 30 Sep 2006 13:13:51 GMT
Received: by nf-out-0910.google.com with SMTP id n15so1271307nfc
        for <gentoo-user@lists.gentoo.org>; Sat, 30 Sep 2006 06:13:51 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=NCGQuQZHjJM3tCwnSf/nxp98+aGGS5MxZjqnAoVwrAfVuBzXzriOXYuSqXfiueP2eFRAevv4mgPeauC1Ok3cNXnWt2YkO9UPU0ZVye+n3VgnV6CmmFFh2lIiUVxG2iBvgReaiMWBTLvpMrhRhFt2N61/C5TVqcoEmQC+iucvCqY=
Received: by 10.48.210.20 with SMTP id i20mr6618576nfg;
        Sat, 30 Sep 2006 06:13:51 -0700 (PDT)
Received: by 10.49.23.15 with HTTP; Sat, 30 Sep 2006 06:13:51 -0700 (PDT)
Message-ID: <342e1090609300613x2a7e52aeoc9a4f4aeae8eda31@mail.gmail.com>
Date: Sat, 30 Sep 2006 10:13:51 -0300
From: "Daniel da Veiga" <danieldaveiga@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT overheat] How to cause shutdown on overheat
In-Reply-To: <87r6xtmtwf.fsf@newsguy.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <87r6xtmtwf.fsf@newsguy.com>
X-Archives-Salt: bf2b414c-af9d-4d1e-9f1f-2188167f559e
X-Archives-Hash: 3be71c3a55a95df6bb85dec8c59bc3f0

On 9/30/06, reader@newsguy.com <reader@newsguy.com> wrote:
> Group, I recently built a ventilated stucture around my 4 desktops to
> try to quiet things down and get rid of the heat.
>
> I made no provision for forced shutdown in case of overheat, which is
> quite likely to happen if, for example the main ventilation fan went
> down for some reason.
>
> Well, that happened due to stupidity on my part with getting used to
> the new setup.  I fired up a computer and neglected to turn the fan
> on.  Then left it running overnight.
>
> Well, given the confined space and very little/no ventilation (of my
> homemade structure) the computer got hot...
>
> Sometime this morning I see syslog messages written to tty that say:
>
>   Message from syslogd@reader at Sat Sep 30 04:41:32 2006 ...
>   reader kernel: CPU0: Temperature above threshold
>
>   Message from syslogd@reader at Sat Sep 30 04:41:32 2006 ...
>   reader kernel: CPU0: Running in modulated clock mode
>
> [...]
>
> Some kind of attempt by kernel to cool things down.  But will it
> actually shutdown if it gets dangerously hot?
>
> Further, how can I discover what temperatures were involved when this
> happened?
>
> Or can I set something to make a shutdown happen at a specific
> temperature?
>
> A nicer solution would be somekind of added stand alone temperature
> monitor in the enclosure that causes a controlled shutdown like one
> gets with `shutdown -h now'.
>
> Anyone here with some experience in this kind of thing that can steer me
> to some good information?
>

If you have built your kernel with ACPI options for THERMAL or some
kind of frequency changer, you can use a daemon like cpufreqd to
monitor the temperature and take actions like reduce the clock and
voltage to avoid damage to the processor.

http://www.gentoo.org/doc/en/power-management-guide.xml

When my computer reaches the limit (wich in my case is 73 degrees C)
it automatically shutdown, I didn't have to configure anything, it is
builtin with the thermal ACPI module. I'm talking about a Pentium IV
Northwood here, and they tend to get really hot. It used to happen to
my Athlon XP also... To monitor the temperature, you can read the
/proc entries created by ACPI, for example
/proc/acpi/thermal/TZ0/info.

-- 
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------
-- 
gentoo-user@gentoo.org mailing list