Hi ,

I am working on Android ICS. I am facing one issue which is similar to 
which you have faced.
Battery icon and status is not updating when connect or disconnect charger.

when I *connect* charger. 
Value of *cat /sys/class/power_supply/battery/uevent *is 
POWER_SUPPLY_NAME=battery 
*POWER_SUPPLY_STATUS=Charging*
POWER_SUPPLY_HEALTH=Good
*POWER_SUPPLY_PRESENT=0*
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=29
POWER_SUPPLY_VOLTAGE_NOW=8334000
POWER_SUPPLY_CURRENT_NOW=1177000
POWER_SUPPLY_CAPACITY=96
POWER_SUPPLY_TEMP=330
POWER_SUPPLY_TIME_TO_EMPTY_AVG=0
POWER_SUPPLY_TIME_TO_FULL_AVG=0
POWER_SUPPLY_SERIAL_NUMBER=001
POWER_SUPPLY_VOLTAGE_MAX_DESIGN=7200000
POWER_SUPPLY_ENERGY_NOW=62680000
POWER_SUPPLY_ENERGY_FULL=65730000
POWER_SUPPLY_ENERGY_FULL_DESIGN=40000000
POWER_SUPPLY_CHARGE_NOW=8705000
POWER_SUPPLY_CHARGE_FULL=9129000
POWER_SUPPLY_CHARGE_FULL_DESIGN=5000000

and when I *disconnect* charger 
value of  *cat /sys/class/power_supply/battery/uevent *is 
POWER_SUPPLY_NAME=battery
*POWER_SUPPLY_STATUS=Discharging*
POWER_SUPPLY_HEALTH=Good
*POWER_SUPPLY_PRESENT=1*
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=29
POWER_SUPPLY_VOLTAGE_NOW=8103000
POWER_SUPPLY_CURRENT_NOW=-402000
POWER_SUPPLY_CAPACITY=96
POWER_SUPPLY_TEMP=329
POWER_SUPPLY_TIME_TO_EMPTY_AVG=0
POWER_SUPPLY_TIME_TO_FULL_AVG=0
POWER_SUPPLY_SERIAL_NUMBER=001
POWER_SUPPLY_VOLTAGE_MAX_DESIGN=7200000
POWER_SUPPLY_ENERGY_NOW=62630000
POWER_SUPPLY_ENERGY_FULL=65730000
POWER_SUPPLY_ENERGY_FULL_DESIGN=40000000
POWER_SUPPLY_CHARGE_NOW=8699000
POWER_SUPPLY_CHARGE_FULL=9129000
POWER_SUPPLY_CHARGE_FULL_DESIGN=5000000

As you see When connect or disconnect charger,  all information is updated 
properly.
But battery status and battery icon remains of charging type. (Not updating)
Can you please provide me some information, what or where can be a problem ?
Your help is appreciated a lot.

Thanks & Regards,
Dhaval shah


On Thursday, 30 July 2009 11:15:10 UTC+5:30, John Cola wrote:
>
> Dear All 
>
> I've implemented power_supply in my charger driver, and it can update 
> charging information for the power_supply structure such as /sys/class/ 
> power_supply/battery/status .... 
>
> However, in Android Java layer of mUEventObserver.startObserving 
> ("SUBSYSTEM=power_supply") cannot receive the notification when the 
> status or capacity is changed. 
>
> What else did I miss??? Can anyone give me some clues? 
>
> BR 
> John

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to