yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
All right, my phone is back to life. However, battery problem seems to persist. To sum up, this is all I've tried so far without success:

- Different kernels, roms, radios, bootloaders

- Repartitioned and reflashed phone entirely, to my knowledge only EFS partition remains as before, all other software should have been reset by this action

- Different techniques for resetting / calibrating battery

- Disconnected all unnecessary peripherals

- Exchanged display, capacitative touch buttons and charger connector board

Things I've noticed that

might

differ from phones without battery problems:

- Famous clicking sound from earpiece speaker

- Charging while turned off takes long (endless) time to step from 99% to 100%

- Increased heat dissipation around back camera, compared to rest of phone

- Everything works fine, no bugs, crashes whatsoever except battery problem

- I have once accidentally tampered with my EFS partition (was a long time ago, don't remember whether there is any connection to battery problems) by copying files to it and filling it completely (no space available). Dunno whether I broke some essential files by doing that

I am really running out of ideas what else could be done, so I hope that one of you guys who sent phone back to Samsung repair will eventually get a detailed response of what was fixed.

---------- Post added at 10:09 AM ---------- Previous post was at 10:03 AM ----------

So you are saying that wiping with GS2ROMNuke (which I have done a thousand times) and flashing stock firmware did have some positive effect right?

I don't expect that the problem is immediately related to the bootloader as I have used different ones with no success. What I suspect is that the charging procedure of the bootloader makes use of either some underlying EEPROM registers that only Samsung knows how to reset / correct or some files on EFS partition (which is afaik the only piece of software that remains the same throughout all flashes.

[MENTION=1194199]megosu[/MENTION]: Are you still around? :)
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
However, I just came up with a new theory, keeping in mind dbrezancic's observation that the battery is slowly getting to 100% when phone turned off (in my case, that's never the case).

[MENTION=4355376]Karpfenhai[/MENTION], it would be nice if you could elaborate the possibility of the following scenario with me.

Could it be that the fuel gauge chip artificially controls the charging speed of the battery to prevent damage to it? Afaik, LithIon batteries have some kind of saturation phase in which they are not charged with full speed anymore as the cells get saturated (close to 100%). If now for some reason (previously inserted smaller battery, resetting of battery stats when not fully charged) the fuel gauge chip thinks that it is already close to 100% charge while it actually isn't, it might slow down the charging rate significantly, leading to the situation that the battery takes rather days than hours to get completely charged and furthermore never resets the battery stats at 100%, as 100% are never reached. This would in turn lead to the situation that if you never charge the phone to 100%, which would take some days in the described scenario, the information about the actual capacity of the battery will never be updated and thus the same scenario would occur again and again.

Any thoughts on that? Has anyone of you who experiences the same problem ever used a low capacity battery in your phones and / or wiped your battery stats when not at 100%? I must admit that I did both, used a 1200mAh no-name battery as a backup for some time.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
Hi Pi-xel,

when I had the issue, I used an external charger to fully charge the battery and I still had the drain.
[Galaxy S II Q&A, Help & Troubleshooting] Hk.Tang:
I take my phone go samsung services point checked, They said was hardware motherboard problem :mad:
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
I also start believing its the system board itself.. sorry..
[Galaxy S II Q&A, Help & Troubleshooting] dbrezancic:
Hi,

I dont know what is the reason, but I have much lower battery drain cca 1,5%/h or a little lower 1,35%/h with g2 network.

Now I try to test with new battery 2100mA...and drain is about 1%/h on g2 network....all on iddle; during night (cca 8 hours) phone is on airplane mode ...

I am now on stock ROM, newest one, XWLSS (XEU), no root for now...earlier I was on STOCK ROM XWLSD ...root and no root etc....

So, one main difference is firmware, maybe that is the reason for much lower drain (6% to 1,5% ). And, as I mentioned earlier, I had used GS2ROMNuke for wipe device and also CWM recovery mode (format, wipe...) prior to install LSS firmware over LSD...

