yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Hehe I guess we should not get too excited yet :)

Tried a lot of 100% working fixes for battery drain during the last months - without any success, therefore I am still pessimistic.

Btw. the drop in battery level actually does not mean that I was using only 20% of my battery capacity, it should be just part of the reconfiguration process. Proof is that my phone is currently charging at an impossible rate of 44%/h ;) I charge with 700mA, battery capacity is 2000mAh, hence I should get max. ~30%/h when phone is completely off.

But I hope I am wrong and it is the fix we were looking for :)
[Galaxy S II Q&A, Help & Troubleshooting] AuronnBE:
Damn, can't seem to install the reset fuel gauge app. There is a problem parsing the package...
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
From your BBS dump I see that your phone is not rooted. I guess you need root for the fuel gauge app anyway...

---------- Post added at 04:57 PM ---------- Previous post was at 04:55 PM ----------

Have you got any new results already?
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
I can only do it tonight :/

but I'm very eager to try !

what about you ?
[Galaxy S II Q&A, Help & Troubleshooting] AuronnBE:
Just rooted and installed the darkyrom HD rom, didn't help.

Now downloaded the alliance app, for which the reset fual gauge app was written. Hope that works and then I can test too.

My hopes aren't high, but who knows...
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
According to app info, it is based on fuel gauge reset that is part of Dorimanx kernel (although I use Dori as well and executed reset fuel gauge chip a few months ago, with different results than this app at a first glance). So you could try to flash Dorimanx kernel and then reset your fuel gauge chip from STweaks (which is a configuration app for the kernel).

And I did not yet find time to test the effects of reset fuel gauge app neither.

---------- Post added at 05:36 PM ---------- Previous post was at 05:34 PM ----------

Found another method:
[Galaxy S II Q&A, Help & Troubleshooting] olyloh6696:
I am having the exact same problem.

I was about to open a new thread when I found this...

I have my S2 on stock XWLSN and Dorimanx kernel with 1900mAh Anker battery.

Screen on time for me is good, over 4 hours. But when my phone is on standby, with flight mode on, everything else off and power saving mode on, battery drains about 4% per hour like you.

I experienced it when I upgraded to JB from ICS. I have been on numerous JB builds and they all suffer the same problem.

I saw you guys talk about formatting the SD card etc, did it make a difference then?

Or is there a solution?

Galaxy SII • Stock XWLSN • Dorimanx Kernel
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
Hi,

welcome to our small club... and sorry you had to join :(

nothing helped so far, but we are testing 1 thing, there is a Reset fuel gauge app a couple of posts above in this thread, this resets the microchip handling battery status, it might help.

We are currently trying it pi-xel and myself, you should try it too.

So you didn't have this issue at all with ICS ? hundred % sure ?
[Galaxy S II Q&A, Help & Troubleshooting] olyloh6696:
Hiya mate,

I'm glad to join and know that I'm not the only one suffering!

I'll check out the posts above, and look forward to you guys results.

I was unrooted on ICS, and I 100% didn't have the issue, the phone slept beautifully.

I updated to JB and my battery life was generally bad (even screen on time). I tried various builds of JB.

I then decided to root and install dorimanx kernel, and my battery life screen on time improved a lot, but sleep still had drain. :(

Galaxy SII • Stock XWLSN • Dorimanx Kernel
[Galaxy S II Q&A, Help & Troubleshooting] AuronnBE:
Hi,

Very strange, I can't find STweaks via the app store. I can find it via internet, but it doesn't download to my phone, I'm using the right account.

And when I do the other method I get permission denied, so I can't edit the file and add 1. Is there a way I can connect it to my pc and get to the file like that?
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Welcome olyloh6696 :D

Could you provide us with a BBS log file in airplane mode, according to the instructions in BBS thread? Just wanna make sure that you are suffering from the same problem and that you don't have some nasty wakelock draining your battery during screen off (which is more likely to be solvable than our issue).

---------- Post added at 06:25 PM ---------- Previous post was at 06:23 PM ----------

STweaks works only on Dorimanx / Siyah kernel. That might be why you can't find it in app store. When you try the other method, type "su" and enter first to obtain root rights in your terminal emulator, then you should be able to execute the command.
[Galaxy S II Q&A, Help & Troubleshooting] olyloh6696:
Hello,

Yes I will. But unfortunately I cannot today, as my phone is on 10% battery and will go on charge soon. I won't be able to use the BBS till it is fully charged tomorrow.

I will try to post a screenshot then. :)

Thanks for the help guys!

Galaxy SII • Stock XWLSN • Dorimanx Kernel
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Alright, but rather install the newest version of BBS (you can download it from the main BBS thread, not from app store) and save a dump file. Also, don't forget to give BBS root access in its settings and carefully read the instructions on how to make a valid BBS dump (everything in first posts of main BBS thread).

---------- Post added at 07:36 PM ---------- Previous post was at 06:45 PM ----------

Some new observations:

First of all, even if I haven't tried it in flight mode, battery consumption did not change so far with resetting fuel gauge chip. Will test this tonight in flight mode, but I would consider it as weird if that were the real problem, as a misconfiguration of the battery would not only affect screen off time, but screen on time to the same extent (which we don't see afaik).

