yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] beanbean50:
we never used to wipe the dalvik+cache when flashing @courtts99 kernels, the very idea was laughed upon...

and then @bananacakes came along with his kernels and said we had to wipe dalvik+cache before flashing...

and then @droidzone came along and wrote: "NOTE: DO NOT EVER WIPE CACHE OR DALVIK-CACHE!" writing about his awesome kernels...

and now @theganymedes is saying we must wipe before flashing a kernel.

i'm confused.com
[Desire Android Development] theGanymedes:
I quoted from bananacakes - I actually don't know the role of kernel with dalvik-cache.

Also, the problems occur with erasing dalvik-cache because some recoveries (including 4EXT) erase dalvik-cache folder (which is faulty) instead of cleaning what's inside - and this makes Android crappled, since it cannot create dalvik-cache folder.
[Desire Android Development] marius.a:
i don't think it's a good ideea to wipe dalvick cache. i never do this...

anyway... i had same problem with this kernel, lags and slow on 3.5 sense, i reverted back to droidzone kernel

cheers and thanks again for this post and your research
[Desire Android Development] nomatterbv:
I flashed kbase_Smartassv2_Wififix_171211_212643 kernel and now the device is working and runing like a charm, it's fluid, it's not laggy any more.

The governor before flashing your fix was interactive, it's the same right now and I don't have any problems/issues any more.

I don't think I messed up or missed something when I flashed the fix.if you have any ideea or advise in what to do/how to flash the fix tell me and I'll do it and test it again.
[Desire Android Development] marius.a:
@nomatterbv, droidzone also made 2 kernels with this fix, you can try those too (check the link from my signature and scroll down at sense 3.5 kernels)
[Desire Android Development] nomatterbv:
Thanks for the info, I apreciate it :)

I already cheked them out and tested a few but I'll stick to this one for now, I'll see how it behaves and if it'll be needed I'll go for a new kernel.
[Desire Android Development] beanbean50:
I thought this was droidzone's latest kernel we was talking about ...hehe, well in that case both devs kernels have a few gremlins then...!
[Desire Android Development] marius.a:
i'm using now powersaver4 with calibration (the one from signature) very good kernel as speed, and batt consumes, i'm fighting to calibrate batt, i'm at office, and when reach to 3416mVto plug the charger, phone died, i will try again at home to calibrate, in rest kernel it's great.
[Desire Android Development] oruchreis:
It is going to more complicated, I think. I've read your posts here and here, and your saying in the first post "Also, the calibration data normally (I don't really know why) gets erased when you charge your device while off - the way to fix this is available in here: http://xdaforums.com/show...postcount=2112"

Now I don't know exactly what I suppose to do.

Can we simply summarize the procedure like that:

1- Install your kernel,

2- Install battery calibrator that you gave in the first post

3- Do the calibration job, with this post: http://xdaforums.com/showthread.php?t=765609 which he says set full40 1452 and set registers 66,a4 and 65, 06. Also drain the battery until 3201 mV, then charge immediately.

4- Reboot the phone

I'm confused at step 3. I mean what is the correct values for the calibration?
[Desire Android Development] theGanymedes:
Droidzone says he modified his kernel, so might have did some tricks for this. I think he is going to apply this patch to his kernels as well soon, so, you will still have the benefits ;)

I was not to upload a kernel at all actually, but then I said why not.. :)
[Desire Android Development] bone069:
I think the kernel you are using at the moment is no powersave kernel. It might be the normal with battfix isn't it?
[Desire Android Development] theGanymedes:
At the step 3, the values at that guide is completely accurate, you should use them as they are, unless you know what you're doing.

After you completed those steps, you can see this post (and example there) to find out what to do: How to make your calibration permanent - example
[Desire Android Development] theGanymedes:
OMG Guys, I can't really believe you: you were using a Gingerbread Sense 2 kernel to run a Sense 3.5 system - of course you'd have lags and stuff.. Sense 3.5 kernels are adjusted to run more smoothly while the one I published doesn't have such stuff. I thought everyone know bananacakes doesn't have Sense 3.5 kernel :)

Then what you've got to do is to make your developer patch his/her kernel if they have the same bug.
[Desire Android Development] marius.a:
Well, honestly i had no ideea that bananacakes it's not optimised for sense 3.5. :D
[Desire Android Development] Alex-V:
Ok..after i cqn not figur out whats wrong with this line...checked the rej and also all other...i changed this manual...and now it compiles..lol
[Desire Android Development] Nutterpc:
I tried this kernel with my desire, and it wouldn't boot. Went back to Man-U 2.1 and it did
[Desire Android Development] ironjon:
But manU is aosp kernel...

