From owner-freebsd-acpi@FreeBSD.ORG Thu Mar 26 21:47:13 2009 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75ABA1065670 for ; Thu, 26 Mar 2009 21:47:13 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from honeysuckle.london.02.net (honeysuckle.london.02.net [87.194.255.144]) by mx1.freebsd.org (Postfix) with ESMTP id 10EDA8FC0C for ; Thu, 26 Mar 2009 21:47:13 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from [192.168.1.75] (93.97.24.219) by honeysuckle.london.02.net (8.5.016.1) id 497A2AF001AE8317; Thu, 26 Mar 2009 21:46:57 +0000 Message-ID: <49CBF7D1.20102@onetel.com> Date: Thu, 26 Mar 2009 21:46:57 +0000 From: Chris Whitehouse User-Agent: Thunderbird 2.0.0.19 (X11/20090113) MIME-Version: 1.0 To: "Alexandre \"Sunny\" Kovalenko" References: <49C80E65.9090500@onetel.com> <49C93309.6050708@iki.fi> <20090325140718.J95588@sola.nimnet.asn.au> <49C9EE50.6070507@onetel.com> <1237992462.1297.22.camel@RabbitsDen> In-Reply-To: <1237992462.1297.22.camel@RabbitsDen> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@FreeBSD.org, Ian Smith Subject: Re: acpi_tz0: _CRT value is absurd, ignored (256.0C) (was pr kern/105537) 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, 26 Mar 2009 21:47:13 -0000 Alexandre "Sunny" Kovalenko wrote: > To be fair, if all you want is to override _CRT, you should be able to > put something to the tune of > > hw.acpi.thermal.user_override=1 > hw.acpi.thermal.tz0._CRT=90C > > in your /etc/sysctl.conf and not deal with the ASL at all. I tried this and it sets hw.acpi.thermal.tz0._CRT correctly until hw.acpi.thermal.tz0.active and hw.acpi.thermal.tz0.temperature change values at which point hw.acpi.thermal.tz0._CRT reverts to -1. At idle having set hw.acpi.thermal.tz0._CRT to 90C with sysctl: chrisw@muji% sysctl hw.acpi.thermal.tz0 hw.acpi.thermal.tz0.temperature: 55.0C hw.acpi.thermal.tz0.active: 3 hw.acpi.thermal.tz0.passive_cooling: 0 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: -1 hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 90.0C hw.acpi.thermal.tz0._ACx: 80.0C 70.0C 60.0C 45.0C -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz0._TC1: -1 hw.acpi.thermal.tz0._TC2: -1 hw.acpi.thermal.tz0._TSP: -1 Heat it up a bit with cpuburn: chrisw@muji% sysctl hw.acpi.thermal.tz0 hw.acpi.thermal.tz0.temperature: 60.0C hw.acpi.thermal.tz0.active: 2 hw.acpi.thermal.tz0.passive_cooling: 0 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: -1 hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: -1 hw.acpi.thermal.tz0._ACx: 80.0C 70.0C 55.0C 45.0C -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz0._TC1: -1 hw.acpi.thermal.tz0._TC2: -1 hw.acpi.thermal.tz0._TSP: -1 hw.acpi.thermal.tz0._CRT will now stay at -1 until I reset it with sysctl. So I suppose I need to find out where hw.acpi.thermal.tz0._CRT is getting its value from - which must be the ASL. acpidump -td says ThermalZone (TZ0) { snip Method (_CRT, 0, Serialized) { Return (C316 (0x04, 0x00)) } snip } The whole asl is fetch(1)able as www.fishercroft.plus.com/nc6320.asl.gz Watching /var/log/messages I can't see a correlation between when the warning messages appear and changing the temperature states so I don't even know what is actually triggering them. I've started reading the ACPI specs as suggested but in the meantime all suggestions welcome. Thanks Chris > > You might want to take a look at your output of 'sysctl hw.acpi.thermal' > -- your specific thermal zone, might be different from the one, I have > used as an example above. In fact, on my laptop, it is tz1 and not tz0. > > In either case, I would recommend reading thermal chapter of the ACPI > specification -- it is short, well-written and has an example, I was > stealing stuff from, shamelessly, in the past. > > HTH, >