From owner-freebsd-acpi@FreeBSD.ORG Wed Jan 4 16:54:53 2006 Return-Path: X-Original-To: freebsd-acpi@FreeBSD.org Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD21B16A420; Wed, 4 Jan 2006 16:54:53 +0000 (GMT) (envelope-from ariff@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40A7243D53; Wed, 4 Jan 2006 16:54:53 +0000 (GMT) (envelope-from ariff@FreeBSD.org) Received: from misaki (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with SMTP id k04GsoEo027860; Wed, 4 Jan 2006 16:54:51 GMT (envelope-from ariff@FreeBSD.org) Date: Thu, 5 Jan 2006 00:54:41 +0800 From: Ariff Abdullah To: freebsd-acpi@FreeBSD.org Message-Id: <20060105005441.029835c1.ariff@FreeBSD.org> In-Reply-To: <20060104161842.GK13887@poupinou.org> References: <63675.24.71.129.36.1135718125.squirrel@imap.sd73.bc.ca> <200512291412.19476.peter@wemm.org> <20060103155509.GE13887@poupinou.org> <20060103185047.GH13887@poupinou.org> <20060104161842.GK13887@poupinou.org> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Thu__5_Jan_2006_00_54_41_+0800_x7.9sabrhOeUmjCa" Cc: freebsd-amd64@FreeBSD.org, lists@stringsutils.com Subject: Re: No APM yet for AMD? 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: Wed, 04 Jan 2006 16:54:54 -0000 --Signature=_Thu__5_Jan_2006_00_54_41_+0800_x7.9sabrhOeUmjCa Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 4 Jan 2006 17:18:42 +0100 Bruno Ducrot wrote: > On Wed, Jan 04, 2006 at 10:14:13AM -0500, Francisco Reyes wrote: > > Bruno Ducrot writes: > >=20 > > >>http://public.natserv.net/acpidump.txt > > > > > >Well could you try to add this to your /boot/loader.conf: > > >hw.acpi.osname=3D"Microsoft Windows NT" > >=20 > > Done > >=20 > >=20 > > >It's because I want to check what happens if the following ASL is > > >triggered: > > > > > >If (LEqual (SizeOf (\_OS), 0x14)) > > >{ > > > BPOL (0x3C) > > >} > >=20 > > Second dump on the same location... different name > > http://public.natserv.net/acpidump2.txt > >=20 > > >That's look like a workaround for Windows NT and that seems to > > >be related to batteries and AC adapter. > >=20 > > Not sure what was supposed to happen after trying the change in=20 > > loader.conf, but I tried "sysctl -a |grep acpi.bat" and the > > results are the same as before. > >=20 > > hw.acpi.battery.life: -1=20 > > hw.acpi.battery.time: -1 > > hw.acpi.battery.state: 7 > > hw.acpi.battery.units: 1 > > hw.acpi.battery.info_expire: 5 >=20 > It was a stupid idea, sorry. I will look a little bit more. I > think I begin to understand what's wrong, but I need to look a > little bit further. >=20 > I also CC to freebsd-acpi@ with a reply-to accordingly. >=20 Few acpi BIOSes does not support _BST (battery status) method, causing that type of weird sysctl output (since it depends solely on _BST). Your hope is to use acpiconf(8) i.e acpiconf -i . Unfortunately, acpiconf itself does not display all possible values. Try this patch against usr.sbin/acpi/acpiconf/acpiconf.c http://people.freebsd.org/~ariff/acpi/acpiconf.c.diff Hopefully you will have the proper output in terms of percentage. You won't have advance battery status such as remaining time and few others. This is a limitation for BIOSes without _BST. I believe Nate Lawson is the right person to comment on this. -- Ariff Abdullah FreeBSD --Signature=_Thu__5_Jan_2006_00_54_41_+0800_x7.9sabrhOeUmjCa Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDu/3Ulr+deMUwTNoRAvt6AKCw1i6PO/2XDUFG+H7ThfP+Y4wMfwCg0yTz n+ZsS3t+xbZlSm8K/Ps0slg= =KiTK -----END PGP SIGNATURE----- --Signature=_Thu__5_Jan_2006_00_54_41_+0800_x7.9sabrhOeUmjCa--