Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262344AbTK1Ozi (ORCPT ); Fri, 28 Nov 2003 09:55:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262360AbTK1Ozi (ORCPT ); Fri, 28 Nov 2003 09:55:38 -0500 Received: from gprs148-17.eurotel.cz ([160.218.148.17]:898 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S262344AbTK1Ozb (ORCPT ); Fri, 28 Nov 2003 09:55:31 -0500 Date: Fri, 28 Nov 2003 15:55:58 +0100 From: Pavel Machek To: ACPI mailing list , kernel list , len.brown@intel.com, Rusty trivial patch monkey Russell Subject: Tell user when ACPI is killing machine Message-ID: <20031128145558.GA576@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1128 Lines: 30 Hi! On critical overheat (or perceived critical overheat -- acpi bioses on some notebooks apparently report bogus values from time to time), kernel itself calls /sbin/halt *without telling anything*. User can not see anything, his machine just shuts down cleanly. Bad. We should at least tell the user what is going on... Pavel --- clean/drivers/acpi/thermal.c 2003-07-27 22:31:09.000000000 +0200 +++ linux/drivers/acpi/thermal.c 2003-11-25 22:27:11.000000000 +0100 @@ -467,6 +474,7 @@ if (result) return_VALUE(result); + printk(KERN_EMERG "Critical temperature reached (%d C), shutting down.\n", tz->temperature); acpi_bus_generate_event(device, ACPI_THERMAL_NOTIFY_CRITICAL, tz->trips.critical.flags.enabled); acpi_thermal_call_usermode(ACPI_THERMAL_PATH_POWEROFF); -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/