From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id E6A2168124 for ; Thu, 25 Aug 2005 15:09:38 +1000 (EST) From: Benjamin Herrenschmidt To: Olaf Hering In-Reply-To: <20050825045108.GA19792@suse.de> References: <20050824115452.GA29148@suse.de> <1124922771.5159.134.camel@gaston> <20050825045108.GA19792@suse.de> Content-Type: text/plain Date: Thu, 25 Aug 2005 15:08:01 +1000 Message-Id: <1124946481.7906.8.camel@gaston> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org Subject: Re: AC Power handling broken for desktops List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2005-08-25 at 06:51 +0200, Olaf Hering wrote: > On Thu, Aug 25, Benjamin Herrenschmidt wrote: > > > On Wed, 2005-08-24 at 13:54 +0200, Olaf Hering wrote: > > > My G4/450 runs without AC Power, according to /proc/pmu/info: > > > > > > PMU driver version : 2 > > > PMU firmware version : 0c > > > AC Power : 0 > > > Battery count : 0 > > > > > > It should report 1. Where is the best place to get the > > > PMU_PWR_AC_PRESENT into ac_line_status? > > > > Do we get the bit set from the PMU ? If not, maybe we should hard code > > that value on non-laptops > > Appearently not, how do I check it? Not sure :) I don't fully know how to decode those power things in the device-tree... There are bits in darwin tho. Ben