But I might have found something else: As I already reported yesterday, I saw once again a 100% AudioOut_2 wakelock that vanished when I rebooted. This led me to do the following experiment:

- Disable radio (airplane mode)

- Enable radio with data (WiFi disabled," 2G only" on)

- Turn screen off immediately after enabling

- Put phone *really* close to your ear as if making a call

What I experienced then were some very quiet, but still existent, clicking sounds coming out of the speaker that you might know from holding a phone close to a speaker when receiving a call or short message. I don't know whether this is regular behavior, but I would assume that the speaker should be turned off when not in use.

As I am not sure whether it should be like this, I would kindly ask both users with and without our battery problem to reproduce the steps of my experiment and report their experience.

Thanks in advance!
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
@pi-xel: do you think the battery reset gauge is only working with Dori kernel ?

not sure what you have :/
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
No, the app was in fact written for phones without Dorimanx, as Dorimanx implements this by default. And I am on Dori. Furthermore, as I explained in my previous post, it would be really weird if the battery were the problem. With our wakelocks, we should at least get 1%/h battery consumption, but we have 3%/h. This would mean that if a badly calibrated battery were the cause of our problem, screen on time would also be decreased by a factor of *at least* three, which is definitely not the case.

Could you repeat the experiment I posted and report your results?
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
Go ahead guys I'm with you, but resetting the chip is useless, it got reset upon every full charge by default, it's just placebo.. but keep your illusions ;):cool:

Regarding your dmesg files, you just need to search for pm: sleep

The next entry shows what woke up your phone:

[ 537.557313] c0 PM: SLEEP
[ 537.557334] c0 ARM_COREx_STATUS CORE1[0x00070000], CORE2[0x00000000], CORE3[0x00000000]
[ 1099.505512] c0 WAKEUP_STAT: 0x80000001
[ 1099.505512] c0 WAKEUP_INTx_PEND: 0x80, 0x0, 0x0, 0x0
[ 1099.505512] c0 Resume caused by IRQ 359, max8997-irq
[ 537.558307] c0 PM: early resume of devices complete after 1.211 msecs

And you can easily sum up the real awakes.

Hope it helps you to debug your issue on your own.

Edit, did read your dmesg again. I really can't see any suspicious entries.. :banghead:

I've just one question, did you encrypt your device or sd card?

Tapatalked from my Galaxy SII
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
It does the same for me.

Can somebody else try?

PS: I flashed dorimanx 9.13...but I don't have any hope.

Don't know what else to try...
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
I didn't.
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
@Karpfenhai: Could you try the same on your GS2? Just tested it on my girlfriend's HTC One X and there the speaker does not make any sound when coming out from flight mode.

---------- Post added at 12:50 AM ---------- Previous post was at 12:46 AM ----------

My storage is not encrypted as well. And just out of curiosity: Neither wiping battery stats nor resetting fuel gauge chip has any effect on SGS2?
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
Just tried twice, either there is no sound or I'm going deaf :p

But do you talk about the usual "mobile phone is disturbing unshielded speaker" sound?

