From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 2 13:00:38 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DC3016A4E0 for ; Sat, 2 Sep 2006 13:00:38 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C09443D45 for ; Sat, 2 Sep 2006 13:00:37 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k82D0b2u037449 for ; Sat, 2 Sep 2006 13:00:37 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k82D0bwO037445; Sat, 2 Sep 2006 13:00:37 GMT (envelope-from gnats) Resent-Date: Sat, 2 Sep 2006 13:00:37 GMT Resent-Message-Id: <200609021300.k82D0bwO037445@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jason Boisvert Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3851316A4DA for ; Sat, 2 Sep 2006 12:59:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA95043D45 for ; Sat, 2 Sep 2006 12:59:29 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k82CxTdm075227 for ; Sat, 2 Sep 2006 12:59:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k82CxTaV075225; Sat, 2 Sep 2006 12:59:29 GMT (envelope-from nobody) Message-Id: <200609021259.k82CxTaV075225@www.freebsd.org> Date: Sat, 2 Sep 2006 12:59:29 GMT From: Jason Boisvert To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/102783: hw.acpi has thermal controls backwards when external power connected at bootup X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2006 13:00:38 -0000 >Number: 102783 >Category: misc >Synopsis: hw.acpi has thermal controls backwards when external power connected at bootup >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 02 13:00:36 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jason Boisvert >Release: 6.1-Release >Organization: University of Colorado - Boulder >Environment: [boisvert@kailash] ~ $ uname -a FreeBSD kailash 6.1-RELEASE FreeBSD 6.1-RELEASE #8: Thu Jun 15 14:12:03 MDT 2006 root@kailash:/usr/obj/usr/src/sys/KAILASH i386 >Description: I have a 2004 model gateway 450 laptop with intel centrino. When I start the computer with the external power connected, I get a bitflip for acpi regarding power source vis-a-vis thermal control. Here are the two main configurations seen from the output of 'sysctl -a | grep thermal': Normal state plugged in: hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.tz0.temperature: 56.0C hw.acpi.thermal.tz0.active: 1 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 92.0C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 100.0C hw.acpi.thermal.tz0._ACx: 60.0C 55.0C -1 -1 -1 -1 -1 -1 -1 -1 Normal state with battery: hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.tz0.temperature: 57.0C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 92.0C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 100.0C hw.acpi.thermal.tz0._ACx: 92.0C 87.0C -1 -1 -1 -1 -1 -1 -1 -1 Note that in the last line (_ACx) the values changed from 60.0C 55.0C to 92.0C 87.0C. This is what should be happening as far as I can tell. Having the higher temps means the fan turns on later with the battery. The problem is these configurations are reversed when the computer is booted with the external power connected. I.e., if I start the computer plugged in and then unplug it, it will run the cooler version of thermal control and use more battery. Also, using this backwards configuration it obviously can get hotter than it should while plugged in. Moreover, this is a recent problem that started -- I think -- with 6.1-Release. It may have started with 6.0-Release, but I know it wasn't happening for the prerelease of 6.0. Thanks. Jason Boisvert >How-To-Repeat: Start the computer with the external power source connected. >Fix: It seems like the system assumes (or inaccurately assesses) from the start that the battery is the power source regardless of if this is true. It shouldn't be hard to change that behavior (I hope). >Release-Note: >Audit-Trail: >Unformatted: