From owner-freebsd-acpi@FreeBSD.ORG Wed Nov 21 20:11:21 2007 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 CE9CD16A420 for ; Wed, 21 Nov 2007 20:11:21 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from vms169133pub.verizon.net (vms169133pub.verizon.net [206.46.169.133]) by mx1.freebsd.org (Postfix) with ESMTP id A58A713C4C5 for ; Wed, 21 Nov 2007 20:11:21 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from [10.0.3.231] ([70.21.144.51]) by vms169133.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JRV0090SHE5ZTBS@vms169133.mailsrvcs.net> for freebsd-acpi@freebsd.org; Wed, 21 Nov 2007 14:10:55 -0600 (CST) Date: Wed, 21 Nov 2007 15:10:13 -0500 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <1195536301.1271.11.camel@localhost> To: Nick Withers Message-id: <1195675813.56779.42.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-type: text/plain Content-transfer-encoding: 7bit References: <1195536301.1271.11.camel@localhost> Cc: freebsd-acpi@freebsd.org Subject: Re: acpi_thermal User Overriden Parameters Reset on Power State Change 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: Wed, 21 Nov 2007 20:11:21 -0000 On Tue, 2007-11-20 at 16:25 +1100, Nick Withers wrote: > Hi y'all, > > Firstly, sorry if this isn't entirely the correct place to post this, I think acpi@ would be the better place (forwarded). > for starters I'm not sure whether this problem is limited to -CURRENT > and / or 7.0 or not. Tried to have a look at fixing it myself, but I'm > not l33t enough! :-) > > On my Compaq Presario B3820 (PV142PA#ABG) laptop, I override the > hw.acpi.thermal.tz0._PSV value because the default is the temperature at > which the CPU is halted by the hardware until the temperature settles > down. Since this gets triggered fairly often and is pretty annoying, I > lower the trigger temperature level and have powerd(8) work > passive-cooling-shaped magic. > > However, disconnecting or reconnecting AC power resets the value to the > BIOS provided level. > > Would anyone be able to offer assistance with this? It's not too big a > deal, I just have to remember to set the appropriate value again if the > power state changes. > At the very least, you do not have to remember to do this: at the bottom of /etc/devd.conf there is an example on how to associate your custom script with AC state changes. Look for something like: # This example calls a script when the AC state changes, passing the # notify value as the first argument. If the state is 0x00, it might # call some sysctls to implement economy mode. If 0x01, it might set # the mode to performance. notify 10 { match "system" "ACPI"; match "subsystem" "ACAD"; action "/etc/acpi_ac $notify"; }; As to changing _PSV value for good: you can dump your ASL (look for instructions in the Handbook), then look for something like Method (_PSV, 0, NotSerialized) { Return (0xE30) } modify value, remembering that = * 10 + 2732, recompile your ASL and override it on boot (handbook comes handy there as well). HTH, -- Alexandre "Sunny" Kovalenko