yashsingh1/xdaforums huggingface dataset:
[Defy General] vaserbanix:
@all

must do the replacement of battd and the calibration and wipe battery stats when the battrey have only 10%or lower then put the phone to charge untill it full+ one or two hour

in this mode you will delete all cached memoy of charging and draining the battery
[Defy General] AnTerNoZ:
i use the manual one, in the zip are other files, but who can this be, if in the zip are file from froyocce too.

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] yamandude:
hmm .. strange .. why does mine not paste it .. :P
[Defy General] AnTerNoZ:
have wipe the batstats with 9% power, but don't charge full only till 79% why is it so important to charge full?

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] vaserbanix:
because "first impresion counts":)

its create a cached files where is recorded charging and discharging the battery

thats whay is important but not a rulle to charge any time to full and discharge how lower you can support

for system

for battery doesnt count to much

li-ion battery are made for hard work with charhing and discharging without control
[Defy General] vaserbanix:
your rootexplorer is set on rw

must set it on ro
[Defy General] AnTerNoZ:
ur mean there is a cached file from the batterystats.bin file? ur know where it's stored?

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] vaserbanix:
data/ system/ "battery.stats.bin"
[Defy General] yamandude:
nope ... not letting it happen ... mounted a read only .... :P
[Defy General] vaserbanix:
you have permision from superuser?

chek it
[Defy General] yamandude:
yup.. granted ..
[Defy General] AnTerNoZ:
try with Solid Explorer or Total Commander.

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] ktmbikerman:
I still get a drop from about 63 to 48 % with the CEE battd file.
[Defy General] measel:
new battd didn't work for me at all.
[Defy General] duendetuc:
Your battery is damaged. Change the battery.

Enviado desde mi MB526 usando Tapatalk 2
[Defy General] measel:
well, it works for about two days, so no, battery is fine, or at least not damaged.
[Defy General] ManDOT:
I confirm. It's wrking just flash the zip via recovery. I'm happy happy happy thnks guys... :) :)

Sent from my defy.
[Defy General] fioda:
I've tried to apply the fix and buy a new battery, none of those solutions solved my problem. Any one knows another thing to try? The problem started around middle of may with a flash of an ICS Eppys Rom...
[Defy General] yamandude:
OMG .. which one ???
[Defy General] Jason78729:
No luck :( Tried on fresh install, tried wiping battery stats while battery was fully charged and after it dropped below 15% but I am still experiencing the battery drops. Only other way to test would be to install from sbf and try from the beginning but it doesn't bother me enough to do all that. Sorry
[Defy General] AnTerNoZ:
have u tried only the battd file or the libbattd.so also? I can try to extract the sbf's and make update zips if I found the time for that

Edit:

If ur want to extract the things for urself u can follow this Guide and ur need the MotoAndroidDepacker ur found here -> http://and-developers.com/sbf or if ur running linux ur can extract the smg file and mount it like r2beta0 says in another thread.

I have not many time for doing this cause my linux pc is not here, and my windows pc sucks ^^ I'm sorry :(
[Defy General] ela1103:
Have u tried only the battd file or the libbattd.so also? i try the battd file ,same result 38%to19% .any other solution for this problem
[Defy General] ManDOT:
The one provided by kitmbikerman.

:):)
[Defy General] chernomorez:
Tried that without re-calibration.

Same issue, plus the battery died much faster
[Defy General] joseav:
Problem persists (Defy with CM 7.1).. any other fixes?

I did the same ( Replaced the battd file, fixed the permission, rebooted the phone into recovery and did a battery stats wipe, with only 8% battery left) and then charged it to 100%. Unfortunately it didn't work... Any other suggestions?... Thanks in advance...
[Defy General] vtetuan:
Same here, with CM7.2
[Defy General] MarcinRN:
Seems like I was too fast with my judgement. This fix did not work for me too.

However, what I noticed is that sudden drops do not occur if I don't charge my battery fully (100%). If I unplug the charger at ~80% the battery will drain just fine.

What's more when I charge it, there's sudden jump from 90 to 100% which "compensates" drops.

With 46kb battd file my battery drops from 55-50% and 25-20%, with 42kb one there's one drop from 30-20%.

Have anyone tried if the same thing happens on stock froyo with 1% battery step?

