From owner-freebsd-acpi@FreeBSD.ORG Thu Jan 5 11:33:20 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 7FF4A16A41F for ; Thu, 5 Jan 2006 11:33:20 +0000 (GMT) (envelope-from ducrot@poupinou.org) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 401AC43D5C for ; Thu, 5 Jan 2006 11:33:19 +0000 (GMT) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1EuTMq-0003Km-00; Thu, 05 Jan 2006 12:33:16 +0100 Date: Thu, 5 Jan 2006 12:33:16 +0100 To: Francisco Reyes Message-ID: <20060105113316.GB12436@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i From: Bruno Ducrot Cc: freebsd-acpi@freebsd.org 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: Thu, 05 Jan 2006 11:33:20 -0000 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.