[Touch HD Android Development] camro:
hi, i did a lot of research for the battery consume, shutdown, correct current % on battery.

TESTING KERNEL

1.) battery fixes (credits to crazyvirus) - i tried only to make differnt algos

2.) incall volume (credits to jonpry, wozzer, acl, etc ..)

2a) small fix for incall volume to support also for blackstone (credits to OliWe)

3.) AC + USB loader recognition (credits to OliWe)

this kernel (speically the battery fix -i only compiled for blackstone yet ...)

-----------------------------------------------------------------------

here i will provide a blackstone implementation - based on *viruscrazy* battery fix which is under testing for topaz, rhod, diamond, raphael, etc ..

in this version i made a lot of debug messages in kernel logging (dmesg).

! This kernel is under develment and based on latest kernel of 9.9.2010 + battery patch from *viruscrazy* (all honor to him) + blackstone support !

If someone wants to test - i would be happy to get infos about this kernel.

@all

if you want help me:

what i need: i would need to load the device fully ex: on WM or switched off. then boot to android and then use the tool: *BatMan* Logger (get it from market) and activate logging to sdcard.

! then i would need to let the phone on (display on) - and take care that the phone is all the time using contant battery . it is not necc. to save as much battery as possible. the most important is - HOLD THE BATTERY CONSUME SO CONSTANT AS POSSIBLE, and let run out the battery - til it switch off.

Then recharge the phone - and please send me the log from *BatMan* logger

cu camel

attached the kernel

PLS: you can log all details: via: cat /proc/kmsg | grep battlog > /sdcard/battery.log &

there are a lot of informations now in the kernel,which i need to check it better ...on future version - i will remove this debug logs from kernel.

EDIT:

sorry, forgot to add the new kernel ...will be online in few seconds ..

EDIT1: made a new version - (no wlan for now, because GIT is down ..)

EDIT2: my first tests arelooking good ...

normally if you measure the time in WM ... WM is also not a good algo - i mean ....

for me: ex: if i use my phone with a constant discharge of battery i want a linear BATTERY-LEVEL ...

as you can see in this picture - i reach it now forblackstone ...

(BLACK is the calculated % - which is now also logged to kmesg - the system can show different things ...)

(YELLOW is my algo to reach the battery drain curves ..

(PLS: the values which you can see in android - are only ok now if not connected to AC or USB ! - algo on charging i must test more ...

EDIT2: add new kernel for testing:

EDIT3: replaced the kernel + modules -> with a newer fixed version. now the charging process should also be ok (not fully tested, but should much much better ...

fixed now: charging and dischargoing recalc + included in modules the wlan driver

EDIT4

NEW KERNEL: fix for:

.) INCALL VOLUME - working

.) BATTERY volume display - working (maybe we must adjust it)

.) BATTERY type charger recognition (USB or AC)

EDIT5:

new kernel - new calc algo, better logic + made kernel for all systems (rhod, topaz, diamond, raph, blackstone)

optimzation of battery values only checked for blackstone 1350mAh, but now it is possible to use the kernel for all system + then logging is necc. to adjust the other battery tyes.

EDIT6:

.) rewrite the algo for discharge and charging ...

.) fix for invalid values (sometimes only display 100% fixed)

.) power consume should be better now

.) difference from charging to discharging now should also be ok

.) poweroff patch

see attached ... 3_*