Tapatalked from my Galaxy SII
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Yes, exactly that sound, coming out of the earpiece speaker. Not very loud, but you should hear it when radio is active (eg. coming out of airplane mode).

If it is really the case that our speakers are powered all the time while they should be switched off (as presumably in your case) for whatever reason, I guess we have a new lead.

But I think more people have to confirm it first.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
Yes it could be the case, but what would be the solution ? And if it means warranty, how are we going to explain this to our phone provider or samsung ?

I'm sure they will flash stock, have the phone booting and send back the phone to us in the same state...
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
I don't think it is a hardware issue we have here, rather some misconfiguration in software. If this is really a bug, which we are not sure as long as we don't have more people testing this, then we can start digging deeper by first disabling (freezing) apps (system apps as well, as the drain - if there's a relation to the speaker - occurs on freshly installed systems as well) and then continue with debugging sources (maybe disabling audio / speaker completely to test whether battery life improves).

There is a lot we can do, Android is open source ;)

I personally also have some experience in kernel and driver development / debugging and if there are some people having similar issues, I guess we will get some support from kernel / rom developers as well.

But first we have to check whether digging into it is worth the time it needs. As I said, we first have to prove that we really have a bug here.
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
I guess if there is really a bug, then a lot of people might have it without even knowing.

We just need to find someone with a s2 and good ears.

Going to try flight mode and muting the sound.

I have also installed My battery drain analyser.

Will report tomorrow.
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Alright, good luck and good night (although I also hear the clicking sound when sound is turned off completely, so don't expect any improvement :) )
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
nothing new for me... still losing around 3%/hour.

you can see in battery drain analyser I lost minimum 1.8%/h and maximum 8.6%/h !!

I thought the highest % of battery drain was matching the "awake" period I see on the Android default battery graphs.

I did a graph to verify and it is not matching... but curiously I have 3 high % in Battery drain analyser and I see 3 awake periods in Android, and they all shifted.

They do seem to last longer in Android graph than in Battery Drain Analyser (around 30min in Android and around 10min in BDA).

These (maybe fake) Awake periods are still not showing anywhere else (as far as I can see).

I still don't know what could we do next, except finding people with S2 and asking them to do the speaker test.
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
@olyloh6696: Could you repeat the same test I posted on the last page and post your results?

@megosu: Maybe it would make sense to repeat the experiment on one of our phones, but with a pre-ICS rom (and also check whether battery consumption is better on pre-ICS). Unfortunately, I need my phone over the weekend and thus do not have the time to reflash everything, so I could do this earliest on Monday. Do you have time to do this?

@Karpfenhai: Do you think that the speaker being powered all the time could be the reason for our drainage?
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
I don't think so,I think it's electro magnetic induction, but I can be wrong, what about the bootloader you guys are on?

Tapatalked from my Galaxy SII
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
kernel Dorimanx 9.13 (I was on default Jellybam kernel before, and also default rom alliance 7.02)
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
it is a good idea, however I'm not feeling very confident doing this...

thanks to the emmc bug I already had to give up on my phone during 6 weeks so they can repair it (they are slooow), I'm not feeling lucky enough to downgrade :(

do you think you can do it without any problem ?
[Galaxy S II Q&A, Help & Troubleshooting] chamonix:
Unfortunately the screenshot and the dumpfile do not cover the same timeframe so there is not much I can compare
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
Hi,

they do!! they doo!! I assure you :)

maybe the Android default battery app starts a bit before, but you have the 5 h 43 m 45 s from the dump file showing on all screenshots.

another example, here what I captured last night:

http://xdaforums.com/showpost.php?p=39954906&postcount=78
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
Please ensure you understand how BDA works / how the calculations are made!

it does a on time calculation on every percent drop, per example at 3 o clock you backup starts, you will have a high cpu usage, a lot of filesystem operations (io) so your device will most likeliy loose 1 percent after 8-10 mins, even with screen off, this will ruin the stats and show such high values but its not a real problem, know what i mean?

