Hi Ramya Mohan ,

please can you send me any battery driver code, like reference to create
structure and all.
i am using i2c interface.

for the time being i am using bq27200_battery driver as reference.

i am facing bellow error

 power_supply bq27200-0: driver failed to report `status' property
power_supply bq27200-0: driver failed to report `status' property

thanks in advance.

On Fri, Apr 13, 2012 at 9:47 AM, Ramya Mohan <[email protected]> wrote:

> Hi,
>
> To integrate battery into framework , if the sys fs entries are changing
> or with little modifications , the place you need to modify is the JNI
> layer of the frameworks.
>
> com_android_server_BatteryService.cpp, is the file you need to modify.
> And usually the Battery stats is updated based on the uevent from the
> battery kernel driver.
> So you need to provide that from the Kernel side.
>
> Regards,
> Ramya.
>
> On Wed, Apr 11, 2012 at 7:47 PM, Ashwin Bihari <[email protected]> wrote:
>
>> Venkat,
>>
>> The battery information should show up in
>> /sys/class/power_supply/<battery name> and Android will automatically
>> pick it up when the "hw.nopm" is set to "false" in your init.rc file..
>>
>> -- Ashwin
>>
>>
>>
>> On Wed, Apr 11, 2012 at 6:02 AM, venkat k raju <[email protected]>
>> wrote:
>> > Hi all,
>> >
>> > how to integrate the Battery to android frame work?
>> >
>> > please anybody suggest me
>> >
>> > thanks in advance!!
>> >
>> >
>> >
>> > --
>> > thanks&Regards
>> > k.v.raju
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "rowboat" 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/rowboat?hl=en.
>>
>> --
>> unsubscribe: [email protected]
>> website: http://groups.google.com/group/android-porting
>>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "rowboat" 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/rowboat?hl=en.
>



-- 
thanks&Regards
k.v.raju

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to