And this thread is about sense kernel

Tapatalking
[Desire Android Development] Sally Mack:
I also tried the flashable zip kernel on my desire running Coolexe's BravoS v10, and it wouldn't boot. Any help guys? Seems like something isn't right with the zip.
[Desire Android Development] ironjon:
What kernel you get before?

Tapatalking
[Desire Android Development] NeoEpsilon:
May I ask which one..? :D

VDD..? SVS..? HAVS..? 2WAY..?

Thanx...
[Desire Android Development] theGanymedes:
no 2 way, but with HAVS.
[Desire Android Development] theGanymedes:
I used it myself and it's ok. Try re downloading, maybe your zip is corrupted?
[Desire Android Development] Sally Mack:
Downloaded again, flashed again, same result :(
[Desire Android Development] Sally Mack:
Bananacakes slightly modded by coolexe for his rom I believe.
[Desire Android Development] NeoEpsilon:
Hmmm...

Do you have spare time to compile a CFS/NO2WAY/SVS..? ;)

Currently using Gingercakes 0.9 CFS/NO2WAY/SVS compiled by coolexe in his kernel pack...

Just in case of other request, maybe a pack like coolexe's..? ;)

Like the one here...

http://www.cooldevs.com/archives/90

Only if you have the time though...

Thanx in advance...
[Desire Android Development] marius.a:
@devs, i fallowed the tutorial and i have a problem and a question and need your help.

on this point:

"2. In the Learn Prep tab:

a. set your aEvolts to 3201 (type on each line: Register:0x 66 Value: a4 and press save)"

all ok with setting, but my batt it's very used and old, and battery calibrator can't catch value "3201" and phone closing, i tryed 4 times, i can't catch that value,

now by default (value before i change the settings was "3416mV", value which i could catch it but i was too late to plug the phone) i want to change back the value from 3201 to 3416 but, this i can change it from register line 0x66, but what value? so value a4 is 3201mv, but a4 transformed from hex means in fact 164, and 3416 in hex is d58, so, if value a4 means 3201 (c81) what is the value of 3416 (d58)?

EDIT: fallowing math rule... if 3201 is 164, that means 3416= 3416*164/3201=175.0153 which means in hex 175=af, so => that to change back to 3416, value 'af' is corect one?

thank you
[Desire Android Development] Alex-V:
will look to that tommorow....as i also cant get this value...phone shuts down before..lol...thx

with kind regards
[Desire Android Development] theGanymedes:
It's perfectly OK if you can't get to 3201 mV, but you should remember at which value your battery shuts down - because this is necessary to maximise usage of the battery ;)

well, the information of the register value format is available on the DS2784 chip spec. sheet; but let me save you from that: the register 66 holds the Active Empty Voltage (the voltage your battery dies) in units of 19.5 mV. So, if you're to write 3416 there; you should divide it to 19.5 then write it.

So, for 3416 -> 3416 / 19.5 = 200.8 ~~ 201 -->

C9
[Desire Android Development] theGanymedes:
I recompiled another one, rezipped and reuploaded - also tested with my device and it boots, so check the first post again ;)

About SVS one, if I can find time I can compile it at wednesday; if I can't, you have to wait next saturday :/ Sorry...
[Desire Android Development] Sally Mack:
Thanks for all your work. I re-downloaded once from my phone, and another time from my computer. Both times result in a hung boot screen. Tried to grab a logcat, but the phone doesn't get far enough to connect to my computer.

Has anyone else tried the flashable zip?

Thanks!
[Desire Android Development] erklat:
I had the same issue last night. Tried three times and managed to prevent it to shut down in the end. It hasn't succeded after all even thought the learn cycle has been completed, since after reboot it still shows 100% Age and 1393mAh aged capacity? :confused:

Droidzone's kernel.
[Desire Android Development] marius.a:
Thank you, i didn't knew about this 19.5.

Now i think i got it. That's quite easy now.

Thank you again.
[Desire Android Development] theGanymedes:
Aged Capacity doesn't change - it's normal. But the age might have changed - could it be possible that your battery is still unaged? What mAh value was it showing when cycle ended?