ill start playing with modems on my device, since 3g causes way more loss as 2g, seems im going back to KI4 modem for a while ;)
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
yes I get it, but it doesn't explain why would my device lose 1% in 7 minutes (between 6:31 and 6:38) ?? it was supposed to sleep, like me.

it ruins the stats, but this only a maximum on a short period, what is also worrying is the minimum doesn't get lower than 1.8%/h. I would expect to lose 1.8% / night not / hour...
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
I understand your concern and im sorry for this mess, dont give up on this!

My problem is, it does persist afer a full wipe + clean flash...

Did you use a romwipe / kernelwipe script? (from hawkerpaul)

At least the kernelwipe script could be testet easily.

good luck!
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
I did the following from CWM:

format cache

davilk

factory reset

data

system

then I flashed the rom.

@pixel: what about you ?
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
going to try this this night: https://play.google.com/store/apps/details?id=com.rootuninstaller.batrsaver&hl=en

it is a sad thing this bug......
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
@megosu: I reflashed today and used GS2RomNuke and GS2KernelWipe scripts - battery consumption did not change.

@Karpfenhai: Can you tell me how to find out which bootloader I am on and how to change it?
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
I shared our problem on dorimanx thread, apart from being told off, I had 2 interesting answers :

What do you think?
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
I have written PMs to the two users who responded in Dori thread.

And I don't think that the interference can be caused by induction only, to my knowledge the speaker must be powered to create such sounds. And the sound appears only in the earpiece speaker, not in the other used for music and notification sounds. Therefore I am pretty sure that the speaker is definitely on all the time on our phones.

@Karpfenhai: Did you switch off Wifi and enable 2G mode before doing the test? The interference sound appears only in GSM data mode.

---------- Post added at 01:58 PM ---------- Previous post was at 01:53 PM ----------

If we get a confirmation that the speaker is really constantly on and that there is a relation to battery life, then we could try to rebuild Dori sources without any audio modules (as a first test).

We should also try to generate some external interference with the speaker (eg. by holding a second phone close to ours). Then we could test whether the interference is also occurring eg. in recovery mode. If it is, then we can assume that we really have a hardware issue which we cannot tackle ourselves, if not, then the speaker is turned on by Rom / Kernel and we should be able to switch it off.
[Galaxy S II Q&A, Help & Troubleshooting] sakindia123:
Hi.i have the same problem as you guys.

I have been facing this same problem ever since i got my phone in June,preloaded with ICS

I tried all kinds of ROMs,even downgraded to GB,but didn't work out.currently using aosp 4.2.2 with dorimanx.

I tried the speaker test you guys suggested, but sorry i didn't hear anything!
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
Hi,

Just to be sure, can you post a bbs dump from when you have your phone in airplane mode ?

When you did the speaker test, did you have your phone in 2g only?

The sound is very quiet.
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
@sakindia: Did you disable Wifi and set data to 2G before doing the earpiece speaker test? And could you provide us with a valid flight mode BBS dump so that we can exclude other causes of drainage in your case?
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
And what about this bootloader question, how to check which one do we have?

Maybe we have the same and Karpfenhai has another one.

I couldn't hear the sound when trying to put another phone next to the s2. (tried to toggle other phone radio and to switch to 2g only).

Did you find somebody else talking about our issue? We can't be the only ones.
[Galaxy S II Q&A, Help & Troubleshooting] sakindia123:
only 5% battery left,i will give you a dump tomorrow

i have the ics bootloader,which ones do u have?
[Galaxy S II Q&A, Help & Troubleshooting] sakindia123:
Can anyone try this?I can't as i dont have battery left

Download: http://xdaforums.com/attachment.php?attachmentid=1655489&d=1358514526

Rename flash_erase.txt to flash_erase

Copy this file to /system/xbin directory using Root Explorer. Set permission as 755

Make sure Root Access is enabled for both Apps and ADB in Developer settings

Connect phone to PC .. Now open a terminal ( I am using Ubuntu ) and type the following:

adb shell
su
cd /system/xbin
./flash_erase -N bootpartition 0 0
./flash_erase -N datapartitionlocation 0 0
./flash_erase -N cache partition 0 0

Note: replace bootpartion,datapartition with the actual location,like /dev/block/mmcblk02 or whatever the S2 has(i never bothered to find out)