With rooted phone on LSD I do also RESET FUEL GAUGE CHIP a few times.....

And again about charging....now I have to wait about 10 min more to get full charge notification (phone is on) when I reach 100% charging .

Earlier, I waited hour or even more.....

Hope this can help ....

I didnt try any other bootloader... and I have no any ideas any more...

Regards
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Just another shot in the blue: Those of you who experience the same problem as I do, do you switch your sim card quite often or have you ever used a dual sim adapter in your phone?
[Galaxy S II Q&A, Help & Troubleshooting] diko adrian:
I'm afraid I don't..

What's the matter?
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
Same for me, only had 1 SIM and rarely removed it.
[Galaxy S II Q&A, Help & Troubleshooting] darth.revan:
Battery drain in deep sleep

I've read through this whole thread and I have this exact problem with my i9100. It loses about 8% per hour in deep sleep, with mobile data, wifi, bt and everything else off. I havent recorded the drain in airplane mode yet, but I'm pretty sure it's not less than 8% per hour in any case. I posted about this in the BBS thread and I was redirected to this thread. Also, I don't think I can hear the clicking sounds when coming out of the airplane mode.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
Hi,

any news about your BBS in airplane mode ?

have you tried to flash stock rom and test for a while without installing anything to see if the battery drain was still present ?
[Galaxy S II Q&A, Help & Troubleshooting] darth.revan:
This started on stock rom so I don't think flashing back to stock will help. I also have th eMMc brick bug, so I have to extra careful about flashing to stock.

I've recently tried switching modems, but the issue has persisted. Additionally, my wifi chip is dead. Do you think that has anything to do with the drain?

I've attached some screenshots. These are with everything off, including mobile data. I'll create a fresh Airplane mode dump and upload later today.
[Galaxy S II Q&A, Help & Troubleshooting] diko adrian:
for everybody who has this annoying problem, in my opinion, the main cause of the battery drain is damagen IC chip on mainboard..

it causing an electrical leak from battery..

and mine just got worse, it's heated up even when it's off, after I consulted to samsung service center the IC has been damaged..

so I have to replace the mainboard which is cost me about $150. .

annoying, huh?
[Galaxy S II Q&A, Help & Troubleshooting] darth.revan:
Can you tell me what temperatures did your phone reach? And did you also have the dead wifi issue?
[Galaxy S II Q&A, Help & Troubleshooting] diko adrian:
57 C degrees at idle..

and yes my wifi is working, not bad huh? :D
[Galaxy S II Q&A, Help & Troubleshooting] minkov:
Hello everybody

I read all the thread....yes that about how much desperate for help :\\

So, i bought about a month ago a second hand SGS2. The buyer says everything is OK. it is, except that battery thingy

I didn't test under BSS or other management apps, but it's definitely hardware problem. Two batteries of mine pass drain tests with turnigy accucel 6 (a smart multy - chemistry battery charger). both batteries prooved to be 1600mAh..

In my case the battery won't last two/ three hours on flight mode, even after full charge

I didn't do the speaker test, but i have an interesting (and very frustrating) observation:

I noticed that the phone gets real hot even during flight mode and normal operating (3g network, no data )

So, i thought it must be a messed up IC chip causing this. I disassembled the phone and powered it half-naked.

Traveled a bit in YouTube and wait the battery to drop. as it did, i tried to touch some of the IC chips to check the temp, i knew the heating must

Be created there somewhere. And, it did. The heating in my device comes from U501 or its manufacture name "MAX8997".

This chip responsible about battery management, fuel gauge and protection of the battery from over or under voltage conditions

The problem must rely there. the chip is messed up causing the device to drain massive current which empty the battery.

Would happy to know about some other mates here (some who are really desprate as i am) who tried it and confirm...

The frustrating thing about this is that it cannot be replaced, only be Samsung or a very sophisticated machines can do it and its not easy for consumer to access those. That's why the only solution is to replace the whole motherboard. soldering this part is way too difficult