Hopefully someone can provide a real fix since it might not be hardware related problem?
[Defy General] fioda:
Seems that no developer has give this bug the proper importance... With or without fix, with new or my old battery, I still have the same pattern, when charging goes from 40 to 60 and when on use goes from 40 to 20... Like MarcinRN said, the battery compensate the drop of discharging on the charging, but why did I lost the 20% of it?!?!?
[Defy General] corrinti:
ok, some observations, which might help, and which shows that it do not have to be only hardware problem.

I had some drops like 33% > 19% with differents CM7 builds, till installation of official CM 7.2. There was a post, that it solves drop problem, but in my case it get even worse and I had 3 drops from 30% to 4%, which was rather dramatic and not nice - 4% usually means that your phone can switch off quite soon.

What is funny is that battery widget showed 19%, so the number often observed by others and by me earlier.

After first and second case I tried some fixes given in the posts, with full discharge, applying fixes, wiping battery stats, using calibration - no improvement.

So installed last maniac's nightly built, and ... no drop. WTF is the rite question.
[Defy General] fioda:
What build of Manic? I can try to use the files of the battery as we tried on this post... If won't solve, I can try to flash the build even having to do a full wipe (currently on Fuzz ICS)...
[Defy General] claudiobastos:
@corrinti

could you share the battd from that Rom?

Froyo Red 525 xda premium
[Defy General] AnTerNoZ:
I tried the battd file and the lib from German stock froyo and it's not solving the problem for me, will try other stock ROM if I found time.

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] MarcinRN:
Perhaps problem lays in battery 1% step.

Once I charge my phone to 100% it takes longer to discharge from 100% to ~90% than let's say from 60% to 50%. Also, both stock froyo battd file and the one which is used in CM builds provide different battery percentage level for me.

Is battery percentage level based on current voltage or are there any other factors?

I wish any dev could have paid more attention to this issue! :silly:

@corrinti neither maniac's builds or any other fix this issue for me.
[Defy General] AnTerNoZ:
how high is ur load if ur battery reach 100% my only go up to 4.154, and this voltage i have from 85-100%load.

this is the problem for my drops i think. Android say my battery is good and with the defy from my friend it load higher than 4.154

if i disconnect the charger the battery drops to 4.099

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] MarcinRN:
Mine is similar.

The reason it jumps from 85% to 100% is that battery reaches it's maximum voltage at 85% already which would be pointing to wrong percentage readings by system.

When I was charging today it was 4153mV at 84% so I unplugged charger and deleted data/battd files and rebooted. After it booted again it showed 99% instead of 85% which was much more accurate.
[Defy General] AnTerNoZ:
at the moment i try this method:

- reach 0% defy shut down

- boot with charger cable ( stuck in and pull out at the red moto logo )

- boot into recovery and wipe batterystats

- stay in bootmenu... play a bit until defy really shut down

- now I'm at 90% with 4.018

this seems normal voltage at 90%

edit:

how many mV Defy normal have? read in some thread like 1500 defy and 1600 defy +, but think that's very wrong

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] AnTerNoZ:
it drops like without that, only the load voltage aren't shows the big jump at the end

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] @non4:
My green lense defy is 1540 mAh, btw the method where you delete "data/battd" seems to have helped my battery a little, according to Google batterystats.bin does nothing about the readings as its just for "about phone/battery use" whereas this seems to make a difference as soon as you reboot (battery reading 10% higher, which seems right as mine hangs for up to an hour on 0%) OTHERS TRY THIS IT SEEMS TO WORK

Sent from the real world by hacking into the matrix
[Defy General] AnTerNoZ:
i delete files from data/battd folder and the batterystats.bin file at 100% and stop battd process in system before and Reboot.

now i wait, try it with the standard battd and libbattd.so files from 17.06 CM9 from epsilon

[Q]

if it's possible to write a update script to del this files over CWM? with 'rm' the script fail

that the easiest way in think, if u boot at 0% battery and del that crappy files with CWM

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] @non4:
I was experiencing fast battery drain, now after deleting this file its dropping at a much slower rate. This really seems to be the REAL battery stats, I will do this every time I do a dirty install of cm7 from now on

Sent from the real world by hacking into the matrix
[Defy General] AnTerNoZ:
my drops not gone :/

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] @non4:
Try change roms, I'm on euroskank cm7.2 by FUZZ, there are still some odd jumps but the actual life of the battery is displayed more accurate rather than jumping to 0 and staying there for ages, plus its the best cm7 currently anyway as he "cherry picks" the best features from other builds, it even has the lockscreen flash toggle miui style

