Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Sep 2010 13:01:44 +0200
From:      kuba guzik <kuba.g4@gmail.com>
To:        Andriy Gapon <avg@icyb.net.ua>, Ian Smith <smithi@nimnet.asn.au>, freebsd-acpi@freebsd.org
Subject:   Re: acpi shows wrong battery state
Message-ID:  <AANLkTi=m3TkB-p1RPtC8OcXzO7u0OkRwe0Dbn8ySpwyY@mail.gmail.com>
In-Reply-To: <4C8095A2.90506@icyb.net.ua>
References:  <AANLkTiknRR_PDWfXbhM3iivb4bDnaQ-JBmXyuFP_2knk@mail.gmail.com> <20100829235431.J86162@sola.nimnet.asn.au> <AANLkTi=Cpg5k1b%2Biqxsz=Ys8syCv7yOfv2Z_KHYer2p6@mail.gmail.com> <20100830183330.Y29840@sola.nimnet.asn.au> <4C7BBCFE.4030804@icyb.net.ua> <20100831003546.K29840@sola.nimnet.asn.au> <AANLkTikkuZJh6FBE3As0wxdXM3Gh3GYRF3=6eNZmP71D@mail.gmail.com> <4C8095A2.90506@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
2010/9/3 Andriy Gapon <avg@icyb.net.ua>:
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=m3TkB-p1RPtC8OcXzO7u0OkRwe0Dbn8ySpwyY>