From owner-freebsd-acpi@FreeBSD.ORG Thu Jun 23 15:22:29 2005 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93C5216A41C for ; Thu, 23 Jun 2005 15:22:29 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E01E43D1F for ; Thu, 23 Jun 2005 15:22:29 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([70.18.160.160]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IIJ00KZ1MPFJ7X7@vms044.mailsrvcs.net> for freebsd-acpi@freebsd.org; Thu, 23 Jun 2005 10:22:28 -0500 (CDT) From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <7cd06a2d050623073452e3c3f9@mail.gmail.com> To: Matthew Flanagan Message-id: <1130426516.777.7.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Content-type: text/plain; charset=iso-8859-5 Content-transfer-encoding: 8BIT References: <7cd06a2d05062205331d03372c@mail.gmail.com> <7cd06a2d050623073452e3c3f9@mail.gmail.com> Cc: freebsd-acpi@freebsd.org Subject: Re: Changing temperature threshold X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 23 Jun 2005 15:22:29 -0000 X-Original-Date: Thu, 27 Oct 2005 11:21:56 -0400 X-List-Received-Date: Thu, 23 Jun 2005 15:22:29 -0000 On Thu, 2005-06-23 at 11:34 -0300, Matthew Flanagan wrote: > Hi everyone, > > [I haven't got the needed information from freebsd-questions, so I'm > reposting it here.] > > I`ve installed a FreeBSD 5.4-STABLE and I was building some ports when > suddenly my system shut down. Upon rebooting it and checking > /var/log/messages, I found the following lines: > > Jun 21 16:01:30 bell root: WARNING: system temperature too high, > shutting down soon! > Jun 21 16:01:40 bell kernel: acpi_tz0: WARNING - current temperature > (60.0C) exceeds safe limits > > Then I realized what had happened. My acpi_thermal sysctl's are: > > hw.acpi.thermal.min_runtime: 0 > hw.acpi.thermal.polling_rate: 10 > hw.acpi.thermal.tz0.temperature: 50.0C > hw.acpi.thermal.tz0.active: 0 > hw.acpi.thermal.tz0.thermal_flags: 1 > hw.acpi.thermal.tz0._PSV: 50.0C > hw.acpi.thermal.tz0._HOT: -1 > hw.acpi.thermal.tz0._CRT: 60.0C > hw.acpi.thermal.tz0._ACx: 50.0C -1 -1 -1 -1 -1 -1 -1 -1 -1 > > When I try to raise hw.acpi.thermal.tz0._CRT to 85C (which is the > threshold in the BIOS setup) it doesn't work: > > bell# sysctl hw.acpi.thermal.tz0._CRT=3580 # 3580 tenths of Kelvin=85C > sysctl: oid 'hw.acpi.thermal.tz0._CRT' is read only > > I've tried /etc/sysctl.conf as well, but I get the same error. > > Now, my question is: how do I change this value? I've read several > manpages (acpi(4), acpi_thermal(4), acpiconf(8), loader(8), and many > others) and checked the handbook, to no avail. Can anyone point me > to the right direction? > > Thanks a lot, > Matt > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" One of the ways to deal with that would be to dump your ASL (see Handbook for guidance), find lines which look like: Method (_CRT, 0, NotSerialized) { Return (KELV (0x5d)) } modify them to your liking, compile ASL and override it during boot (instructions on how to compile and override are in Handbook as well). Please, note that actual value returned is in the 1/10th of the degree of Kelvin. Function KELV above has following ASL code associated with it: Method (KELV, 1, NotSerialized) { Store (Arg0, Local1) Multiply (0x0A, Local1, Local1) Add (Local1, 0x0AAC, Local1) Return (Local1) } Thermal management chapter of the ACPI specification should provide you with ample explanation of what this is all about. HTH, -- Alexandre "Sunny" Kovalenko (Олександр Коваленко)