This part, U501 is detailed here in the zip file i got from one of the members here in the forum,

MistahBungle

Check the 08-GT-I9100-TSHOO-7 PDF to see the messed-up part in page 2. its also called PMIC...the zip is available to download here:

f2h.co.il/7ezfek416pz1
[Galaxy S II Q&A, Help & Troubleshooting] diko adrian:
so what r u planned to?

replace the IC or the whole motherboard?
[Galaxy S II Q&A, Help & Troubleshooting] zipper3:
Hello everyone,

Did anyone manged to overcome this issue? I have the same sindroms on my 2+ yrs old i9100.

Maybe its just a dead chip or some other hardware block, so the only reasonable way is to change a phone?

Thanks for any help!
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
Hi,

in my case, the phone was still under warranty, I believe they have changed the mobo but I couldn't get a proper report from the service center.

Never had this issue again after that so it was definitely hardware.

Good luck
[Galaxy S II Q&A, Help & Troubleshooting] zipper3:
Congratulations!

Mine lost 19% (from 64% to 45%) through this night ~ 8 hrs being completely off. I will remove the battery for the today's night.

By the way, my battery is new.
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Some other observations:

I compared our BBS dumps to the one I referred tom yesterday in BBS thread (http://dl.xda-developers.com/attach...8/BetterBatteryStats-2013-02-25_013732375.txt). That is from a user who also has i9100, but obviously does not have the issues we have.

I found two wakelocks we have and he does not (although the counts and durations are small):

- PowerManagerService.Broadcasts

- AudioOut_2

@Karpfenhai: Do you know anything about those wakelocks?

And another thing I'd like to mention: Yesterday, after removing my SD card I suddenly had 99% awake during screen off, caused by AudioOut (don't remember whether it was AudioOut_2 or AudioOut_3), but the battery consumption did not increase much. When I rebooted, the wakelock was gone again. Could this be a reporting bug in BBS? That we actually have this wakelock all the time but it just is not reported (in the right order of magnitude)?

---------- Post added at 12:38 PM ---------- Previous post was at 12:36 PM ----------

Hard to tell, as my graph is already more than 1 day long (did not do a full charge since) and I cannot see slight differences anymore.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
I can't open the BBS dump in your previous post.

Did you manage to check his hardware version ?
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Original post: http://xdaforums.com/showpost.php?p=38489335&postcount=13663

Hardware rev seems to be the same.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
same version as us (smdk4210).. are you sure he doesn't have the issue ? he could have it without noticing it..
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Not entirely sure, but he has a lot more activity ("only" 91% deep sleep) and still is under 1%/h. Dunno which type of battery he uses though. Nevertheless, there are some other users in BBS thread that have similar results, this was just the random first pick I found when looking for an example.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
can you post a screen of your battery usage so we can see the awake periods ?
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
Re: Battery drain in flight mode around 3%/hour

Unfortunately I don't have a current dump but two screens from last week,I didn't update the Rom since then:

Audio_out could point to viber if it's not set to use system sounds but this is a known issue.

I'll try to make a valid dump tonight.

Tapatalked from my Galaxy SII
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
Can you expand your battery graph (from default android battery option) and show us ?

Wondering if you have long awake periods like us.

@pi-xel: can you upload it too ?
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Attached my screenshot, you can see the period in which airplane mode was active (radio + wifi off) and in which my phone should have been sleeping. But you also see that it is not in deep sleep for ~half the time and that battery consumption is indeed increased during this period.
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
I don't have viber installed.

---------- Post added at 02:11 PM ---------- Previous post was at 01:52 PM ----------

@megosu: Do you have a screenshot of the percentages captured in android battery monitor?
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Maybe we can evaluate the difference between BBS and Android battery stats with the following method:

(1) Install Android SDK on PC

(2) Give phone a full charge to reset Android battery stats

(3) Set it to airplane mode