Note: when you execute above command you may get an IO error.. Its OK, dont get panic

Now disconnect phone from PC.. Remove battery and reinsert it ..

Goto recovery and:

format /boot

format /system

wipe data / factory reset

Now install your favourite ROM !

Note: this is a dangerous process!BEWARE

Also,can anyone upload GB bootloader for GT-i9100?
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
@sakindia: I flashed JB bootloader today, unfortunately dunno which bootloader I was on before.

You can download bootloaders here: http://xdaforums.com/showthread.php?t=2199288

Have you verified that your settings were correct when you did the clicking sound test?

And what do you expect from the flash erase procedure?

@megosu: I don't have time today to reflash everything. Could you try what sakindia proposes?
[Galaxy S II Q&A, Help & Troubleshooting] AuronnBE:
I'm having a 8,6%/h in airplane mode, I mean, common!!! So and when I'm using it, I have around 10%, so where is all that battery loss coming from...

I really hope you guys can find something as I don't have time anymore to go the store. (Leaving for 3 months to the US in less than a week).

Here's my dump file.
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Wow, yours is even worse the ours. 8.6%/h with 99% deep sleep... amazing...

Did you do clicking sound test?
[Galaxy S II Q&A, Help & Troubleshooting] sakindia123:
Yeah.i verified the settings.i will try again

And uhm the link is for i9100G

the flash erase will COMPLETELY wipe the respective partitions,something which your average wipe doesn't do.I have tried this on my other device,fixes bad blocks and other problems
[Galaxy S II Q&A, Help & Troubleshooting] AuronnBE:
I tried it twice now, don't seem to hear something, maybe I'll try again tomorrow.

Thx for trying to get the bottom of this guys :).
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
I tried a again and there was no noise, sorry :(

For bootloader try droidinfo or android system info.

Mine is just showing unknown, maybe in dl modus it's shows the bootloader as well.

Tapatalked from my Galaxy SII
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
I can't see my bootloader either, it says unknown.

As far as I know, I never flashed any bootloader, I had stock 4.0.4 before, then I flashed alliance rom 4.1.2 then I flashed jellybam 7.1 (android 4.2.2) and had this battery drain all the way through , and never did anything special regarding bootloader.

Should I have done something? Isn't it part of the rom already?
[Galaxy S II Q&A, Help & Troubleshooting] Karpfenhai:
It is it is, I'm just blind guessing, somewhere must be the difference..

Tapatalked from my Galaxy SII
[Galaxy S II Q&A, Help & Troubleshooting] Androidguy.:
GIngerbread

If all doesn't work go back to gingerbread :) It's the ultimate battery saving os :D
[Galaxy S II Q&A, Help & Troubleshooting] diko adrian:
Hi mates, I'm using alliance rom and suffering this thing too, I dunno what happen..

I just know that it's not only me who got this
[Galaxy S II Q&A, Help & Troubleshooting] megosu:
hi,

can you provide us with a BBS dump in flight mode so we can confirm you have the same issue ?

also, since when do you have this issue ? did you do anything in particular ?

Did you buy a new battery to confirm your battery is not defective ?

Thanks.
[Galaxy S II Q&A, Help & Troubleshooting] olyloh6696:
This problem is really starting to annoy me now. :(

I performed a full wipe on XWLSN with a clean install and the problem still persists.

BBS doesn't always show for me, but a few days ago it shows audio out draining battery.

Galaxy SII • Stock XWLSN • Dorimanx Kernel
[Galaxy S II Q&A, Help & Troubleshooting] pi-xel:
Yes, that is what I also see from time to time (sometimes even 99% of the time). This wakelock in fact led me to do the experiment with the speaker, as AudioOut_2 wakelock also always appears during phone calls, using the earpiece speaker.

What I am currently trying to do is to create a modified version of Dori kernel, with all audio modules deactivated, just to see whether the problem still persists.

If I get the problem to vanish (lower battery drain) by deactivating all audio outputs, we at least know that even if it is a hardware bug (I still hope it's something in software), we can tackle it in software and explain our problem to kernel devs.