Wakelock questions - Galaxy S III Q&A, Help & Troubleshooting

Hi, I have a few questions regarding various wakelocks that I hope somebody will be able to advise on. Whether they are normal or not Im not sure.
I'm in the UK, my phone is a standard GS3, ie not routed or anything. I had battery life problems but have used Better Battery Stats and GSAM Battery Monitor and found the problem so now all is well and the battery is lasting exceptionally well indeed.
Whilst spending hours finding the original battery drain problem and removing the rogue apps, I came across these and just wondered; are they normal, is there anything I can do to improve them?
1) Android system - Seems to be causing quite a lot of wake locks, particularly running a lot are the Accelerometer, gyroscope & light. What exactly are they, and is it normal for them to be running a lot and cause wakelocks?
2) Facebook - I have turned sync frequency and notifications to 'Never' within the app, and set to not sync contacts, yet its still always in my list of running applications and causing wakelocks. Why? Is that normal, and what can I do to stop it? I only want it to turn on and refresh when I use it (very rarely) - which is what I have set it to. But it keeps running and starting itself even after I force stop it.
Thanks, John

Anybody able to advise? Particularly point 1) above.
John

John P said:
Hi, I have a few questions regarding various wakelocks that I hope somebody will be able to advise on. Whether they are normal or not Im not sure.
I'm in the UK, my phone is a standard GS3, ie not routed or anything. I had battery life problems but have used Better Battery Stats and GSAM Battery Monitor and found the problem so now all is well and the battery is lasting exceptionally well indeed.
Whilst spending hours finding the original battery drain problem and removing the rogue apps, I came across these and just wondered; are they normal, is there anything I can do to improve them?
1) Android system - Seems to be causing quite a lot of wake locks, particularly running a lot are the Accelerometer, gyroscope & light. What exactly are they, and is it normal for them to be running a lot and cause wakelocks?
2) Facebook - I have turned sync frequency and notifications to 'Never' within the app, and set to not sync contacts, yet its still always in my list of running applications and causing wakelocks. Why? Is that normal, and what can I do to stop it? I only want it to turn on and refresh when I use it (very rarely) - which is what I have set it to. But it keeps running and starting itself even after I force stop it.
Thanks, John
Click to expand...
Click to collapse
1) Can you post here the "Dump" file from BetterBatteryStats ? You can generate it with BBS > Options > Dump to file
2) Facebook is known to drain battery with background daemon and services. Try using another Facebook'apps even if it's not the genuine one.

Isnt' cross-posting generally not allowed?

Thanks lelinuxien52, yes I will do that.
Szadzik, what do you mean by cross-posting?
John

Ahh just googled it, yes sorry I didn't realise.

Related

G2 (Hero) runnins slow - apps not closing / opening themselves

Hi guys,
Have had my Hero just over a month now and love the thing to bits...
The one thing (battery life aside) that pees me off though is that the phone can be slow at times...
It seems to stem from apps either opening themselves and running in the background, or not closing properly when I select to close them.
I seem to spend half my time using the phone in TaskKiller getting rid of everything that shouldn't be running before I can do anything.
Has anyone got any smart ideas on how I can improve the problems above?
I've also noticed when I switch the phone off and back on a) it improves things slightly, but b) it also runs lots of things that I don't need open so is there a way to stop things running on start up?
Thanks for the help guys.
To show you what I mean, I just restarted the phone and killed everything except:
WaveSecure Beta
com.google.android.apps.mapssomething that goes off the screen) - can't kill this
HTC Sense
Touch Input
com.htc.provider
Go back to it 10 minutes later and I also have the following open:
Settings
vizBattery
Wi-Fi Status
Google Mail
Thats without me touching it at all.... if I had also used the Twitter app, Facebook, messaging etc then they would all still be open, the browser and music player would probably be there too.
It's normal fo it to start some apps on its own, for example peep (htc's twitter program) the music player (only if you have a widget on one of the homescreens)
same goes for calander etc etc google mail is push so it has to be opened to recieve messaged realtime.
Things like batterystatus thingy's often drain your battery and sometimes slow down your device I suggest removing that.
Also I don't know about wifi status but can imagine that draining battery to since
I don't think that will be running without your wifi being on. When continuosly searching for networks your device also will slow down, and drain the battery
My english isn't perfect so I hope you understand what I'm saying.
edit: do you use the official t-mobile rom or a custom? Don't know if htc released the last update for t-mob devices. That update really improved almost everything
so if you don't have that it's ''normal'' for the device to lag.
Some apps register themselves to start automatically. Obviously Gmail needs to run if you're syncing a Gmail account.
There's at least one app (paid) that can override this - I believe it is called Startup Auditor.
However, for the most part, it doesn't really matter since many of the apps that appear to be "running" will not be consuming any CPU time (and by extension battery life) unless they are designed to run in the background.
In addition, as Stafflover has already said, I'd also suggest you try removing vizBattery - whilst I've no specific experience with this app, I've heard that many battery status widgets drain the battery significantly.
Regards,
Dave
foxmeister said:
There's at least one app (paid) that can override this - I believe it is called Startup Auditor.
Click to expand...
Click to collapse
AutoStarts does the same job, also paid. using it for weeks, works great.
programs starting up
gk141054 said:
Hi guys,
Have had my Hero just over a month now and love the thing to bits...
The one thing (battery life aside) that pees me off though is that the phone can be slow at times...
It seems to stem from apps either opening themselves and running in the background, or not closing properly when I select to close them.
I seem to spend half my time using the phone in TaskKiller getting rid of everything that shouldn't be running before I can do anything.
Has anyone got any smart ideas on how I can improve the problems above?
I've also noticed when I switch the phone off and back on a) it improves things slightly, but b) it also runs lots of things that I don't need open so is there a way to stop things running on start up?
Thanks for the help guys.
Click to expand...
Click to collapse
Hey Pal! I had the same problem then I got into a bit of app development and understood. Some service need to be "broadcasting" and some other to be "listening". Best you can do is sometimes tell them how often to "wake up and check". But if you think about it, a program MUST be checking on a few things, at least sometimes, to give you the "android experience". Also, no matter how much you care about that number you see in the "free ram" widget (assunming you use taskiller with the widget), it is not very important until it REALLY does slow your phone down. Some apps are worse than others at clogging up or draining your battery: try them, weigh how useful they really are for you and then decide what to keep (running) Ciao!

