From owner-freebsd-acpi@FreeBSD.ORG Mon Jun 20 11:01:44 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 8E59916A41C for ; Mon, 20 Jun 2005 11:01:44 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60D4B43D49 for ; Mon, 20 Jun 2005 11:01:44 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5KB1i1e011328 for ; Mon, 20 Jun 2005 11:01:44 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5KB1hCa011322 for freebsd-acpi@freebsd.org; Mon, 20 Jun 2005 11:01:43 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 20 Jun 2005 11:01:43 GMT Message-Id: <200506201101.j5KB1hCa011322@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: , X-List-Received-Date: Mon, 20 Jun 2005 11:01:44 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/07/22] i386/54756 acpi ACPI suspend/resume problem on CF-W2 lapt o [2003/08/17] i386/55661 acpi ACPI suspend/resume problem on ARMADA M70 o [2003/08/20] kern/55822 acpi No ACPI power off with SMP kernel o [2003/08/27] kern/56024 acpi ACPI suspend drains battery while in S3 o [2003/09/03] i386/56372 acpi acpi don't work on TYAN tiger100 M/B f [2003/09/10] kern/56659 acpi ACPI trouble on IBM ThinkPad X31 f [2003/12/17] i386/60317 acpi FreeBSD 5.2rc1 doesn't boot with ACPI ena f [2004/03/02] kern/63666 acpi [acpi] Network card 3c575B do not work af o [2004/03/09] i386/64002 acpi acpi problem o [2004/05/27] i386/67273 acpi [hang] system hangs with acpi and Xfree o [2004/10/12] i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Arma o [2005/03/21] i386/79080 acpi acpi thermal changes freezes HP nx6110 o [2005/03/21] i386/79081 acpi ACPI suspend/resume not working on HP nx6 13 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2004/01/22] i386/61703 acpi ACPI + Sound + Boot = Reboot o [2004/03/17] kern/64365 acpi ACPI problems f [2004/05/25] i386/67189 acpi ACPI S3 reboot computer on Dell Latitude o [2004/05/28] kern/67309 acpi zzz reboot computer (ACPI S3) f [2004/06/23] i386/68219 acpi ACPI + snd_maestro3 problem o [2004/07/29] i386/69750 acpi Boot without ACPI failed on ASUS L5 o [2004/11/11] i386/73822 acpi acpi / thermal support o [2004/11/11] kern/73823 acpi acpi / power-on by timer support o [2004/11/17] kern/74030 acpi Unplugging AC causes battery % to stay lo o [2004/11/21] kern/74215 acpi [request] add ACPI headers to /usr/includ o [2005/05/09] kern/80815 acpi ACPI(pci_link) problem in 5.4-STABLE: TIM 11 problems total. From owner-freebsd-acpi@FreeBSD.ORG Mon Jun 20 16:47:41 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 21EBF16A41C; Mon, 20 Jun 2005 16:47:41 +0000 (GMT) (envelope-from ybfsskridgaeas@fusemail.com) Received: from 195-23-251-145.net.novis.pt (195-23-251-145.net.novis.pt [195.23.251.145]) by mx1.FreeBSD.org (Postfix) with SMTP id 69CBC43D4C; Mon, 20 Jun 2005 16:47:16 +0000 (GMT) (envelope-from ybfsskridgaeas@fusemail.com) Received: from tinker.bruitconcertina.ajar.com.cl (Chupfix) with ESMTP id F54303BD55 for ; Mon, 20 Jun 2005 09:47:13 -0800 Date: Mon, 20 Jun 2005 09:47:13 -0800 From: "Kristen Carey" Message-ID: To: sobomax@freebsd.org X-Mailer: Mew version 3.2 on Emacs 21.3 / Mule 5.1 X-Virus-Scanned: by AMaViS perl-11 Cc: ceri@freebsd.org, nectar@freebsd.org, freebsd-acpi@freebsd.org, gallatin@freebsd.org, freebsd-newbies@freebsd.org Subject: Meet locals who just want sex 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: , X-List-Received-Date: Mon, 20 Jun 2005 16:47:41 -0000 There is this free date site filled with tons of sexoholics. No flowers, no "walks on the beach", just meet up for... you know :) There are also some people who want something more serious though So if you want a long-termer, or a one-nighter, you got it ;) Whatever floats your boat pretty much! http://www.get-some-action.net/ From owner-freebsd-acpi@FreeBSD.ORG Thu Jun 23 14:34:31 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 D5E1F16A41C for ; Thu, 23 Jun 2005 14:34:31 +0000 (GMT) (envelope-from flanagan.matt@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9270E43D48 for ; Thu, 23 Jun 2005 14:34:31 +0000 (GMT) (envelope-from flanagan.matt@gmail.com) Received: by zproxy.gmail.com with SMTP id 16so54327nzp for ; Thu, 23 Jun 2005 07:34:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VaaRM2RKbT6DzZ6r38Rt6na+WieZirrDC8BKIcHES4dQ8UUNcZyB5rtNAIAfLPscKFeTzkgu61Fn4bwrYYSxOpe+PhxjN9mzt1ywO9Irto4lWqXOG4ReMT35iAmQj3jDGQ5+EUmqPhlni8QXb2qMhslZlVf1TNN2QBWXtXxvwqk= Received: by 10.36.43.17 with SMTP id q17mr1319845nzq; Thu, 23 Jun 2005 07:34:30 -0700 (PDT) Received: by 10.36.126.4 with HTTP; Thu, 23 Jun 2005 07:34:30 -0700 (PDT) Message-ID: <7cd06a2d050623073452e3c3f9@mail.gmail.com> Date: Thu, 23 Jun 2005 11:34:30 -0300 From: Matthew Flanagan To: freebsd-acpi@freebsd.org In-Reply-To: <7cd06a2d05062205331d03372c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7cd06a2d05062205331d03372c@mail.gmail.com> Subject: Changing temperature threshold X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthew Flanagan List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2005 14:34:31 -0000 Hi everyone, [I haven't got the needed information from freebsd-questions, so I'm=20 reposting it here.] I`ve installed a FreeBSD 5.4-STABLE and I was building some ports when=20 suddenly my system shut down. Upon rebooting it and checking=20 /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=20 threshold in the BIOS setup) it doesn't work: bell# sysctl hw.acpi.thermal.tz0._CRT=3D3580 # 3580 tenths of Kelvin=3D85C 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 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 (Олександр Коваленко) From owner-freebsd-acpi@FreeBSD.ORG Thu Jun 23 21:30:28 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 45A1816A41C for ; Thu, 23 Jun 2005 21:30:28 +0000 (GMT) (envelope-from nate@root.org) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 151B143D1D for ; Thu, 23 Jun 2005 21:30:28 +0000 (GMT) (envelope-from nate@root.org) Received: from [172.16.7.47] (pl114.nas941.n-yokohama.nttpc.ne.jp [61.197.90.178]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id j5NLUPqc005785 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 23 Jun 2005 14:30:26 -0700 Message-ID: <42BB28BD.5080202@root.org> Date: Thu, 23 Jun 2005 14:25:17 -0700 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Alexandre \"Sunny\" Kovalenko" References: <7cd06a2d05062205331d03372c@mail.gmail.com> <7cd06a2d050623073452e3c3f9@mail.gmail.com> <1130426516.777.7.camel@RabbitsDen> In-Reply-To: <1130426516.777.7.camel@RabbitsDen> Content-Type: text/plain; charset=ISO-8859-5; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org, Matthew Flanagan 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: , X-List-Received-Date: Thu, 23 Jun 2005 21:30:28 -0000 Alexandre "Sunny" Kovalenko wrote: >>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 >> >>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? > > 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. This explanation is correct. The reason why the sysctl is read-only is because the values are supplied by the BIOS and are what the OEM thinks are critical temperatures. However, we need a way to allow override in the case of obviously wrong values like this. I'll probably change it to allow overriding from the loader but be read-only in sysctl to avoid accidental changes from users experimenting. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Fri Jun 24 01:06:53 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 5748D16A41C for ; Fri, 24 Jun 2005 01:06:53 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3372443D1F for ; Fri, 24 Jun 2005 01:06:53 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([70.18.160.160]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IIK009XKDR54XT4@vms046.mailsrvcs.net> for freebsd-acpi@freebsd.org; Thu, 23 Jun 2005 20:06:42 -0500 (CDT) From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <42BB28BD.5080202@root.org> To: Nate Lawson Message-id: <1130461569.1345.6.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> <1130426516.777.7.camel@RabbitsDen> <42BB28BD.5080202@root.org> Cc: freebsd-acpi@freebsd.org, Matthew Flanagan 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: Fri, 24 Jun 2005 01:06:53 -0000 X-Original-Date: Thu, 27 Oct 2005 21:06:09 -0400 X-List-Received-Date: Fri, 24 Jun 2005 01:06:53 -0000 On Thu, 2005-06-23 at 14:25 -0700, Nate Lawson wrote: > Alexandre "Sunny" Kovalenko wrote: > >>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 > >> > >>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? > > > > 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. > > This explanation is correct. The reason why the sysctl is read-only is > because the values are supplied by the BIOS and are what the OEM thinks > are critical temperatures. However, we need a way to allow override in > the case of obviously wrong values like this. I'll probably change it > to allow overriding from the loader but be read-only in sysctl to avoid > accidental changes from users experimenting. > Would you consider making ACx levels writeable while you are at that? It will make it much easier to implement thermal hysteresis from userland. -- Alexandre "Sunny" Kovalenko (Олександр Коваленко) From owner-freebsd-acpi@FreeBSD.ORG Fri Jun 24 01:44:55 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 D998C16A41C for ; Fri, 24 Jun 2005 01:44:55 +0000 (GMT) (envelope-from nate@root.org) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6B5543D49 for ; Fri, 24 Jun 2005 01:44:55 +0000 (GMT) (envelope-from nate@root.org) Received: from [172.16.7.47] (pl114.nas941.n-yokohama.nttpc.ne.jp [61.197.90.178]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id j5O1iqqc008460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 23 Jun 2005 18:44:53 -0700 Message-ID: <42BB645F.4010306@root.org> Date: Thu, 23 Jun 2005 18:39:43 -0700 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Alexandre \"Sunny\" Kovalenko" References: <7cd06a2d05062205331d03372c@mail.gmail.com> <7cd06a2d050623073452e3c3f9@mail.gmail.com> <1130426516.777.7.camel@RabbitsDen> <42BB28BD.5080202@root.org> <1130461569.1345.6.camel@RabbitsDen> In-Reply-To: <1130461569.1345.6.camel@RabbitsDen> Content-Type: text/plain; charset=ISO-8859-5; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org, Matthew Flanagan 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: , X-List-Received-Date: Fri, 24 Jun 2005 01:44:56 -0000 Alexandre "Sunny" Kovalenko wrote: > On Thu, 2005-06-23 at 14:25 -0700, Nate Lawson wrote: > >>Alexandre "Sunny" Kovalenko wrote: >> >>>>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 >>>> >>>>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? >>> >>>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. >> >>This explanation is correct. The reason why the sysctl is read-only is >>because the values are supplied by the BIOS and are what the OEM thinks >>are critical temperatures. However, we need a way to allow override in >>the case of obviously wrong values like this. I'll probably change it >>to allow overriding from the loader but be read-only in sysctl to avoid >>accidental changes from users experimenting. >> > > Would you consider making ACx levels writeable while you are at that? It > will make it much easier to implement thermal hysteresis from userland. That's pretty scary too. While not as important as _CRT, if a user changes a threshold to a high value, it's possible to damage the system. I'll consider implementing that with some reasonable cap on values. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Fri Jun 24 22:13:48 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 3944616A41C for ; Fri, 24 Jun 2005 22:13:48 +0000 (GMT) (envelope-from flanagan.matt@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF4A543D49 for ; Fri, 24 Jun 2005 22:13:45 +0000 (GMT) (envelope-from flanagan.matt@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so216534nzo for ; Fri, 24 Jun 2005 15:13:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tv16zTXr7EpZAVfjJ5odgJOIG7xKhQONwRuQ2aelNuD8JE3ffK5RXuY/Th3t6B61SxHHxeecBV8UhAZcQ7J2NDyrZIBRxoJWdGpRAjGfFeXF7oD1laJqOy1+ovAo1lHCJovGeXxBnBShwKTpctS+J4vM+/sWS5dAWG4d8G1Cv7c= Received: by 10.36.224.80 with SMTP id w80mr2337191nzg; Fri, 24 Jun 2005 15:13:45 -0700 (PDT) Received: by 10.36.126.4 with HTTP; Fri, 24 Jun 2005 15:13:45 -0700 (PDT) Message-ID: <7cd06a2d050624151357296b5@mail.gmail.com> Date: Fri, 24 Jun 2005 19:13:45 -0300 From: Matthew Flanagan To: Nate Lawson In-Reply-To: <42BB28BD.5080202@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7cd06a2d05062205331d03372c@mail.gmail.com> <7cd06a2d050623073452e3c3f9@mail.gmail.com> <1130426516.777.7.camel@RabbitsDen> <42BB28BD.5080202@root.org> Cc: freebsd-acpi@freebsd.org Subject: Re: Changing temperature threshold X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthew Flanagan List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2005 22:13:48 -0000 On 6/23/05, Nate Lawson wrote: > Alexandre "Sunny" Kovalenko wrote: > >>When I try to raise hw.acpi.thermal.tz0._CRT to 85C (which is the=20 > >>threshold in the BIOS setup) it doesn't work: > >> > >>bell# sysctl hw.acpi.thermal.tz0._CRT=3D3580 # 3580 tenths of Kelvin= =3D85C > >>sysctl: oid 'hw.acpi.thermal.tz0._CRT' is read only > >> > >>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? > >=20 > > 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. Thanks for the tip, I'll try that if the machine starts acting up again (so= far=20 it hasn't). > This explanation is correct. The reason why the sysctl is read-only is= =20 > because the values are supplied by the BIOS and are what the OEM thinks= =20 > are critical temperatures. However, we need a way to allow override in= =20 > the case of obviously wrong values like this. I'll probably change it=20 > to allow overriding from the loader but be read-only in sysctl to avoid= =20 > accidental changes from users experimenting. I think that's a great idea. Thank you and have a nice weekend, Matt