[Top] [All Lists]

Re: Advice on battery support [was: Advice on APM-EMU reunion]

To: Rodolfo Giometti <>
Subject: Re: Advice on battery support [was: Advice on APM-EMU reunion]
From: Pavel Machek <>
Date: Fri, 2 Feb 2007 22:35:23 +0100
Cc: Paul Mundt <>,,,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Mutt/1.5.11+cvs20060126

> > However, it has since been reposted:
> > 
> >
> >
> >
> >
> > 
> > and merged back in to -mm. This is all post 2.6.20 stuff, though..
> Ok, starting from these patches I'd like to add a "battery support" to
> the kernel.
> What I suppose to do is a new class with a proper methods useful to
> collect several info on battery status, such as get_ac_line_status()
> get_battery_status(), get_battery_flags(),
> get_remaining_battery_life() and so on.
> The output will be APM-like into file "/proc/apm" (one line per
> battery, or just the "main"/first one?) so that existing applications
> continue to work and under sysfs into "/sysfs/class/battery".
> Is it sane? :)

Yep. Notice that designing /sysfs/class/battery is not going to be
easy, and that some work was already done in context of olpc
project. Search the mailing lists...
(cesky, pictures)

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