[REF] Known identified battery drainers

In many cases, people who have battery drain issues have a tendency to end up being found to be using a known battery draining app or configuration. To help these people, I'm going to try to start a list here. I will, in the case of known rogue apps, include the reporting date so people can try updates to see if drain is fixed. (For example, Facebook is rarely a culprit any more, but it was the #1 most common battery eater in 2010.) The primary focus here will be things that shouldn't drain your battery but do.
Firmware bugs:
The UCKK6 OTA update contains a number of issues with wifi and bluetooth. Among these is that an oddball feature of our Wifi/Bluetooth chipset goes nuts and wakes up the phone once per second intermittently. Rebooting temporarily fixes it, turning off wifi temporarily fixes it, only permanent fix is to ditch UCKK6. http://forum.xda-developers.com/showthread.php?t=1409513 for more details - Appears as a variant of the Android OS "bug" - this is the only one that is actually 100% a firmware bug. International XWKK5 is also affected.
LAN Environment (WiFi):
Broadcast LAN traffic can wake your wifi chip often. This also manifests as the Android OS "bug", but it's a small problem with the firmware base (XXKI3 and UCKK6 are known to be affected) and mostly a network problem. Examples I've seen so far include:
Windows Client Backup
UPnP (DLNA) SSDP
Dropbox Lan Sync Discovery Protocol
Buggy piece-of-**** routers that spam lots of ARP requests continuously - The 2Wire routers that are required for UVerse access apparently fit in this category.
You are more likely to have the above issue on some firmware bases than others. For example, XXKI3 disables all of the chip's packet filters, making it vulnerable to this sort of thing. UCKH7 and XWKL1 don't, leading to significantly improved life on "dirty" networks. UCKK6 almost surely also has the same problem.
Configuration issues:
Hotmail calendar sync
Misconfigured Microsoft Exchange servers - 1) is a special case of this. At least one person has reported that calendar sync to a non-Hotmail account was problematic for them, but email sync was OK
A bad Exchange configuration - the client apparently goes nuts if it can't contact the server
BLN - On Galaxy S II devices, there is no stable BLN implementation that does not hold a wakelock when a notification is active. This means that an active BLN notification will drain about 4-5%/hour. I say this in bold letters in my kernel thread, but somehow people still don't realize it...
Rogue apps:
Words with Friends (October 2011)
Skype (October 2011) - Particularly insidious, as it does not directly hold a wakelock. However, it causes lots of background network activity, and this activity keeps your phone awake. Since most of the time is spent wakelocked in the network stack, Skype drain shows as Android OS.
Any IM app that works similarly to Skype is likely to have the same issues.
AP Mobile Widget on stock AT&T ROMs - this one also blows through your data allotment quickly if you don't have unlimited data
AT&T Smart WiFi can sometimes hold excessive wakelocks - this is why AT&T bloat is bad for you.
The Obvious:
3D or animation/action-intensive games
The Rare:
Apps that occasionally go nuts, but not frequently
Facebook - I've had it wakelock me once, and also, Facebook chat may have triggered my first obvious "AOS bug" episode once - so far, it's been responsible for drain once this month
StartingAlertService - some sort of Calendar notification related bug
The False Blame:
GPS Status and Toolbox - may appear to be high-drain but is actually not draining - this is an Android battery reporting bug - see http://forum.xda-developers.com/showpost.php?p=23106668&postcount=491 for more details. Thank you for the info and the great app rhornig.
If you're having battery drain issues, I suggest the following:
Install BetterBatteryStats. The XDA edition from the author's thread on these forums is free. (Market version is paid.)
Also, having CPUSpy to see deep sleep percentages is VERY useful
BBS now shows kernel wakelocks - make sure to check these. If you have an older version that doesn't show kernel wakelocks, use the instructions below.
Get ADB up and running (Google it, and if you're on Windows, Googling Droid Explorer may help)
Using ADB, do the following:
Code:
adb shell cat /proc/wakelocks > wakelocks.txt
adb shell dmesg > dmesg.txt
Zip em' up and post em' here for analysis.
Edit: Specifically, to get a good baseline measurement of idle drain - make sure to have CPUSpy installed for this procedure:
Charge phone to full
Reboot
Reset timers in CPUSpy, otherwise the percentages and bars will be wacky
Let the phone sit for a while - Overnight is best. Then provide data:
Deep sleep percentage
Time the phone was sitting
Percentage battery drained
I don't need screenshots of the above, just the numbers. Screenshots use up massive amounts of thread space
Grab /proc/wakelocks as mentioned above and post it, OR use BetterBatteryStats 1.4 or above to pull kernel wakelocks.
Note: If you're at or below 1%/hour idle drain, not much point of posting your wakelocks.
If you have high wlan_wake, wlan_rx_wake, or svnet-dormancy wakelock times, then you have an app eating data or one of the wifi wakeup bugs described above. Install Shark for Root - https://market.android.com/details?id=lv.n3o.shark
Start it, and change parameters from:
Code:
-vv -s 0
to
Code:
-vv -s 68
This tells it to only capture the first 68 bytes of each packet, which is all we need for this purpose. This provides two benefits: A smaller capture, and privacy for you. (It captures packet headers but not contents)
Then start a capture and let it sit for a bit.
Note that your drain will be higher during the capture than normal - we're collecting data here, not directly nuking the drain.
After a while where you are positive you are encountering drain, stop Shark and then pull the .pcap file - load it in Wireshark on your PC or post it here. If you post it here, MAKE SURE you have a truncated capture as instructed above!
Thank you sir. Will do in a few.
Sent from my SAMSUNG-SGH-I777 using XDA App
Words with friends is an insane battery drainer. I had a screen on time of 4 hours and 15 minutes with 35% battery use and Words with friends had a 45 min cpu usage and was 26% of the battery drain...There is no way that should be so close to the screen usage. CRAZY.
chase10784 said:
Words with friends is an insane battery drainer. I had a screen on time of 4 hours and 15 minutes with 35% battery use and Words with friends had a 45 min cpu usage and was 26% of the battery drain...There is no way that should be so close to the screen usage. CRAZY.
Click to expand...
Click to collapse
I spent a while testing that app before finding out it is a phone-wide issue. Emailed the dev today but we'll see how it goes. Not a small dev anymore.
Yea I hope they fix it...I love playing it but it kills my battery. If that app didnt run I may have like 5 hours of screen time on a single charge if not more. I looked at many of the reviews of it and many of them mention the battery killing it does.
Just discovered an interesting feature built in to the stock rom. Go to task manager > storage and you'll see it©.
The tower defense game Sentinel 3 will put a HEAVY drain on your battery.
Sent from my SGH-I777 using xda premium
gtg465x said:
Just discovered an interesting feature built in to the stock rom. Go to task manager > storage and you'll see it©.
Click to expand...
Click to collapse
Huh? What happens?
Apparently an app I come to love and use on all my devices is Battery Monitor Widget. According to to someone's post from the BBS thread and due to my own investigation. BMW will cause a lot of wake time up to 970 awakes over a 12 HR period. That is a lot time consuming battery and resources.
rebooted my phone reset cpu spy and going to leave it not charging and I will abd into the phone and get the demesg and other file and post here.. been losing 30% over night on about 8 hours which I know is way off... no skype I have wifi data sync and gps on as well as syncing a google account twitter tango and facebook.... which I understand might be alot but shouldn't this phone be able to handle all that? I also live in a basement with poor service but right next to the router... getting a microcell on Friday which I hope helps. My AOS is around 65% in battery status and suspend and events/0 are definitely running more than one minute every 10 hours, more like 20 minutes at least every charge, and my phone is lasting 11 hours give or take with minimal to no use
penskyc said:
rebooted my phone reset cpu spy and going to leave it not charging and I will abd into the phone and get the demesg and other file and post here.. been losing 30% over night on about 8 hours which I know is way off... no skype I have wifi data sync and gps on as well as syncing a google account twitter tango and facebook.... which I understand might be alot but shouldn't this phone be able to handle all that? I also live in a basement with poor service but right next to the router... getting a microcell on Friday which I hope helps. My AOS is around 65% in battery status and suspend and events/0 are definitely running more than one minute every 10 hours, more like 20 minutes at least every charge, and my phone is lasting 11 hours give or take with minimal to no use
Click to expand...
Click to collapse
Suspend and events/0 at 1 minute every 10h aren't too bad. AOS at 65 is a bit high.
Unless one of the above apps you use is implemented badly, your phone should be able to handle the above. I have Google and Facebook and get great drain. I haven't heard reports of Twitter causing problems.
Tango is an unknown - it's in a similar class to Skype so could be driving excessive idle network traffic.
To the person who posted that a game drained their battery - well, that should be pretty obvious. I guess I'll add it to the first post later, but I'm primarily focusing on the "non-obvious" stuff - things that SHOULDN'T drain your battery but do.
Tango is all good had it installed on my phone forever my batt life is amazing. It doesnt require a sign in. Look out for anything that make you sign in besides google as far as im concerned
Sent from my SAMSUNG-SGH-I777 using xda premium
Entropy512 said:
In many cases, people who have battery drain issues have a tendency to end up being found to be using a known battery draining app or configuration. To help these people, I'm going to try to start a list here. I will, in the case of known rogue apps, include the reporting date so people can try updates to see if drain is fixed. (For example, Facebook is rarely a culprit any more, but it was the #1 most common battery eater in 2010.) The primary focus here will be things that shouldn't drain your battery but do.
Configuration issues:
Hotmail calendar sync
Misconfigured Microsoft Exchange servers - 1) is a special case of this. At least one person has reported that calendar sync to a non-Hotmail account was problematic for them, but email sync was OK
Rogue apps:
Words with Friends (October 2011)
Skype (October 2011) - Particularly insidious, as it does not directly hold a wakelock. However, it causes lots of background network activity, and this activity keeps your phone awake. Since most of the time is spent wakelocked in the network stack, Skype drain shows as Android OS.
Any IM app that works similarly to Skype is likely to have the same issues.
The Obvious:
3D or animation/action-intensive games
If you're having battery drain issues, I suggest the following:
Install BetterBatteryStats. The XDA edition from the author's thread on these forums is free. (Market version is paid.)
If BBS doesn't show any significant wakelocks, and no apps show as hogs in Settings->About Phone->Battery, do the following:
Get ADB up and running (Google it, and if you're on Windows, Googling Droid Explorer may help)
Using ADB, do the following:
Code:
adb shell cat /proc/wakelocks > wakelocks.txt
adb shell dmesg > dmesg.txt
Zip em' up and post em' here for analysis.
Click to expand...
Click to collapse
Can you please take a look at this one to see if there is anything out of order?
Much appreciated!
Entropy512 said:
Suspend and events/0 at 1 minute every 10h aren't too bad. AOS at 65 is a bit high.
Unless one of the above apps you use is implemented badly, your phone should be able to handle the above. I have Google and Facebook and get great drain. I haven't heard reports of Twitter causing problems.
Tango is an unknown - it's in a similar class to Skype so could be driving excessive idle network traffic.
To the person who posted that a game drained their battery - well, that should be pretty obvious. I guess I'll add it to the first post later, but I'm primarily focusing on the "non-obvious" stuff - things that SHOULDN'T drain your battery but do.
Click to expand...
Click to collapse
what I meant to say about the suspend and events/0 is that i wish i was getting a minute every 10h, it is more like 20minutes.. I just finished my over night test, I put the phone down at 11:09 with 69% battery left, waking up just now with 30% at 8:16, did not touch the phone once.. should have been asleep the whole time.. also my suspend is at 31minutes (BBS) and my events/0 is at 30minute (BBS), i also reset my cpu spy. deep sleep 5:49 hours, 200mhz 1:29 hours and 800mhz 1:21 hours (14%)
and lastly, here is my dmesg and wakelocks... so yea this looks pretty horrible to me!
I actually went to the at&t store to exchange this phone yesterday cause I am convinced something is wrong with it, no one really seems to be getting the severe drainahe and stats that i am getting, so I assumed it has to be the phone, well its 2 weeks old and the guy wouldnt take it cause he needed proof there is a battery problem.. Also I went back to stock yesterday before i was going to exchange my phone and the issue seemed to be happening aswell no matter where I was and what apps were installed, hoping these files will figure something out! thanks for your help!
There's alot of careless and sloppy developers out there that has no concern on users battery. Android support Push notification since froyo and it's only implemented in a few apps like tango. Why? Go to the appstore the same exact IM and video chat apps uses push notification, but not on the android version. Instead you have to log in all day clogging your Ram and battery. As of now the only IM client I use it's Google Talk screw Skype oovoo ect or any other apps that has no push. BTW Facebook it's another mess, soon Ill be deleting and using the browser.
Sent from my SAMSUNG-SGH-I777 using xda premium
penskyc said:
what I meant to say about the suspend and events/0 is that i wish i was getting a minute every 10h, it is more like 20minutes.. I just finished my over night test, I put the phone down at 11:09 with 69% battery left, waking up just now with 30% at 8:16, did not touch the phone once.. should have been asleep the whole time.. also my suspend is at 31minutes (BBS) and my events/0 is at 30minute (BBS), i also reset my cpu spy. deep sleep 5:49 hours, 200mhz 1:29 hours and 800mhz 1:21 hours (14%)
and lastly, here is my dmesg and wakelocks... so yea this looks pretty horrible to me!
Click to expand...
Click to collapse
It seems to be the same issue as everybody else is having, getting excessive network traffic waking up the phone. Either you do a network capture of the packets and identify it by the highest common port which comes in (complicated), or you turn off each service off one by one. In the last case I'd start with the network location service (Kill it with Titanium) as that was known to be a *****.
AndreiLux said:
It seems to be the same issue as everybody else is having, getting excessive network traffic waking up the phone. Either you do a network capture of the packets and identify it by the highest common port which comes in (complicated), or you turn off each service off one by one. In the last case I'd start with the network location service (Kill it with Titanium) as that was known to be a *****.
Click to expand...
Click to collapse
so you think I should freeze each app one by one and let chill for an hour and see if there is drainage or not? is ot just processes or apps? cause I would never know to do something about network service unless u said something.. BTW I did, and i still lost 4% battery in an hour of idle.. so thats not it.. what about using this the other way you were talking about
http://www.vbsteven.be/blog/android-debugging-inspectin-network-traffic-with-tcpdump/
penskyc said:
so you think I should freeze each app one by one and let chill for an hour and see if there is drainage or not? is ot just processes or apps? cause I would never know to do something about network service unless u said something.. BTW I did, and i still lost 4% battery in an hour of idle.. so thats not it.. what about using this the other way you were talking about
http://www.vbsteven.be/blog/android-debugging-inspectin-network-traffic-with-tcpdump/
Click to expand...
Click to collapse
Exactly. By services I just mean running apps I guess. You can do it as in that guide too, but its hard to later find out which App listens to which port on Android...
AndreiLux said:
Exactly. By services I just mean running apps I guess. You can do it as in that guide too, but its hard to later find out which App listens to which port on Android...
Click to expand...
Click to collapse
ok, so I did try this to an extent, i would disable 4 apps at a time for the most part, only apps, none of the red items like wifi manager and stuff like that (even though i did try that at a different date)
I had no success.. I went back to stock, uninstalled all bloatware, at&t live TV, my account, bar scanner, all that bs, right now I have BBS, Cpu Spy and titanium, only apps that are not stock and are in the list of installed apps. I am still getting this issue!! could it be that I have poor service (though this never affected the iphone this badly) I lose 40% overnight though and it seems odd to me that would be because of low service..
GO.Keyboard and GO Contacts ( especially GO Contacts) was draining my battery at a phenominal pace. GO Contacts was using more battery than the display
Sent from my SAMSUNG-SGH-I777 using XDA App

What is com.android.server$alarmManager ?

This process seems to be complained about by MIUI users and there doesn't seem to be a clear explanation of what it does. The main annoyance about it is that it repeatedly wakes up the phone while it's trying to sleep. I am trying to figure out if this is normal or if it is some sort of bug. When I look at my battery logs it shows this process as eating up a significant amount of battery. Can somebody please help?
It is what triggers apps to run or update at certain times, such as facebook or weather updating every hour...or whatever it is set at.
Does it have a specific time delay or is it adjustable? I am just wondering if certain Roms or kernels tweak it...?
I'm pretty sure that it has to be a script that is constantly running

[Q] Help me to convert my Stock JB Xperia go to any other custom JB

Hello friends,
I'm using Xperia Go with stock JB version(6.2.A.1.100). The battery life of this stock rom is way too much annoying with 3G on. Example: Last night, charge was up to 82% & at morning it came down to 25%. Now think what if i use data traffic at day
I want a custom JB rom for Xperia Go with a good battery life with 3G on for some hours(which may last one day) & of course with a good ram where less important system apps are not preloaded & as much as low bug possible.
Well! The main problem is I'm not expert in these processes. So if anyone gives me a nice guideline, i will be very grateful
IMPORTANT: MY PHONE HAS LOCKED BOOTLOADER,I saw many people install CWM in their stock JB with locked bootloader & then convert into custom JB rom. I want to use that process, because I don't want to downgrade into ICS as I'm not an expert to do many things right
Seems that i want everything
My Phone: Xperia Go rooted with doomlord kit version 14
Build number: 6.2.A.1.100
Kernel version: 3.0.8+ (I think its the stock kernel)
My pc operating system: Windows 8
One question: When I will install CWM in my xperia before installing custom rom, will I loose every data & does unlocking bootloader wipe data?
@Pias94
In principle, unlockicking bootloader does not wipe any data, however I have seen a few posts that claimed it did.
Rooting should not wipe data waht so ever.
With that said, always backup your phone before making any changes. In any case data on internal storage will not be wiped. only data on device memory (contacts, sms, etc.)
Now to the real issue.
I tend to believe your problem is not the ROM itself, I use stock JB on my XP with decent baterry life.
First check your battery stats to see what takes most of it (no rom will change your screen battery consumption).
Second install Wakelock Detector and see which apps cause wakelocks, especialy screen wakelocks..
Rooting your device should be sufficient to let you tune it for good battery life and performance.
I see DooMLoRD Easy Rooting Toolkit is compatible with your device and firmware version and it is indeed easy rooting toolkit
Well, there are plenty of JB rom's you could try it all depends on you taste.
Regarding battery life, try checking if any apps run in the background.
You can use greenify too, it's an app that hibernates apps so that they don't run all the time
or they don't run on their own and just end up wasting resources and battery.
You could also try different kernels that have different governors.
Underclocking your device below the average helps too, by allot during the long run actually.
Look around the forums, just beyond the first page, sometimes you can find some really neat stuff you might like
ChikeD said:
@Pias94
In principle, unlockicking bootloader does not wipe any data, however I have seen a few posts that claimed it did.
Rooting should not wipe data waht so ever.
With that said, always backup your phone before making any changes. In any case data on internal storage will not be wiped. only data on device memory (contacts, sms, etc.)
Now to the real issue.
I tend to believe your problem is not the ROM itself, I use stock JB on my XP with decent baterry life.
First check your battery stats to see what takes most of it (no rom will change your screen battery consumption).
Second install Wakelock Detector and see which apps cause wakelocks, especialy screen wakelocks..
Rooting your device should be sufficient to let you tune it for good battery life and performance.
I see DooMLoRD Easy Rooting Toolkit is compatible with your device and firmware version and it is indeed easy rooting toolkit
Click to expand...
Click to collapse
My friend,
I uploaded some screenshots. The first two photos, i uploaded the app use right after charging my mobile & in the next pair of photos are next mornings'. In between i just make a call for 10 min. Nothing else. Now say what should I do?
btw, bt the wake lock detector, i found just facebook,messenger & whatsapp which might drain some extra battery.
Pias94 said:
My friend,
I uploaded some screenshots. The first two photos, i uploaded the app use right after charging my mobile & in the next pair of photos are next mornings'. In between i just make a call for 10 min. Nothing else. Now say what should I do?
btw, bt the wake lock detector, i found just facebook,messenger & whatsapp which might drain some extra battery.
Click to expand...
Click to collapse
Are facebook,messenger & whatsapp always on in stamina prefs?
I have whatsapp, viber. facebook, tahoo messenger, and talk, set to always on in stamina prefs and I only get about 1% per hour standby drain.
Is your movile data on or are you using wifi?
I can see in battery stats the phone is awake most of the time which it' shouldn't be in standby.
Below my stats for today, you can see there very little drain for standby time. I had 5 minutes calls and a bit of data on time, and still only about 35% drain for 12, while you had 40% drain for standby time only, this need to be fixed.
I must note though I have the 98screenstate_script that cap CPU speed when screen is off.
As I said, can't change screen on drain, you can set adaptive brightness or manually low to save some juice, not much though.
We need a bit more detail to know what cause drain.
In WakelockDetector check :"statistics since unplug" in prefs.
Charge battery full, no calls or nothing till next morning, or at least a few hours with no calls or screen on, take screen shots for all 3 wakelocks (screen, cpu and wakeup triggers, battery stats + graph + screen on time.
CPU Spy plus may also help if you install it, reset timers just before you unplug the charger, and take screen shot in the morning.
Hello,
I tried to use two thing.
1."First You Setting--->APPS--->All Tab---->ECO Mode Controller (Click Clear Data and Force Stop)
Then Again you Go Setting--->APPS--->All TAP---Setting.apk (Click Clear Data and Force Stop)
Charge Your Mobile 4 to 5Hours
After 4-5 Hours While Charging That Time You Click Vol Up+Power Button( after 3 times Vibrate)
Remove Your Charger and Again Plugin Your Mobile The Sony Logo With Comes And Charging Logo has been Shown
Then Power On Your Mobile While Charging
Then Go Setting--->Power Management TURN ON BATTERY STAMINA MODE"
After that I saw that charge duration came from 10 Hour to 3 day. But i think still charge is leeching, but a little bit slow.
2. I added whatsapp, facebook, messenger & one other app(360 mobile security) to the stamina prefs as u said.
But though charge leeched from 100% to 64%.
I must say a little improvement. Because is usually go down below 50 sometimes.
My mobile data is 24/7 on.
I've added the screenshots you want.
Note: Just one call came up that time. I couldn't receive though
Mobile data can cause some drain, but I think all traffic goes through wifi if wifi is available, and stamina mode supposed to turns it off when in deep sleep.
Can't make definitive conclusion, but I don't like this messenger, 490 times wakelocks. Why do you need it anyway, you can chat with facebook itself. Is the messenger in stamina active apps?
The active apps that require network can only work if wifi is connected, which apps you have there?
CPU stats look reasonable with 86% at deep sleep, and only 5% above 200MGHz.
Are you rooted, we can try and even lower that if you are.
Force stop the messanger for one day and see how it goes.
The see if turning off mobile data make a change, but don;t do both things at once so we can indentify which cause the drain, or cause most of it.
EDIT: I'll install the messenger on my phone and see if there's a change.
ChikeD said:
Mobile data can cause some drain, but I think all traffic goes through wifi if wifi is available, and stamina mode supposed to turns it off when in deep sleep.
Can't make definitive conclusion, but I don't like this messenger, 490 times wakelocks. Why do you need it anyway, you can chat with facebook itself. Is the messenger in stamina active apps?
The active apps that require network can only work if wifi is connected, which apps you have there?
CPU stats look reasonable with 86% at deep sleep, and only 5% above 200MGHz.
Are you rooted, we can try and even lower that if you are.
Force stop the messanger for one day and see how it goes.
The see if turning off mobile data make a change, but don;t do both things at once so we can indentify which cause the drain, or cause most of it.
EDIT: I'll install the messenger on my phone and see if there's a change.
Click to expand...
Click to collapse
Yes,the messenger is added in stamina mode. The messenger app is so cool you know & easy to use
I have facebook, whatsapp, messenger, 360 mobile security & play services are in stamina mode.
Yes,the phone is rooted. But i don't know how to make the system lower.
Ok, I will stop the messenger while again full charging my phone.
You should try messenger
Thanks1
Pias94 said:
Yes,the messenger is added in stamina mode. The messenger app is so cool you know & easy to use
I have facebook, whatsapp, messenger, 360 mobile security & play services are in stamina mode.
Yes,the phone is rooted. But i don't know how to make the system lower.
Ok, I will stop the messenger while again full charging my phone.
You should try messenger
Thanks1
Click to expand...
Click to collapse
The attached flashable zip adds init.d support and install the S98screenstate_scaling_mini, a modified version of S98screenstate_scaling.
This script caps CPU frequency and twaek CPU governor parameters. Help saving some battery when screen is off.
If you experiance problems delete the file from /etc/init.d and reboot.
ChikeD said:
The attached flashable zip adds init.d support and install the S98screenstate_scaling_mini, a modified version of S98screenstate_scaling.
This script caps CPU frequency and twaek CPU governor parameters. Help saving some battery when screen is off.
If you experiance problems delete the file from /etc/init.d and reboot.
Click to expand...
Click to collapse
Sorry my friend, i'm a rookie in those case. What shall i do with this file & how?
Rather I could use this apk file easily. So will this apk work?
https://play.google.com/store/apps/details?id=com.mhuang.overclocking
Pias94 said:
Sorry my friend, i'm a rookie in those case. What shall i do with this file & how?
Rather I could use this apk file easily. So will this apk work?
https://play.google.com/store/apps/details?id=com.mhuang.overclocking
Click to expand...
Click to collapse
Yes it works, I have used it before but you wil have to set the conditions at parameters yourself, and for some reason not all parameters changed as I wanted them too, but it may be governor issue rather than the app.
I rather a simple script doint it instead.
All yuu need is to flash it in recovery.
ChikeD said:
Yes it works, I have used it before but you wil have to set the conditions at parameters yourself, and for some reason not all parameters changed as I wanted them too, but it may be governor issue rather than the app.
I rather a simple script doint it instead.
All yuu need is to flash it in recovery.
Click to expand...
Click to collapse
Sorry, I've no recovery installed so I guess i have to use that apk file :/
Can you tell which recovery should i use for my stock doomlord rooted JB kernel?
Note: You are really helping me! Thanks!
Pias94 said:
Sorry, I've no recovery installed so I guess i have to use that apk file :/
Can you tell which recovery should i use for my stock doomlord rooted JB kernel?
Note: You are really helping me! Thanks!
Click to expand...
Click to collapse
I have an adb version of it too, not sure how good i tested it
Extract and run install
USB debugging must be enabled of course.
ChikeD said:
I have an adb version of it too, not sure how good i tested it
Extract and run install
USB debugging must be enabled of course.
Click to expand...
Click to collapse
Thanks!
but did u try facebook messenger yet?
Pias94 said:
Thanks!
but did u try facebook messenger yet?
Click to expand...
Click to collapse
Yes I have installed it, but only had 53 alarm wakeups., facebook is on top with 76.
I had an excess drain today.... 15% for 10 hours standby normally Google+ won't wake so much but today its on top of CPU wakelocks with over 1 minute, second is facebook with half a minute, but I think it's an app I made that caused soe of it.

CM11 Anormal Battery Drain + Fixes !

/!\FOUND ONE FIX FOR SCREEN OFF BATTERY DRAIN - BOTTOM OF THE POST/!\​
Hello, and thank you for reading my thread.
1. Introducing of me and my problem
I am the proud owner of a SGS3, but I'm not english so excuse my poor level of speaking. Hope you can understand me. My problem may seem quite familar, but after hours of reading I still did not find anyone with the same problem than me (I read on german, french and english - especially XDA - forums without any actual answer). Like I allready said I have a SGS3 but I had a SGS2 and a Note 1 before. Being a "Flash-addict", and tired of TouchWizz, I flashed a lot of roms, and of course CM. And here is the problem : on every CM installation I have I have terrible battery issues. Here you may think "Pfff... another n00b who didn't read the fu***** manual. (RTFM -- joke -- understood ?) So let's introduce part II :
2. My config'
If my problem is in a new thread and not in a general "Problem" thread, it is because it seems very 'unique' to me. I have :
- GPS totally off (localisation OFF in settings)
- WiFi constant refreshing OFF too
- NFC and AndoBeam OFF even if I read it has no impact on battery life
- I ALWAYS enter multi-tasking and close all apps
- WiFi and Data OFF (Data always OFF because I only have 50MB of mobile internet / month (Viva la france !) - WiFi only ON at home )
- Brightness on AUTO
- CPU governor on 'PEGASUSQ' or 'POWERSAVE' depending on usage
- Talking about usage :
- SMS and Facebook
- Apollo (sorry but I can't live without a7x or black sabbath)
- Bash (u know that weird app that eats your time)
- Internet via Chrome or default browser (at home)
- That's all (+ some games at home)
3. What I have tried
On SGS2 :
- Buying a new battery (talking about battery do you know how do be 1000000% sure you have an original battery ? Some people say about the 'Made in Taiwan / Made in Korea" etc... but I have friends why an original SGS4 w/ battery made in Korean and some w/ battery made in Japan...)
On GN :
- Buying a new battery
On SGS3 (my current one, as you may guess)
- I read it is better not to use Titanium Backup so I tried without (sooooooo long restoring all apps from Play Store)
- I read extSDcard can cause problems so I put it away - do you know where you can unmount extSDcard in CM settings ? I know this option exists in TouchWizz based roms.
- I tried all the placebo solutions like wiping battery stats and so on...
- I installed Boefla (sorry for misspeling) Kernel and used an "Extreme Battery Yank" presset.
- Always upgrading to last CM Nightly (and re-flashing Boeffla Kernel)
- Flashing Mods for battery life
- See last part for SCREEN OFF fix !!!
4. Extra Notes :
- I have no battery issues on Stock ROMs and most of Sammy based roms
- I use a 1A battery charger, Samsung Official or very well done Chinese Export
- I have an extBattery with 2A charging possibility if needed.
- I really enjoy CM11 and really wanted to use it as daily-usage ROM (and not another KK rom like SuperNexus)
- My phone heats a little bit more than on Sammy Roms
- Current Widget says my battery status is Good (not dammaged battery)
- Oh and I have the stock 2100 mAh Battery
Best stats reached : ~5 % in one night (pretty good for me) and 3% in 30 minutes video with Wifi on, samsung headsets, AUTO brightness, PowerSaving governor and synchronisation and all the stuff off.
When playing games like "Worms 2 Armaggedon" or just watching videos on YouTube in HQ by charging the phone with my 1A charger, the battery level does not move (+1 % per 40 minutes)
Thank you for reading my thread and being so awesome in modding our devices !
Edited : Solutions found​
Applied this solution (from Reddit) :
After much experimentation, I realized that it is not GP services app itself that is causing the wakelocks, it's the google search app pinging the GP services app for location all the time! Especially now with the Google now launcher, google search app is always or almost always active. This setup seem to create excessive wakelocks for NlPCollectorWakeLock from the google search app (Google Now), which in turn shows up as GP services wakelocks.
The solution is to take away 2 permissions: the Google search app permissions to keep the device awake, and access location. This gets rid of the wakelocks, and still appears to keep google now etc. functional. You can do this using App Ops from the play store (needs root), or if you are on custom ROMs, through "App Privacy" menu setting. Additionally you could also turn off location history and reporting, to be on the safe side. Google Now still works, but now without the wakelocks!
Click to expand...
Click to collapse
another method for same fix is this one :
I know a great fix, if this can get to the top it will help a lot of people. It requires the Xposed framework and the module Wakelock Terminator. The free version lets you block 1 app, and that's all we need. Open up Wakelock Terminator, choose to block Google Play services, and filter it with the following: NlpCollectorWakeLock NlpWakeLock CheckinService NetworkLocationLocator
Click to expand...
Click to collapse
Here is an additional fix (thanks to ivek81cro)
Ok, i did what post said and it didn't help, then i went into Privacy guard and set deny for Keep awake for Android system. Phone then cooled down and battery drain stopped. I didn't notice that anything else changed on phone (i think i didn't messed up anything with that). Today i returned permissions to default and all is ok now, no bat. drain or heating up.
Click to expand...
Click to collapse
I will upload images and links as soon as I am authorized
After this "fix", I had my phone SCREEN OFF two hours without loosing any percentage, with GSM on, WiFi, BT and NFC off. (just like during night)
Still looking for solutions for SCREEN ON, will tell you !
I also have the battery problems. No matter what I do it still drains fast. When I use original 1amp charger and do something on phone my battery actually dies while charging... No idea on what's going on
Sent from my toaster
foggydisaster said:
I also have the battery problems. No matter what I do it still drains fast. When I use original 1amp charger and do something on phone my battery actually dies while charging... No idea on what's going on
Sent from my toaster
Click to expand...
Click to collapse
OK so I am not the only one, this is already a good (bad ?) thing...
up ?
+1
-2% in 50 min. in standby, screen off, data off. :crying:
Tried everything.
Principal post eddited : Added a solution from Reddit (I can't post links because of XDA's security) for exeptional battery economy when screen is OFF :highfive:
I have same issue since yesterday, i9305, CM-11-20140531-nightly, com.android.systemui takes allmost 50%+ of battery and drains it 5%/h when in "sleep mode", testing solutions posted above, will tell you if it worked. Thanks
Ok, i did what post said and it didn't help, then i went into Privacy guard and set deny for Keep awake for Android system. Phone then cooled down and battery drain stopped. I didn't notice that anything else changed on phone (i think i didn't messed up anything with that). Today i returned permissions to default and all is ok now, no bat. drain or heating up.
Principal post eddited : Added a solution from ivek81cro based on solutions already given :highfive:
battery drain cm11
Try this...
Developer options enabled
Settings...performance...CPU frequency...minimum...make sure its set to lowest...tick apply on boot box.
After clean install mine was set to 2 knotches from max...set to 300 and immediately fixed all problems with battery drain.
NOTE III
SPRINT
CM11 (ALWAYS CURRENY NIGHTLY)
The below link shows the tip mentioned above about the privacy guard.

Categories

Resources