From owner-cvs-all@FreeBSD.ORG Mon Feb 2 12:54:39 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4AE716A4CF for ; Mon, 2 Feb 2004 12:54:39 -0800 (PST) Received: from root.org (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id C6D0A43D4C for ; Mon, 2 Feb 2004 12:54:35 -0800 (PST) (envelope-from nate@root.org) Received: (qmail 23757 invoked by uid 1000); 2 Feb 2004 20:54:36 -0000 Date: Mon, 2 Feb 2004 12:54:36 -0800 (PST) From: Nate Lawson To: Scott Long In-Reply-To: <20040202122040.A30296@pooker.samsco.home> Message-ID: <20040202124426.B23520@root.org> References: <200402021803.i12I3ZJW016336@repoman.freebsd.org> <20040202122040.A30296@pooker.samsco.home> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/acpica acpi_thermal.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 20:54:39 -0000 On Mon, 2 Feb 2004, Scott Long wrote: > Are there any provisions for putting something in the syslog before the > shutdown? At least a series of warnings to the console well before the > shutdown happens would be a good thing. Making sure that those warnings > get fsynced to disk would be even more ideal. But just a spontaneous > shutdown is not terribly helpful. I thought about this and will probably add notification to userland of a _CRT event via devd and then a default devd.conf entry that does "logger -t kern.emerg 'WARNING: critical temperature, shutting down in %d seconds'". This will happen on the 2nd to last _CRT event. It will go to all users via the default syslog.conf setting and will give them a little time to close apps. Currently, a message is printed right before shutting down but it only helps to know why the system suddenly shut down on you. Remember that typical temperatures for this shutdown are 90-100C (200-212F). This is not something you want to delay. If your system maintains that temperature over a period of 30 seconds, you want a shutdown. The parameters are specified by the system designer, who knows what the critical temperature is. -Nate