Sent from the real world by hacking into the matrix
[Defy General] Unr3aL67:
That is in fact nonsense. The behaviour of staying at 0% for longer time periods just comes from an uncalibrated battery.

Maniac suggested deleting the folder /data/battd when fully charged an then to restart and doing a full battery cycle (to 0% and then fully up to 100% again).

We do not know yet if it works, but at least it has an impact on the shown numbers.

One of the guys at Android-Hilfe.de deleted it at about 85% and after rebooting it showed 100%, so it is clear that the battery then doesn't know at what state it is and rebuilds its files properly. Maybe it fixes the drops, maybe not, we will see...

EDIT: Also, there is no "best" ROM. At Android-Hilfe we all love maniacs builds f.e. because of his perfect support...

Greetz, Unr3aL67
[Defy General] @non4:
I can confirm after full charge/drain/recharge it has only had 1 jump of 4%, I'm on 36% so if the jump that this thread is named by happens I will report. As for change roms I said it because my drops are in fact smaller since I installed it, never had any problems with any version of FUZZ builds, although i do agree bad calibration can cause this issue, but frankly I think the problem is CM7 itself as the battery has never behaved completely stable on anyone's builds for me maybe locked bootloader is a limitation somehow? It also happened on my galaxy mini but much worse and nothing I did changed that, I tried everything. I have never tried maniacs builds, can you give me a link? I have heard they're very good also :D

UPDATE: It only dropped from 25 to 20 which isn't so bad, perhaps another charge cycle will improve things further :D

Sent from the real world by hacking into the matrix
[Defy General] Gleim:
It went worse for me, now I got two drops instead of one :(
[Defy General] @non4:
Did you do a full charge cycle? Try charging as full as possible by removing the charger and plugging it back in until it wont charge anymore (goes straight back to 100%) apparantly this works better with phone off charging screen but I did it with phone booted, once you have done this run it completely dead so it wont turn on then charge once more to 100%, hopefully this will have a better result for you

Sent from the real world by hacking into the matrix
[Defy General] AnTerNoZ:
i really like the ics for our defys ;) the only thing is that crappy battery problem with three jumps it's not so funny. have one from 64-50 one from 36-20 and from 13-4 ... that's 20% lose ... not good but ok for me for now. try that method with del data/battd crap, but don't work on CM9 i think it's maybe the battery

ot:

have to send my phone into repair, the earpiece is gone last week... maybe i get a new ^^ i try for some new red lense, maybe my reseller do that ;) and really maybe I'm right with the battery failure and i get a shiny new defy with no drops.

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] @non4:
I game on my phone so I don't use it because of crap HWA, but its so close to being perfect its annoying! As for battery its probably just cm9 or does the same happen for cm7 and stock? Also to repair your earpiece you can follow this guide, I did it successfully and it's never failed on me since ;) http://www.xda-developers.com/android/how-to-replace-your-motorola-defy-earpiece/

Sent from the real world by hacking into the matrix
[Defy General] AnTerNoZ:
i will try if my guaranty is gone ;) but i have my defy not a full year ;) so my warranty maybe is the better way to get it back to work, but thanks for the link :)

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] MarcinRN:
I'm almost certain battery drops are caused by incorrent battery percentage readings by system (faulty/inaccurate 1% battery step?). Have a look at screens.

My battery has reached its maximum voltage at 87% already so it jumped to 100%.

Only once I let it jump to 100% the drops will occur (check screen 2 - there's a drop from 30% to 20% but there's no significant change in battery voltage).

However, once I unplug charger at level where the maximum voltage is reached there will be no sudden drop while discharging (screens 3, 4).

Conclusion: 1% battery step is inaccurate and showing incorrect percentage. At some levels (totally no idea why at those levels actually) the phone "realizes" the % level is incorrect so it will jump down and show the correct one.

This would mean there's nothing wrong with our batteries (no hardware defect or so on) - my battery is only 6months old so I doubt it has used up already.

