linux-mips
[Top] [All Lists]

Re: Battery status

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: Battery status
From: Clark Williams <williams@redhat.com>
Date: Fri, 22 Jul 2005 16:10:16 -0500
Cc: Rodolfo Giometti <giometti@linux.it>, linux-mips@linux-mips.org
In-reply-to: <20050722191732.GB3770@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20050722142205.GE21044@enneenne.com> <1122044036.10743.5.camel@riff> <20050722191732.GB3770@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
On Fri, 2005-07-22 at 15:17 -0400, Ralf Baechle wrote:
> On Fri, Jul 22, 2005 at 09:53:56AM -0500, Clark Williams wrote:
> 
> > > I'd like to implement a way to allow userspace to read battery status
> > > (or percentage).  I notice this port of APM interface for ARM
> > > architecture «arch/arm/kernel/apm.c» and I think I can use comething
> > > similar... what do you think about that?
> > 
> > You might want to look at how acpi is presented in the /proc interface.
> > You could hook your battery status routines into the acpi entries:
> > 
> >     /proc/acpi/battery/BAT0/{alarm,info,status} 
> > 
> > Just a thought.
> 
> Forget it.  One of the great advantages of MIPS is that Intel has ACPI.
> On the open Richter scale for stupidity ACPI in computing is a 9.8.

I never said that I liked ACPI, just that I liked the /proc interface.
I'm not really a fan of putting an interpreter into the system
firmware...

Clark

-- 
Clark Williams <williams@redhat.com>

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>