[android-porting] Re: about android charging detect and battery level detect

2009-01-04 Thread Sean McNeil
Hi, Android uses the standard power interface, but it expects that uevents are generated when the values change. It does not poll the values, but listens for the uevents instead. zhqzh1982 wrote: > hi all: > >is anyone know the android charging detect and battery level > detect interface

[android-porting] Re: about android charging detect and battery level detect

2009-01-05 Thread zhqzh1982
thanks ~~~ On 1月5日, 下午12时15分, Sean McNeil wrote: > Hi, > > Android uses the standard power interface, but it expects that uevents > are generated when the values change. It does not poll the values, but > listens for the uevents instead. > > > > zhqzh1982 wrote: > > hi all: > > >is anyone k

[android-porting] Re: about android charging detect and battery level detect

2009-01-05 Thread Robert Barrett
You people need a serious intervention and help. Locking yourselves up and coming up with some worthless android stuff that will not heal, help or add to humanity at all. Please accept the help. We have a plan ready to take you to treatment on the moon where there is no technology. If the mode

[android-porting] Re: about android charging detect and battery level detect

2009-01-07 Thread Qingzhan Zhang
hi: when the battery value changed i kobject_event(kobject,KOBJ_CHANGE) and when the charge plug in or plug out ,i also kobject_event(kobject,KOBJ_CHANGE) and update the POWER_SUPPLY_PROP_STATUS ,but i do not know the android's battery log changed ,always display "?",now where is the problems?

[android-porting] Re: about android charging detect and battery level detect

2009-01-07 Thread Sean McNeil
The power drivers have their own interface for that. You should be using power_supply_changed(). Also, you probably don't have the device names to what Android is looking for. Android looks for /sys/class/power/battery /sys/class/power/ac /sys/class/power/usb Use logcat and see what is going o

[android-porting] Re: about android charging detect and battery level detect

2009-01-07 Thread Brian Swetland
[Sean McNeil ] > > The power drivers have their own interface for that. You should be using > power_supply_changed(). Also, you probably don't have the device names > to what Android is looking for. Android looks for > > /sys/class/power/battery > /sys/class/power/ac > /sys/class/power/usb >

[android-porting] Re: about android charging detect and battery level detect

2009-01-07 Thread Qingzhan Zhang
I see ,there are different name in my /sys/class/power/*, thank you ~ On Wed, Jan 7, 2009 at 6:06 PM, Brian Swetland wrote: > > [Sean McNeil ] > > > > The power drivers have their own interface for that. You should be using > > power_supply_changed(). Also, you probably don't have the device na