Re: Battery status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux