Galaxy s4 HUGE battery drain

wowempire

Member
Jan 12, 2014
140
0
0
Hey ! I bought my i9500 a year ago and i used to use cyanogenmod but i haven t used it anymore since it started crashing and shutting of suddenly. Now i have stock 4.4.2 rom and my battery drains so fast that i cant stay on fb or play any game even while it is charging. The 'battery' says 63% screen drain. SOMETIMES it doesn t fully charge in 8hours.. i took the phone that morning and it got 93 percent.. i had to charge it twice today and now it s charging again! The phone isn t rooted and Wireless is on all the day, the brightness on auto and the power saving feature ON . Any clue?


NOTE : I have 2 OEM batteries, a 2700 MAh replacement and a 2600 MAh, i get the same problem with both of them.
NOTE2 : The battery drain was even lower *but still high* and phone was charging VERY FAST when i was using the cyanogenmod.
3145oav.png
 
Last edited:

cronos

Diamond Member
Nov 7, 2001
9,380
26
101
Since the problem occurs with several different batteries, have you tried a factory reset?
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
After the battery has drained enough, enable usb debugging and get adb talking to your device and run the following command for me:

adb shell dumpstate > /sdcard/dumpstate.txt

Comb the log for phone numbers or email addresses (can potentially contain PII) and send me a PM with the link. You can upload that log from the sdcard somewhere. I'll help you track down what's happening.

If you need more one on one help, hit me up on irc in freenode / #cyanogenmod. I go by utkanos there.
 

postmortemIA

Diamond Member
Jul 11, 2006
7,721
40
91
I had that POS smartphone with similar problem, it was good on 4.3 originally, battery would last over a day, and with 4.4 it went downhill fast.
I bet real culprit of battery waste is somehow hidden from the report
 

holden j caufield

Diamond Member
Dec 30, 1999
6,324
10
81
have you tried wakelock detector. I think if you clear and uninstall the google play services updates and then try updating it again. I think it pings the location services too much and needs to be cleared. Something is preventing your cpu from going to deep sleep, the screen will look off but the cpu is still in some wake state.

I used a performance control and it tells me how much time the cpu stays in each state. Google play services (then it got bundled in android os) kept it from going to deep sleep
 
Last edited:

wowempire

Member
Jan 12, 2014
140
0
0
have you tried wakelock detector. I think if you clear and uninstall the google play services updates and then try updating it again. I think it pings the location services too much and needs to be cleared. Something is preventing your cpu from going to deep sleep, the screen will look off but the cpu is still in some wake state.

I used a performance control and it tells me how much time the cpu stays in each state. Google play services (then it got bundled in android os) kept it from going to deep sleep

Wakelock now requires root acces, my phone isn t rooted. I flashed the stock rom just a week ago, i have no reason to wipe data again, i guess it won't change anything.
 
Last edited:

wowempire

Member
Jan 12, 2014
140
0
0
After the battery has drained enough, enable usb debugging and get adb talking to your device and run the following command for me:

adb shell dumpstate > /sdcard/dumpstate.txt

Comb the log for phone numbers or email addresses (can potentially contain PII) and send me a PM with the link. You can upload that log from the sdcard somewhere. I'll help you track down what's happening.

If you need more one on one help, hit me up on irc in freenode / #cyanogenmod. I go by utkanos there.

No idea how to do most of the things you said there. And about sdcard, my 16gb SDcard doesn't work anymore, and i saw a lot of problems with sdcards @ galaxy s4.. i'm starting to hate that phone -_-.
 

holden j caufield

Diamond Member
Dec 30, 1999
6,324
10
81
if your 16gb is not working anymore pull it out. It maybe constant trying to read some corrupted card and that may drain battery.
 

dawheat

Diamond Member
Sep 14, 2000
3,132
93
91
What are you doing that keeps the screen on. Normally having the screen pull that much % is a good sign. But for you it looks like it's on almost all the time which is abnormal.
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
No idea how to do most of the things you said there. And about sdcard, my 16gb SDcard doesn't work anymore, and i saw a lot of problems with sdcards @ galaxy s4.. i'm starting to hate that phone -_-.

If you hop into IRC I'll walk you through it. I'm interested in finding the wakelock that is preventing your phone from sleeping properly. That is likely the reason for your battery fuckery.

I agree about removing the bad sdcard though, if mediaserver is constantly trying to scan a broken card that can't be great for the battery life, but anything else is literally just a guess until I see that log. Figure it out and you can figure out the battery drain.
 

holden j caufield

Diamond Member
Dec 30, 1999
6,324
10
81
you'd be surprised at how much clearing data/clearing cache fixes things (even if just in the apps tab of play store). I've flashed more roms than I care to count and even wiping data/cache/davlik all the time the install still behaves differently. I now wipe data/cache/davlik multiple times because it only takes 2 seconds.
 

cronos

