Re: [android-porting] Battery capacity not updated

2010-04-13 Thread ZhangJieJing
Hi, what I know is battery capacity update is triggered by POWER_SUPPLY_UEVENT, 1, please ensure this UEVENT is sent, you can change init.rc 's loglevel to 9 to get the uevent dump. 2, what this command output: # ls /sys/class/power_supply I think the plug/unplug make the battery capacity

Re: [android-porting] Battery capacity not updated

2010-04-13 Thread Arun Raghavendra Murthy
Hi, The battery capacity is getting updated while plug/unplug of charger. But not getting updated while discharging. The BatteryService class is very much able to read the battery capacity, ac - online, usb - online, etc. The problem that I am facing is the battery capacity is getting updated

[android-porting] Battery capacity not updated

2010-04-05 Thread Arun R Murthy
Hi All, I am using andoird eclair and not able to see the battery capacity getting updated while charging/discharging. Wherein when I try to cat the battery capacity from the sysfs I am able to see the change. The only event that updates the battery capacity, voltage, etc in the application is