From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: 2.6.21-rc7-mm2 -- gnome-power-manager always shows the power as coming from AC Date: Thu, 26 Apr 2007 14:28:24 -0700 Message-ID: <20070426142824.9da91feb.akpm@linux-foundation.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from smtp1.linux-foundation.org ([65.172.181.25]:53023 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752449AbXDZV3v (ORCPT ); Thu, 26 Apr 2007 17:29:51 -0400 In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Miles Lane Cc: LKML , linux-acpi@vger.kernel.org, Vladimir Lebedev , Len Brown On Thu, 26 Apr 2007 12:13:00 -0700 "Miles Lane" wrote: > One possible issue is that /proc/acpi/power_resource/ is an empty directory. > Otherwise, the ACPI information seems to be fine: > > # cat /proc/acpi/ac_adapter/ACAD/state > state: on-line > # cat /proc/acpi/ac_adapter/ACAD/state > state: off-line > > # cat /proc/acpi/battery/BAT0/state > present: yes > capacity state: ok > charging state: discharging > present rate: 0 mA > remaining capacity: 7072 mAh > present voltage: 12487 mV > > When I unplug the power cable, /proc/acpi/battery/BAT0/state (present > rate) shows that current flowing from the battery. > > # cat /proc/acpi/button/lid/LID0/state > state: closed > # cat /proc/acpi/button/lid/LID0/state > state: open hm, I'm looking suspiciously at "ACPI: Cache battery status instead of re-evaluating AML". What sort of machine is this?