| To: | Rodolfo Giometti <giometti@linux.it> |
|---|---|
| Subject: | Re: Battery status |
| From: | Clark Williams <williams@redhat.com> |
| Date: | Fri, 22 Jul 2005 09:53:56 -0500 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <20050722142205.GE21044@enneenne.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20050722142205.GE21044@enneenne.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Fri, 2005-07-22 at 16:22 +0200, Rodolfo Giometti wrote:
> Hello,
>
> 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.
Clark
--
Clark Williams <williams@redhat.com>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2.6] vr41xx: update system type, Yoichi Yuasa |
|---|---|
| Next by Date: | Re: Battery status, Rodolfo Giometti |
| Previous by Thread: | Battery status, Rodolfo Giometti |
| Next by Thread: | Re: Battery status, Rodolfo Giometti |
| Indexes: | [Date] [Thread] [Top] [All Lists] |