Diamond Member
Nov 7, 2001
9,380
26
101
you'd be surprised at how much clearing data/clearing cache fixes things (even if just in the apps tab of play store). I've flashed more roms than I care to count and even wiping data/cache/davlik all the time the install still behaves differently. I now wipe data/cache/davlik multiple times because it only takes 2 seconds.

Well the clearing part is 2 seconds, but the reboot after that takes 5 minutes because of apps updating :D (I'm talking about wiping cache from the recovery, of course).

But you're right though, try this first if you haven't, OP. This also solved my problems a few times.
 

wowempire

Member
Jan 12, 2014
140
0
0
you'd be surprised at how much clearing data/clearing cache fixes things (even if just in the apps tab of play store). I've flashed more roms than I care to count and even wiping data/cache/davlik all the time the install still behaves differently. I now wipe data/cache/davlik multiple times because it only takes 2 seconds.
I will wipe cache only, to see if that solves my problem.
NOTE : I need a quick solve over that as i have a problem with connecting my s4 to pc, last time i flashed rom it took me a whole day bcs my device was randomly pulling out which was leading to fail flashing.. i dont want that to happen again . About that problem : i searched a solution for it so many hours and i couldn t solve it.. i ended holding the device and usb the whole operation..conclusion -> quick solution
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
About that problem : i searched a solution for it so many hours and i couldn t solve it.. i ended holding the device and usb the whole operation..conclusion -> quick solution

You could have done what I asked in 10 minutes instead of many hours and gotten to the bottom of what's actually happening with facts... :\
 

wowempire

Member
Jan 12, 2014
140
0
0
Ah.. you misunderstood me, my explanation is the reason of that. I was talking about the pc which doesn t recognize my phone... i guessed your solution needs the connection to pc and talked about that.. hope u get me now. The short explanation : i want a quick solution which doesn t requires connecting the phone.to pc because i have a recognizing problem ( yes abd on, tried different cables and differents PCs and a laptop too )
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
Ah.. you misunderstood me, my explanation is the reason of that. I was talking about the pc which doesn t recognize my phone... i guessed your solution needs the connection to pc and talked about that.. hope u get me now. The short explanation : i want a quick solution which doesn t requires connecting the phone.to pc because i have a recognizing problem ( yes abd on, tried different cables and differents PCs and a laptop too )

Sounds like windows... google for koush's universal adb driver and try that.

Alternatively, you can run this from a terminal emulator on the device. Find a terminal emulator from the play store and run:

dumpstate > /sdcard/dumpstate.txt

It will take a minute or two and vibrate the device a few times. Do this *after* you've noticed significant battery drain, then send me that log in a PM.
 

wowempire

Member
Jan 12, 2014
140
0
0
I ran that and it keeps saying try again in 1s untill it says failed to connect to dumpstate service. Did you note i have no sdcard after my 16gb doesn t work anymore ?
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
I ran that and it keeps saying try again in 1s untill it says failed to connect to dumpstate service. Did you note i have no sdcard after my 16gb doesn t work anymore ?

It should still write to the internal sdcard by using /sdcard as the mountpoint. If that didn't work, you would have no working Android device at all...

How about dumpsys instead of dumpstate, any change there?
 

wowempire

Member
Jan 12, 2014
140
0
0
Ye, nothing happens that's the only difference i see. Exactly nothing. If that helps i have android 4.4.2 and it s i9500
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
Ye, nothing happens that's the only difference i see. Exactly nothing. If that helps i have android 4.4.2 and it s i9500

There should really be no output from the command itself, see if it created the file in the sdcard though?
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
What sdcard ? I told you i have no sdcard.. :/

You do, it's just internal and non-removable. Android uses /sdcard as an overmount to the userdata filesystem on /data/media/0/ (assuming one user device) on modern handsets. Your external sdcard has nothing to do with this at all, once again. Its mountpoint would never be /sdcard anyway on a modern handset.

If you view /sdcard/ in terminal emulator or some file explorer app, you should see the file you created if you ran: dumpstate > /sdcard/dumpstate.txt.
 

wowempire

Member
Jan 12, 2014
140
0
0
I found both the dumpstate and dumpsys.txt but there writes the same it does in emulator.. i mean try again in 1s. * x20 *
vzygz6.png


The same writes in the dumpstate.txt .
 
Last edited:

Platypus

Lifer
Apr 26, 2001
31,046
321
136
I found both the dumpstate and dumpsys.txt but there writes the same it does in emulator.. i mean try again in 1s. * x20 *
vzygz6.png


The same writes in the dumpstate.txt .

It will dump that message until it can connect, but it should connect. I just ran it on an jflte (s4) I have on my desk running stock samsung software and it dumps the message you are talking about, but it continues on afterwords and dumps data just fine.

edit: hmmm, just saw your screenshot, that's really strange. It works on the jf I have here running stock samsung firmware. Let me look for another way to dump wakelocks. There are apps that do this too.
 
Last edited: