AC Power handling broken for desktops

Benjamin Herrenschmidt benh at kernel.crashing.org
Mon Sep 19 10:44:22 EST 2005


On Fri, 2005-08-26 at 13:38 +0200, Olaf Hering wrote:
>  On Thu, Aug 25, Benjamin Herrenschmidt wrote:
> 
> > On Thu, 2005-08-25 at 07:15 +0200, Olaf Hering wrote:
> > >  On Thu, Aug 25, Benjamin Herrenschmidt wrote:
> > > 
> > > > Not sure :) I don't fully know how to decode those power things in the
> > > > device-tree... There are bits in darwin tho.
> > > 
> > > Maybe just check for !PowerBook and force PMU_PWR_AC_PRESENT in this case.
> > 
> > Yah, you can check that with pmac_feature, there is a "mobile" flag.
> 
> Its not obvious how to get to that flag. Is this patch acceptable?
> No batteries present should mean AC Power == 1.
> 
>  drivers/macintosh/apm_emu.c |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)

Looks good to me.

Ben





More information about the Linuxppc-dev mailing list