From owner-freebsd-acpi@FreeBSD.ORG Fri Sep 3 06:36:52 2010 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 4EF82106588E for ; Fri, 3 Sep 2010 06:36:52 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 8C5798FC18 for ; Fri, 3 Sep 2010 06:36:51 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id JAA10907; Fri, 03 Sep 2010 09:36:40 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1OrPla-0006x3-NE; Fri, 03 Sep 2010 09:28:50 +0300 Message-ID: <4C8095A2.90506@icyb.net.ua> Date: Fri, 03 Sep 2010 09:28:50 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.8) Gecko/20100822 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: kuba guzik References: <20100829235431.J86162@sola.nimnet.asn.au> <20100830183330.Y29840@sola.nimnet.asn.au> <4C7BBCFE.4030804@icyb.net.ua> <20100831003546.K29840@sola.nimnet.asn.au> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org, Ian Smith Subject: Re: acpi shows wrong battery state 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, 03 Sep 2010 06:36:52 -0000 on 31/08/2010 04:40 kuba guzik said the following: >> It would be good too see full verbose dmesg and acpidump -dt output. >> (Preferably uploaded somewhere) > > My configs from 8.0 and 8.1 > http://kubag.pl/BSD Oh, hey, you know what's confusing? Your dmesg dumps having information from two boots each. And in 8.1 link the first part is actually for 8.0, you have to scroll to the middle to see start of 8.1 boot actually. Thanks :) Can you try the following patch with 8.1? diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c index 2c18972..cc8a305 100644 --- a/sys/dev/acpica/acpi_ec.c +++ b/sys/dev/acpica/acpi_ec.c @@ -828,6 +828,7 @@ EcWaitEvent * the status checking loop, hopefully to allow the EC to go to work * and produce a non-stale status. */ +#if 0 if (need_poll) { static int once; @@ -840,7 +841,7 @@ EcWaitEvent AcpiOsStall(10); } } - +#endif /* Wait for event by polling or GPE (interrupt). */ if (need_poll) { count = (ec_timeout * 1000) / EC_POLL_DELAY; -- Andriy Gapon