(4) Unplug it and leave it alone overnight

(5) Dump BBS

(6) Plug it to PC and execute "adb shell dumpsys batteryinfo > out.txt" from directory <SDK_root>/sdk/platform_tools (this will save extensive battery, hardware and wakelock information on which the stats displayed in native android app are directly based on)

By the comparison of both dump files, I guess that we should be able to identify the difference.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
never tried ADB, do you mind doing it ?

I will try also tonight, I will leave the phone running for 1 or 2 hours and I will do dump + ADB.

we should also ask in the BBS thread... (I did already :) )
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
have a look at these screens...
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
Re: Battery drain in flight mode around 3%/hour

Additional hint, check also your alarm section within bbs, simply divide the total time trough the count of alarms and you will get the minutes / second your phone was awake.

You can also zoom into the graphs from bbs to get a better picture.

Tapatalked from my Galaxy SII
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
I don't get it...

can you explain it with my BBS log from post 16 : http://xdaforums.com/attachment.php?attachmentid=1854912&d=1364978656

thanks
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
Re: Battery drain in flight mode around 3%/hour

I would but your dump looks perfect to me.. plus we are on the same Rom... damned.

Let me try to explain, a alarm (wakeup not wakelock) will cause your phone to not deepsleep for at least 6 seconds, this is not much but if you get thousands of alarm, they sum up a lot.

For example am app has caused 200 alerts over night, the app itself will show up with around 250 seconds cpu time in bbs, so just 4 minutes out of let's say 7 hours, good...but there are another thousand seconds "overhead" caused by this particular app which are not counted or at least not bonded with this app, so you will see fifteen minutes awake on system battery monitor probably masked as Android OS.

People often tend to forget about alarms, that's why I wrote this initially but in your case.. what about posting a dmesg to analyze?

I afraid we will not see much but anyway it's worth a try.

Do you see any logs in/data/log?

Tapatalked from my Galaxy SII
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
here is my dmesg file taken this morning as soon as I woke up the phone.

I had to zip it... the TXT extension was exceeding the limit of the forum (by 0.8KB...)

I have added my empty logcat... too. It says:

Unable to open log device '/dev/log/main': Permission denied

Do you see any logs in/data/log?

--> I have a file called:

dumpstate_ril_RESET_BY_CP_SILENTRESET_20130403142241.log

but the oldest data are from this morning (04-03 10:37:59), not last night,

should I get a copy after leaving the phone aside for 1 or 2 hours ?
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
Re: Battery drain in flight mode around 3%/hour

give me some time to read this with care, in the meantime, as requested some screens for you, I was an hour in flight mode:

As you can see, there is a flat line with no awake at the end, the same in bbs:

You can directly compare the stats.

Now let's have a closer look to this hour:

Nothing so far and as expected.

Will read your files now.

Tapatalked from my Galaxy SII
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
this is great, thanks for helping us :)
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
Re: Battery drain in flight mode around 3%/hour

The ril reset shouldn't occur..

Okay, according to your dmesg the phone sleeps well, so bbs isn't reporting anything wrong here!

Let's do the following, switch to flight mode, reboot while in flight mode, let the phone idle one hour, check the drain. If there is no, then we can be sure it's related to the device radio part, maybe it does not accept the shutdown command from the system somehow..

Baseband / modem is(afaik) the only independent part of the device, it will also work if the cpu is sleeping completely, so it shouldn't be active in flightmode at all but who knows..

Please test and confirm.

Tapatalked from my Galaxy SII
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
will do, thanks!

Pi-xel, can you try too ?
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
I have done the test, please see attached the logs + screens.

it was better, could be because the battery is almost full... will do it again before going to bed, but it seems better... 0.9%/h instead of 3%/h.

what would be the solution for this ?
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Will test this overnight, let's see if it helps.

Good luck to us :)
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
Re: Battery drain in flight mode around 3%/hour

At least it seems to be proved the device is not disabling the gsm part properly.

