From owner-freebsd-acpi@FreeBSD.ORG Fri Sep 3 05:32:15 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 6781710656BE; Fri, 3 Sep 2010 05:32:15 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id B449F8FC18; Fri, 3 Sep 2010 05:32:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id o835WDZL079488; Fri, 3 Sep 2010 15:32:13 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Fri, 3 Sep 2010 15:32:13 +1000 (EST) From: Ian Smith To: kuba guzik In-Reply-To: Message-ID: <20100903135945.K32216@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-acpi@freebsd.org Subject: Re: acpi shows wrong battery state (fwd) 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 05:32:15 -0000 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