Learn cycle can be interrupted, if charge current goes to minus values - it should always be positive and smaller than 20 mA in order for it to complete successfully. It's why you should not touch your phone and should minimize the usage as much as possible, so that learning can be completed successfully.

I think you have failed on that part. Try again.. (I know it's annoying but well, I did mine at the third time :) )
[Desire Android Development] erklat:
I left the phone in airplane mode seconds before I went to bed. I checked two times to make sure it didn't turn off seconds after I plugged it in, and after that it was left alone overnight, so the chance it was interrupted in the critical 80-100% stage is pretty slim.

My battery is 16 months old. There is no chance of it's age being 100%. But since that app succedes in one out of three times I got bored by it as that process is really tiresome, I knew about it since I tried it in the August last year running oxygen. So I dug out on Cyanogenmod's forum that battery ages about 1%/month. So I assumed it might be my value, increased it a bit and inserted it into your equations and edited the registry with the values I got as described in your great guide. Who knows, maybe I was lucky guessing so my experiment succedes. :)
[Desire Android Development] ironjon:
It works for me :)

Last night my desire shutdown at 2%

Thx very much!!

Tapatalking
[Desire Android Development] nomatterbv:
Good news guys! I finaly did it, calibrated the battery and I don't have any more the shut down issue/problem at 15% and calibrated the battery too.

Here is what you have to do:

1. Download the BatteryCalibrator.apk from #1 post,

2. Set your screen time-out to 10 minutes,

3. Run the app,

4. Go to Menu - Settings and:

a. CHECK: GPS polling, ACR adjustment, advanced options,

b. UNCHECK: Airplane and Wake lock.

5. Go to LearnPrep tab:

a. Set age: 100% --> save,

b. For OEM batteries set mAh: 1452 --> save; for aftermarket batteries set mAh: 1650 --> save

c. Register: 0x66, Value: a4 -> save

d. Register: 0x65, Value: 06 -> save

e. Register: 0x10, Value: 04 -> save

6. Go to LearnMode tab,

7. Scroll down and Set Detect Learn Mode to ON,

8. When Real-Time Voltage (µV) <= 3201000, i.e. when the battery is “empty”, the app will prompt you to quickly plug in your charger,

9. If you were successful here, the learn-flag LEARNF will now be lit and your battery charging,

10. LYPTFA - Leave your phone the .... alone,

11. When charging completes, the CHGTF flag will be lit, Battery Status Register 0x81 displayed, your battery calibrated,

12. Unplug. Reboot and enjoy your new battery life :)

Note: I have a stock 1452mAh batt

After a lot of searching, coffee and smoke I found out how to REALY calibrate the battery.

NOTE: ALL CREDITS go to paschadee from the oxygen forums!It's not my work, I don't take any credits for this!

If you need more information about the calibration you can visit the forum and read more, Here is the forum located.

If it helped don't be shy to hit the Thanks button >_<

Best regards.
[Desire Android Development] theGanymedes:
Well, trial and error is a way to calibrate the battery too :) Just test your new value and if you're living problems; change it. ;)

The learning is really annoying sometimes: mine, once, was failed because it went to ~ -1 mA while charging when it's about to complete - and I had do deplete it all over etc... :)

Actually, the value you should use is kinda obvious: if your Desire shuts down at 15%, your new age is approx. 85%, so you can use this value as well to calculate other stuff. The thing is, there is a chance you might have used a higher value and thus not using your battery's capacity fully; or used a lower value and your desire will shut down at, say, 10%. You can easily overcome the latter, but the first problem is not so easy to detect :)
[Desire Android Development] erklat:
Mine was going off at 8%. I find it hard to believe that after 16 months it aged only 8%; furthermore in August it succeded an it was 88% then. I can live with battery not using fully, but I hate when things are not the way they are supposed to be.
[Desire Android Development] Alex-V:
well...also find the thread now..lol..thx for reposting