What are your thoughts about this?
[Defy General] @non4:
There is no question its never fully accurate. However it could be more optimized, I used to have a desire z, but I drowned it :'( that's why I got a defy, for water resistance :D Anyway that phone running cm7 never had jumps, the only inaccuracy was it would stay on 100% for a bit long then the 1st 10% would drop a little faster, but a lot more stable than this! Basically I think this part of cm7 has been either neglected or blocked for improvement by the effing bootloader!

Sent from the real world by hacking into the matrix
[Defy General] vaserbanix:
on my phone with battd from froyo stock rom charge the battery untill 4203mv on froyo kernel.

on gingerbread 2.3.6kernel charge it until 4176mv.

and my method work every time.

battery drops come back only if I change the rom
[Defy General] @non4:
Can I have a link to this battd to try? I just moved out so I don't have the data for entire rom download

Sent from the real world by hacking into the matrix
[Defy General] vaserbanix:
it is posted in page 2
[Defy General] @non4:
Thanks I've just replaced the battd file, will report results when I get a chance to charge

Sent from the real world by hacking into the matrix
[Defy General] vaserbanix:
is need a lower calibration on 10-15% of battery left

and then wipe of battery stats from recovery stable, custom

then charging to full without stop
[Defy General] @non4:
I calibrated from 0, but then had to go out so its only on 14, still it would normally have jumped back to 0 by now so we will see...

Sent from the real world by hacking into the matrix
[Defy General] vaserbanix:
look in the "data/system " and if is a file "battery stats. bin" file and delete it
[Defy General] @non4:
Batterystats.bin is a myth: http://www.xda-developers.com/andro...-battery-stats-does-not-improve-battery-life/

Sent from the real world by hacking into the matrix
[Defy General] MarcinRN:
this is a myth which was debunked by google engineer.. batterystats.bin has nothing to do with battery calibration.

---------- Post added at 07:37 PM ---------- Previous post was at 07:33 PM ----------

can anyone get any dev here to take a look at latest posts? i tried pming them but guess they don't read pms from regular members:D
[Defy General] vaserbanix:
agree with you

but I see this file is created by the system in data/system and modified by it

almost all data from "data" are made by the user and the system it self after instalation

if you wipe data all system start from 0(factory settings)
[Defy General] @non4:
The stock froyo battd file seems to be helping, maybe it should be integrated into cm7 builds?

Sent from the real world by hacking into the matrix
[Defy General] fioda:
Delete the bttd folder in data improved a little the battery life, but still have jumps... What happens if I apply the Defy+ battery patch in the normal Defy?
[Defy General] chernomorez:
@Vaserbanix

Used your build.prop on my Defy/Quarx CM9/GB Kernel and followed all instructions.

Just had a drop from 60% to 50%, and then to 19%, and then to 4%.
[Defy General] vaserbanix:
you speak about battd

and if you read some posts will understand about it work for some one and for others don't

on my phone this metod it work with:

cm7

miui

miui-scotland-defy+
[Defy General] Compass Linux:
I was having a sudden decrease in my battery reading from 33% -> 19% with CyanogenMod 7.2.0 Stable after upgrading from CyanogenMod 7.1.0-11 Stable. I don't remember if this problem was also present with 7.1.0-11.

I upgraded to FuZZ_ cm7.2.0-20120624.1403-Defy aka Cherry Pick from CyanogenMod 7.1.0-11 Stable (lucky thing I had a nandroid backup) and so far so good. No sudden battery decreases yet, but I'm still yet to drain the battery entirely.

Many thanks for the member who suggested using a Cherry Pick. Been working smoothly until now.

This on my Motorola Defy.

Compass.
[Defy General] @non4:
Best builds in my opinion

Sent from the real world by hacking into the matrix
[Defy General] fioda:
It worked? Still having drops here and devs seen no to care about this problem...
[Defy General] Compass Linux:
Yes, it worked here. Without wiping cache/dalvik/whatsoever. I just went into recovery mode and updated directly on top of CyanogenMod 7.1.0-11 Stable. Of course I made a nandroid+TitanuimBackup before the installation, just in case things went wrong.

I haven't noticed any sudden drops in my battery usage so far. Very nice.

One thing I forgot to mention before was that it was charging in 02 hours instead of 03 hours (from 1% to 100%), so the wrong battery reading was also affecting my charging time.

I just looked at my battery health (Menu -> Spare Parts -> Batter Info) and it says "Good".

fioda, check your battery health too. If it doesn't say "Good", your battery might be near its life cycle.

