From owner-freebsd-acpi@FreeBSD.ORG Fri Sep 3 11:01:47 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 C867A1065770 for ; Fri, 3 Sep 2010 11:01:47 +0000 (UTC) (envelope-from kuba.g4@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 56F298FC16 for ; Fri, 3 Sep 2010 11:01:47 +0000 (UTC) Received: by eyx24 with SMTP id 24so1081207eyx.13 for ; Fri, 03 Sep 2010 04:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=7RiCj3myBhhaEUPzwFMHdSF/nhPwGhj8eSIj9W1w9WA=; b=LhKi8LpkEbwOmvfO1expjPusqmvBbOGegNG61lInzyHHldSnxtpxgHQdfBGygcy0Jt DkTFWk9p4tDnPZdrdUUaTlMfS6KUvoMoj1jLkXnL/4dJbASZ9/dEPjkCGMsDQU7vyLEu f8qxXHMjSCO1Gsx8z9jHLmriY+M3hNUQY0WlA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=dKtPPyEL1G6gy8xw292Jwr/aw/7lBCt4zza6WJpqBenW4+lFCO8wEVyRFoHL84d1JJ IFaCI7Qx9GiIqCUFuO807hwfhEKNczQtIEYfDA8mJDq6nS6szy5+z2H0BwLXJyGDz5b4 EsU+VcpZebLFyHedi4AhHO0M5d38MWMlgVYLo= MIME-Version: 1.0 Received: by 10.216.176.83 with SMTP id a61mr476220wem.47.1283511704640; Fri, 03 Sep 2010 04:01:44 -0700 (PDT) Received: by 10.216.173.77 with HTTP; Fri, 3 Sep 2010 04:01:44 -0700 (PDT) In-Reply-To: <4C8095A2.90506@icyb.net.ua> References: <20100829235431.J86162@sola.nimnet.asn.au> <20100830183330.Y29840@sola.nimnet.asn.au> <4C7BBCFE.4030804@icyb.net.ua> <20100831003546.K29840@sola.nimnet.asn.au> <4C8095A2.90506@icyb.net.ua> Date: Fri, 3 Sep 2010 13:01:44 +0200 Message-ID: From: kuba guzik To: Andriy Gapon , Ian Smith , freebsd-acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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 11:01:48 -0000 2010/9/3 Andriy Gapon : > on 31/08/2010 04:40 kuba guzik said the following: >>> =A0It would be good too see full verbose dmesg and acpidump -dt output. >>> =A0(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 :) I don't think it's possible, now I have 2 Freebsd systems and they have different slices. It was late, so maybe on my account on sever I've mixed configs, or, I don't know... > 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 > =A0 =A0 =A0* the status checking loop, hopefully to allow the EC to go to= work > =A0 =A0 =A0* and produce a non-stale status. > =A0 =A0 =A0*/ > +#if 0 > =A0 =A0 if (need_poll) { > =A0 =A0 =A0 =A0static int =A0 =A0 =A0once; > > @@ -840,7 +841,7 @@ EcWaitEvent > =A0 =A0 =A0 =A0 =A0 =A0AcpiOsStall(10); > =A0 =A0 =A0 =A0} > =A0 =A0 } > - > +#endif > =A0 =A0 /* Wait for event by polling or GPE (interrupt). */ > =A0 =A0 if (need_poll) { > =A0 =A0 =A0 =A0count =3D (ec_timeout * 1000) / EC_POLL_DELAY; > > > -- > Andriy Gapon > Sorry if it's stupid question, but could you tell me how to use this patch? I've noticed that always after installation on "clean" system acpi shows proper battery state( 8.0 and 8.1), but when I install xorg, dbus, kde and reboot I will be dealing with acpi errors... again.