anyway...i´m now at b1 that means 177 ( http://easycalculation.com/decimal-converter.php )

that means 1341-2 and my phone reach the value...the learn flag come...i pluged in...and some sec after...phone shuts down...?!?!?

with kind regards
[Desire Android Development] theGanymedes:
I didn't understand what you mean. What do you mean by "you are at b1"? What is 1341-2 ? mAh value? Voltage? Learn flag comes when your last two ampere value is greater in magnitude than 200mAh and negative; and also your voltage level is less than Vmin (which is 3201 normally, but you can change it (register 66 and 65 sets those -> a4 06 sets it to 3201).
[Desire Android Development] marius.a:
Or you can try a5 (3220) if phone doesn't reach 3201
[Desire Android Development] erklat:
Went of at 15%. Maybe it needed one more cycle. :o

But as it was empty, I gave it another try with the app. Turned off all syncs, airplane mode, cpu frequency fixed at 998, so I hope it will be a success this time.
[Desire Android Development] Alex-V:
Register: 0x66, Value: a4 -> save

instead of a4=3201 (not reached this) im now on b1=3451,5

now i see the learn flag...plug charger....it load some sec....but finally the phone shuts down...mmmhh

with kind regards
[Desire Android Development] mohsinraza:
Hi all.

I'm running Runnynede&Bliss mix by wmjan 2.3.5 sense 3.5 on gingercakes 0.8e. I'm on stock radio and cm7r2 hboot.

My phone shuts down at 20% and it's been like this since long. I'm still new to this so I really don't know how to figure this out.

I read the thread and found people complaining apart from one post who said he made it work.

I'm away from computer. So I can't take any risk while flashing the files. I just wanna confirm will this work for me? I've downloaded the Kernel and calibrator app. Made a nandroid backup as well.

1- install kernel.

2- Reboot and calibrate the battery.

Right? But will that work for me considering my device's structure?

Sent from my HTC Desire
[Desire Android Development] bgumble:
same here, I can't prevent the phone from shutting down

EDIT: uups, sorry, my ROM doesn't have the right battery driver - my fault.
[Desire Android Development] theGanymedes:
Well, I never tried to make the calibration under Sense kernel, but it might be because that Sense kernels do have separate battery and power supply drivers; and power supply part doesn't refresh itself as often as battery part does. Due to this, once the device hits the minVolt value, the device might turn itself down.

What's the percentage when you hit minVolt? How long does it take to shutdown when you don't plug your charger in once it hits minVolt?
[Desire Android Development] Alex-V:
hope i explain this right..my english..lol

the batt cali app...set the % (Capa mAh) new...if the real voltage is too high and Capa at zero...so eg.: if i´m at 0-1 % battery...it go back to 15-17 %...now i drain again...and can see the flag....etc

will make a test and set..Register: 0x65, Value: 06 -> save , not to 06...if i set to 00 the min Chg Curr (mA) is 0 instead of 20...maybe it will not shut down...(hope i have understand this right....that this value is the min...thats need to charge the phone)

with kind regards
[Desire Android Development] theGanymedes:
min Chg Current value is the value which the device will determine when charging is over! Don't decrease it!

Device shuts down because (any of the below):

1- Battery voltage level reaches below minVolt value

2- Battery percentage hits 0%

3- RAAC (current capacity) reaches 0.

For some reason, as I can see (since 2 and 3 is handled by app. itself) the first reason causes your device to shut down - even though charger is connected. I don't know why this happens, since I didn't check the power supply drivers yet.
[Desire Android Development] oruchreis:
It's weird and good thing that my battery goes for two days+ now after the calibration. Before that it was draining in a day. Does this calibration has any affects on recharging? Or something else trigerred this?
[Desire Android Development] theGanymedes:
It does. It's recalibrating the battery, so that you can use the full capacity of it. Especially, if you are changing (changed) ROMs too much in the past, you battery becomes uncalibrated (as I shown at the first post: HTC Battery drivers were filling the battery registers with wrong values).

I lived something similar myself: I actually downgraded the capacity of my battery, but now my discharge graph shows that my battery depletes more "stable" manner. This might be the reason as well.

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

BTW: For those who complain about my kernel being laggy on Sense 3.5: I verify this. The reason is the CPU Scheduler: BFS doesn't seem to like Sense 3.5 much, causing lags. When you use CFS, the ROM becomes much more responsive.

I compiled a CFS version, and uploaded to the first post. If you're unhappy with the BFS version, try that one and maybe you'll like it more ;)
[Desire Android Development] nickk67:
I'm using miui with manu kernal and my phone shuts down at 15-20%.

Is this method applicable to me? If yes, I just have to flash ahmet-exp3.zip and use the attached battery calibrator app, right?

What does the patch and the cfs version do?

