Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Sep 2010 15:32:13 +1000 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        kuba guzik <kuba.g4@gmail.com>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: acpi shows wrong battery state (fwd)
Message-ID:  <20100903135945.K32216@sola.nimnet.asn.au>
In-Reply-To: <AANLkTi==N=c8GOec48YBPYdhbD-Ot_uqYv%2BpDjQPVsLc@mail.gmail.com>
References:  <AANLkTi==N=c8GOec48YBPYdhbD-Ot_uqYv%2BpDjQPVsLc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 3 Sep 2010, kuba guzik wrote:
 > > To recap:
 > >
 > > 1.  Add "pnp0c14" in sys/dev/acpi_support/acpi_wmi.c like this:
 > >
 > > static char *wmi_ids[] = {"PNP0C14", "PNP0c14", "pnp0c14", NULL};
 > >
 > > Recompile, install, and reboot.
 > >
 > > 2.  If #1 does not help, remove the following three lines from
 > > sys/contrib/dev/acpica/utilities/uteval.c, which were added in 8.1:
 > >
 > > 149:     {"Windows 2006.1",      ACPI_OSI_WINSRV_2008}, ...
 > > 150:     {"Windows 2006 SP1",    ACPI_OSI_WIN_VISTA_SP1}, ...
 > > 151:     {"Windows 2009",        ACPI_OSI_WIN_7}, ...
 > >
 > > Recompile, install, and reboot.
 > 
 > Well, that didn't work ;/

Can you show the steps you took to recompile and install those?  Not to 
condescend, just bearing in mind that you said you were new to FreeBSD.

 > > 3.  If #2 still does not help, you should complain to HP.
 > 
 > Maybe it is true, but we both know that HP cares only about  windows users.
 > 
 > So, as I understand, there is little (or no?) chance that my problem
 > will be sloved in next release. Thanks for everyone who tried to help
 > me. I have last question- why linux implemenation of acpi works on
 > this laptop? I thought  that all unix based systems have similar acpi
 > implementation...

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.html
===
11.16.5.1 _OS dependencies

Some AML assumes the world consists of various Windows versions. You can 
tell FreeBSD to claim it is any OS to see if this fixes problems you may 
have. An easy way to override this is to set hw.acpi.osname="Windows 
2001" in /boot/loader.conf or other similar strings you find in the ASL.
===

It may be worth trying setting hw.acpi.osname to "Linux", or to one of 
the others mentioned in your ASL.  You'll see a number of conditional 
tests on 'OSYS' in there; I don't know just what they do, but it can't 
hurt to experiment.

Try 'Windows 2001' also; there are some tests in the EmbeddedControl 
section mentioning an RFLG and VIST .. clearly the latter refers to 
Vista, but Windows 2001 zeroes RFLG, otherwise set. (just guessing!)

While not ruling out a possible new bug in ACPICA, this is more likely 
problem/s with your ASL than with FreeBSD as such.  Keep an eye out for 
a BIOS update; if you do contact HP they might at least be aware that 
there's a problem, especially if you mention that wrong PNP0C14 string, 
the only one I spotted having lower-case letters.

cheers, Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100903135945.K32216>