Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2006 12:33:16 +0100
From:      Bruno Ducrot <ducrot@poupinou.org>
To:        Francisco Reyes <lists@stringsutils.com>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: No APM yet for AMD?
Message-ID:  <20060105113316.GB12436@poupinou.org>
In-Reply-To: <cone.1136387653.168993.62674.1000@zoraida.natserv.net>
References:  <cone.1135611096.296999.80599.1000@zoraida.natserv.net> <63675.24.71.129.36.1135718125.squirrel@imap.sd73.bc.ca> <cone.1135784510.758843.3324.1000@zoraida.natserv.net> <200512291412.19476.peter@wemm.org> <cone.1136052558.494842.28540.1000@zoraida.natserv.net> <20060103155509.GE13887@poupinou.org> <cone.1136308365.970162.45107.1000@zoraida.natserv.net> <20060103185047.GH13887@poupinou.org> <cone.1136387653.168993.62674.1000@zoraida.natserv.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 04, 2006 at 10:14:13AM -0500, Francisco Reyes wrote:
> Bruno Ducrot writes:
> 
> >>http://public.natserv.net/acpidump.txt
> >
> >Well could you try to add this to your /boot/loader.conf:
> >hw.acpi.osname="Microsoft Windows NT"
> 
> Done

Please remove that line.

> 
> 
> >It's because I want to check what happens if the following ASL is
> >triggered:
> >
> >If (LEqual (SizeOf (\_OS), 0x14))
> >{
> >    BPOL (0x3C)
> >}
> 
> Second dump on the same location... different name
> http://public.natserv.net/acpidump2.txt
> 
> >That's look like a workaround for Windows NT and that seems to
> >be related to batteries and AC adapter.
> 
> Not sure what was supposed to happen after trying the change in 
> loader.conf, but I tried "sysctl -a |grep acpi.bat" and the results are the 
> same as before.
> 
> hw.acpi.battery.life: -1 
> hw.acpi.battery.time: -1
> hw.acpi.battery.state: 7
> hw.acpi.battery.units: 1
> hw.acpi.battery.info_expire: 5

Could you please try this patch to your asl?

--- Francisco_Reyes.asl	2006/01/05 10:38:17	1.1
+++ Francisco_Reyes.asl	2006/01/05 11:19:42
@@ -3520,7 +3520,14 @@
 
                     Method (UPBS, 0, NotSerialized)
                     {
-                        Store (0xFFFFFFFF, Index (PBST, 0x01))
+
+                        // read remain capacity
+                        If (\_SB.PCI0.LPC0.EC0.SMRD (0x09, 0x16, 0x0F, RefOf (Local0)))
+                        {
+                            Return (IVBS())
+                        }
+
+                        Store (Local0, Index (PBST, 0x01))
                         Store (\_SB.PCI0.LPC0.EC0.MBRM, Local5)
                         If (LNot (And (Local5, 0x8000)))
                         {



I've renamed your acpidump.txt as Francisco_Reyes.asl.

CCed to freebsd-acpi, removed freebsd-amd64.

Cheers,

-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.



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