Thanks in advanced.
[Desire Android Development] Saenic:
HTC should hire you :D
[Desire Android Development] Alex-V:
mmhh..just tried with your kernel to exclude if its my patched kernel...but the same...anyway...maybe my battery is just trash..because i´m a everyday loader ;) :) will try a more higher value
[Desire Android Development] Alex-V:
[BATT Fix][GB SENSE Kernel] Calibration under Sense and solution for 15% shutdowns!
[Desire Android Development] mohsinraza:
Would someone please answer my questions that are a few posts back?

Sent from my HTC Desire
[Desire Android Development] Alex-V:
i think no answer because you can answer this urself...anyway you are right with what your write...but you dont need a backup...maybe only the kernel that you have on phone / rom...as flashable zip...also no wipe of dalvik...etc :)

with kind regards
[Desire Android Development] Sally Mack:
Just tried this kernel and it boots fine for me (If you recall, the BFS one didn't boot).

Will have a read up and try the calibration later on tonight.

If I revert back to my current kernel without your code changes, will the calibration remain intact? Apologies if this was asked before and I missed it.
[Desire Android Development] mohsinraza:
I don't know how to backup my kernel as flashable zip :/

Should I go for this?

Sent from my HTC Desire
[Desire Android Development] Alex-V:
ok :) its like i said my battery is not the best...

and seems your are right theGanymedes.. :) Battery voltage level reaches below minVolt value

so i´m now on 0x66 - b8 (which means 184*19,5=3588) and can get to learn mode and after plug the charger...it load and not shut down..lol...

with kind regards
[Desire Android Development] Alex-V:
you wrote that you use gingercakes 0.8e. at the moment...just search the forum...and download it :)
[Desire Android Development] Alex-V:
i say yes :)
[Desire Android Development] mohsinraza:
Ok thanks. :-)

Sent from my HTC Desire
[Desire Android Development] theGanymedes:
If you use AOSP ROM, it will stay; however if you use SNQ's or bananacakes' Sense kernels, it'll be broken again.

As a Sense kernel, Droidzone's kernel has the fix, as I learned today, so you can use Droidzone's batt-fix kernels as well.
[Desire Android Development] mohsinraza:
Last Question :-)

I've read that flashing kernels and radios while being on Any other HBOOT rather than stock will brick the device. I'm on CM7R2.

Advice?

Sent from my HTC Desire
[Desire Android Development] Alex-V:
kernels can be flashed without a problem...and do not clear dalvik
[Desire Android Development] Alex-V:
thx for info... ;) :)
[Desire Android Development] Alex-V:
so, is it right that for permanently calibration we must do this step..?

http://xdaforums.com/showpost.php?p=23400262&postcount=2119

thx :) with kind regards
[Desire Android Development] theGanymedes:
Yeah, but I'm not as sure if the "Aged Capacity" part is necessary. After once full charge and discharge, AC register was not used at all - so just change Full40 value and it's enough ;)
[Desire Android Development] Elemetrix:
Interesting thread, I think my record is a shutdown at 22%!
[Desire Android Development] NeoEpsilon:
And you said it would be on Wednesday...

You liar... :D

Thanx a lot...

Gonna test it now... ;)
[Desire Android Development] erklat:
Calibration was a success on aosp rom. :)

Then I restored my nandroid backup with compatible kernel, and I see battery age remained. So whoever has issues calibrating under Sense (Alex?) the least time consuming is to flash Oxygen and calibrate the battery in it. So now I'm going to calculate the values in order for them to stick. I'm so happy now :D

Also this app is most useful when calibrating ;)
[Desire Android Development] ironjon:
ahmet-exp3-cfs-svs is really faster running in a sense 3.5 rom

Thx
[Desire Android Development] Alex-V:
Nice..thx for answers
[Desire Android Development] tyfoxx:
lets See

Gonna Try this on my CoreDroid DHD.
[Desire Android Development] erklat:
DHD has the same issues?
[Desire Android Development] theGanymedes:
Now:, if you didn't follow my steps to "make calibration permanent" (follow the links at the first post, please), you're prune to lose that calibration!:

1- Charging when device off: For some reason, battery age is reverted back to the 94% when you plug your charger while the phone is off. It's why, I recommend to change (decrease) full40 value, instead of the age - this way you make the calibration permanent even when you charge your device off.

2- Using "unpatched" Sense kernel: Unpatched Sense kernel change your ACR (capacity, shortly) values incorrectly on full charge, making your device think it has more juice than it really has - causing high-percentage-shutdowns. Try using a patched kernel (Droidzone and I offer some) or patch the kernel source yourself and use it.