Compass.
[Defy General] chernomorez:
Just bought a new battery, and the issue is gone. There are no more drops. Right now it is Day 2 and 59% left.

Previously, it would drop 62-50, 40-35-19-4, and would barely last till 9pm.

The new battery I got has Motorola text and logo on it, while the old one only had BF5X and some Chinese text on it.
[Defy General] fioda:
I've tried this build, no success... :(

The battery I'm using its brand new... The only thing it happened when I started using it was the change of the drop interval...

I want to throw this ****ing cellphone on the first wall I see every time a drop happens... A lot of tries to fix it and no success... :(
[Defy General] ttld1oh1:
Just got a new battery which was charged 80% when received. After charging the battery to 100%, the drop occurred at 62%-49% and 32%-19% (just like the old battery); but after fully charged, NO MORE DROP! I went through 3 cycles already without any sudden drop.

I strongly suspect that it was the battery. Besides, the old battery was slightly inflated in the middle indicating that it was worn out.
[Defy General] santi1993:
When ur batt is fully reachef, how much mV do u have?

Enviado desde mi MB525 usando Tapatalk 2
[Defy General] fioda:
Another thing I've noticed that can indicate misreading of those ROMs of the battery value. When I'm on the boot menu, battery is at 60 percent, but when I'm using the phone it shows up 75 percent. I need to try to charge in boot menu.
[Defy General] daniel_loft:
I flashed the above file and everything seems to be ok now on my official CM7.2. I think this drop has to do with the fact that at a point I flashed some CM kernel (don't remember exactly what or from where) so my phone was not 100% CEE based.

Thanks!
[Defy General] nidhish91:
Can I do this on froyo kernal too? (mb525)

Rom: wiui GB stable.

Also what permissions do I have to put in for it?
[Defy General] victorvasconcelos:
That's weird. I had this issues for months and thought it was my battery. I was hating so much my phome that I had to sell it.

Even with MIUI and other roms the problem happenned as well.
[Defy General] vaserbanix:
this is special for froyo kernel

yes you can do

the permision must by set: rw-r-r(same like others in bin)

ps. everyone

when you install any rom via CWM

can do "wipe battery stats" along with "wipe data factory reset" and "wipe cache"

before you restart the phone with new rom
[Defy General] Andromedarius:
Wiping Battery Stats did the job for me.
[Defy General] fioda:
Tried to wipe the batterystats, wipe data, delete battd file, change the battd from 2 diferent sources of froyo green leens and nothing solved... Think that the problem is from a misreading of battd file, because when i change for the one of defy+, even the battery mv changes... goes from ~ 4160 to 4200 when full... Any one tried to use froyo stock?
[Defy General] AnTerNoZ:
i have extracted the battd file from the 3.4.2-177-3 DACH Blur but that doesn't help

look in this thread about battery http://xdaforums.com/showthread.php?t=871051 looks like the root of evil ;)

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] Unr3aL67:
It's not really. The thread is about the drop from 100% to 90%. Our problem suddenly occurred in the last few months and nobody knows why.

Although a new battery seems to fix the problem I refuse to believe that dozens of batteries are suddenly damaged.

As our Defy only estimates the charge by current (unlike many other phones), there must be some kind of table somewhere that links current-values to percent.

Wiping batterystats.bin or calibrating the battery (i guess it's the same thing) does nothing at all. Also battd seems to be a file that gets deleted sometimes and is rebuilt from system, so changing it would be pointless...

What I have experienced is, that at first my drops where from 36% to 19%. The "dropspot" has slowly went down overtime and it is now a drop from 24% to 19%, so it's not as bad anymore...

Greetz, Unr3aL67
[Defy General] AnTerNoZ:
yes it's not for our drops, but i think it's possible that this misscalculation from what that thread is talking, at the begin from the percent level, have to do with our issue. maybe that table you're talking about is the same that don't provide us with the right battery level from begin. or u think I'm wrong?

Defy mit Android 4.0.4 CM9 RockZ
[Defy General] fioda:
This 12% would make a lot of diference for me too... Sometime I have a drop from 55% to 49% plus the 39% drop... Even with brand new battery... :(
[Defy General] santi1993:
How.can i fix permissions?? Sorry :x

Enviado desde mi MB525 usando Tapatalk 2
[Defy General] measel:
root explorer. or adb chmod