Thanks for your suggestion, a HAL component for this sounds like a great idea and we will explore in that direction, think about this solution and try to implement it.
Regards Tim ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Dianne Hackborn Sent: 2009年3月12日 9:08 To: [email protected] Subject: Re: Battery Management generic solution Hi, this would probably best be done as a HAL module. We would be happy to accept a patch along those lines. On Wed, Mar 11, 2009 at 5:03 AM, tim <[email protected]<mailto:[email protected]>> wrote: Hi all, I have studied the battery management implementation of Android, and found that in the file "com_android_server_BatteryService.cpp", the ACPI paths are hard coded, for example, the AC_ONLINE_PATH is defined as "/sys/class/power_supply/ac/online", BATTERY_CAPACITY_PATH is defined as "/sys/class/power_supply/battery/capacity". But for every device, the ACPI interface is different from each other. For example, for Compal, AC_ONLINE_PATH is "/sys/class/power_supply/ ACAD/online", and there is not a path of BATTERY_CAPACITY_PATH, but there are two paths for it: /sys/class/power_supply/BAT1/charge_full /sys/class/power_supply/BAT1/charge_now I am creating a generic, configurable solution with defaults configured to be compatible with the original solution . Thanks Tim Intel Software Services Group (SSG) -- Dianne Hackborn Android framework engineer [email protected]<mailto:[email protected]> Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---