I suggest to try another baseband and another cm10.1 built since I don't have this problem ands I'm on ls8 too.

See this screens for my current status:

Tapatalked from my Galaxy SII

The awake and drop in the middle can be explained by titanium, which is running at 4 am for full backup.

But the interesting thing is this:

The hour from yesterday's evening:

from last night:

Apps name is battery drain analyzer.

Regards.
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
New data. Will analyze it later, but airplane mode + restart did not help in my case.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
Hi,

unfortunately, it is the same for me, I lost 2.8%/hour.

I have added new screens and BBS dump. I still can see Awake periods which are not showing in GSAM or BBS. It could be the key.

I'm really wondering if it could be hardware related...

for instance, my phone had the emmc brick bug 2 months ago and I had to get it repaired.

They replaced the motherboard and the new one is bug free (https://play.google.com/store/apps/details?id=net.vinagre.android.emmc_check&hl=en ).

but it could have all started since then... I can't tell for sure but it is just a lead.

What about you pi-xel ? any similar story ?

@Karpfenhai: what are your device details (hardware revision) ?

I will also try battery drain analyzer to get a proper history.
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
No, my phone was never repaired. However, I just downloaded the app you were pointing at (and GotBrickBug? app) and found out that my eMMC chip (YYL00M, rev 19) is known to have the brick bug (chip is insane, but test passed). Good to know, will be more careful with flashing (wiping) in future. Thanks for the info :)

---------- Post added at 11:31 AM ---------- Previous post was at 11:24 AM ----------

Something else: I think I have an explanation for the long awake times in Android battery monitor: I've checked source code and the graph is constructed based on the timestamps that you can see eg. in the out.txt file I've posted earlier. So it basically simply reads wakelock=1 or wakelock=0 on different timestamps.

Then (that's my assumption, will check it more thoroughly later) it draws a blue line from the last occurence of wakelock=0 to wakelock=1 and a grey (invisible) line from the last occurence of wakelock=1 to wakelock=0. If the difference between two timestamps is large (which is true when airplane mode is on over night, refer to your BBS wakelock graph or my out.txt file) then the blue lines get way too long.

However, what I don't understand is why this does not happen on Karpfenhai's phone.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
your comment also means we don't have the exact same hardware as my new chip is now "sane" with a different revision than yours.

and yes, be careful as it is so easy to trigger this bug... I'm glad they fixed mine under warranty, and I didn't know about the bug at the time, I just follow a procedure to flash CM 9.1 and it was nowhere saying anything about this bug.

I've received another lead from another thread on XDA:

http://xdaforums.com/showthread.php?p=39865595#post39865595

basically he has an app to recalibrate the battery.

"Basically the is a chip in our phones that looks at the battery and works out how much power it has left. It is possible for this chip to get 'confused' and report the wrong battery level. All my app does is tell the chip to check it is right. This will make the battery level way off for anything between a minute to a couple of hours (but no longer) then it will be accurate.

I can't go into more detail as I don't know anything more. The function it is based on comes from Dorimanx kernel where it is a longstanding known fix for battery issues.

This is not the same as resetting battery Stats which is known to do nothing. "

http://tiny.cc/fuelgauge from http://xdaforums.com/showthread.php?p=38815654#post38815654
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Hmm interesting. Executed the app and my battery level dropped to 12% (it was around 70% before). I wonder whether the app does something else than "wipe battery stats" in CWM recovery or STweaks (it's the first time I see an immediate effect of such a battery stat wipe)

---------- Post added at 12:17 PM ---------- Previous post was at 12:15 PM ----------

Ah now I see what you've added :)
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
will you be able to do a flight mode test later ? once the battery settles.
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Will not be able to do an airplane mode test before evening, as I need my phone throughout the day. But as (at least in my case) the battery consumption is not much higher when not in flight mode, I guess I can make a test with radio on later that should produce some useful results as well.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
just imagine if it is our fix !!