Hi Everyone,
I have noticed a couple of posts where people reference that "their phone goes into deep sleep quickly".... What does this mean exactly and does it depend on the kernel you are using?
Also, what does it mean when someone says "a particular app stays in a wake lock". I saw this when some one was complaining about there battery drainage.
How can you tell if either of these things are happening to your phone?
Thanks for all the help!!!
To answer your second question... I use the better battery stats app to see which apps are causing issues.
Ya, better battery stats is pretty amazing, uses root permissions to dig deep. The amount of info us impressive.
It's a $3 app, but is free for xda members. Thread with download is in the main apps forum.
To answer you, a wake lock is when an application or a system operation pulls the device out of sleep to run causing battery usage. Maps is a huge abuser of this (maps does not just mean Google, other location required apps are categorized under maps).
Sometimes they can be stopped depending on what is causing it, but locating them is the first step.
Sent from my VZW GS3 running Synergy/Trinity/Dark Horse Rises
To answer about the deep sleep you can use CPU Spy from the market. It's a free app and tells you what states your cpu has been in since you reset it's stats. Deep sleep being one of the states.
hi, i have an htc sensation 4g running cm10 jelly bean rom and i wanna know how to put my phone on deep sleep. im on bruce kernel 3.0.49. can some1 please help?
I believe the device should automatically go into sleep mode when not in use. I don't believe you have to do anything for this to occur. Make sure none of your applications are running on there own.go to settings, apps, running apps and see what's running. Leave system apps alone however if other than system apps are running you can close these apps. Just press on the app and a menu will pop up. The running apps other than system apps could prevent deep sleep. Make sure you don't shut down ANY system applications that are running. Those should be fine. Hope this helps. Best wishes.
Sent from my HTC Sensation using xda premium
If you're a little adventurous you can check out the Q&A thread about Bruce's ROM. Skipjacks and Tobitge have put together a list of processes to kill using system tuner (I think). The wakelocks are a known issue and perplexing to say the least. I am beginning to wonder however how big of battery drain they really are... I'm having pretty good results despite them.
realsis said:
I believe the device should automatically go into sleep mode when not in use. I don't believe you have to do anything for this to occur. Make sure none of your applications are running on there own.go to settings, apps, running apps and see what's running. Leave system apps alone however if other than system apps are running you can close these apps. Just press on the app and a menu will pop up. The running apps other than system apps could prevent deep sleep. Make sure you don't shut down ANY system applications that are running. Those should be fine. Hope this helps. Best wishes.
Sent from my HTC Sensation using xda premium
Click to expand...
Click to collapse
does it improve battery life tho?
Yes it would if they could improve the wake lock situation. Check out as above thread suggested, they possibly know of a fix! Also have you considered a extended battery? Extended battery really helped my battery issues. But in this case it sounds like a known issue with something in the rom causing wake lock
This is where your drain is coming from. Check out the fix above. See if it helps.
Sent from my HTC Sensation using xda premium
hardball 45 said:
If you're a little adventurous you can check out the Q&A thread about Bruce's ROM. Skipjacks and Tobitge have put together a list of processes to kill using system tuner (I think). The wakelocks are a known issue and perplexing to say the least. I am beginning to wonder however how big of battery drain they really are... I'm having pretty good results despite them.
Click to expand...
Click to collapse
This only helps with some specific Google Services wakelocks. The Android framework is causing some other wakelocks through the AlarmManager service (Not the same as the alarm clock). These wakelocks have proved very elusive to destroy.
The modifications to the google services framework that Tobitege and I worked out do seem to have some impact on battery life. But if you are a big user of Google Now or GTalk, these modifications are not for you as they break both of those services (mainly because those 2 services were 2 of the 3 main causes of Google wakelocks)
The thing with the battery drain because of these wakelocks is that they drain the battery during sleep, but that drain isn't being properly reported in the battery stats (this is an electrical physics problem related to how a slowly discharging power cell can give a false reading of voltage, not a software problem). So you'll have the phone in sleep for 3-4 hours and it will show no discharge despite constant wakelocks. But us the phone for 10 minutes and the battery quickly drops 15%. In reality it drained that 15% during sleep due to the wakelocks. The battery stats just weren't showing it right away.
Bruce did make some tweaks on 10/27 that have improved the Android inspired wakelocks noticably. But they are still there.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------What I have right now out of Doze are "Bluetooth MIDI Service", "Bluetooth Share", the "Clock" app and two other Clock apps.
I am not sure how effective is the method listed below after the last update. Stay tuned.
Also I think the current version of Facebook Messenger is draining too much battery.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Hello everyone,
when I bought my Zenfone 3 ZE520KL, I was amazed by it's battery life. I could easily get around 8 hours of SOT in a single charge with moderate usage. My device was running Android Marshmallow 6.0 out of the box, but performance wasn't as good. On Nougat, performance is much better and faster, also I used to get some lags and frozen screen, the capacitive keys also sometimes froze when I was charging my phone, but now I don't get issues like that as often as before. Interface is so much more appealing and I love it.
But what about battery life? I started getting around 5 hours of SOT.. which is still good, but not really close to 8 hours. I thought a lot about these 3 hours that were missing so I decided to start investigating. I wanted to share my findings with you so maybe you would know something that could help.
It's been two weeks since I have been testing out different things. The apps I used to do my research are:
Carat. What I love about this app is the process list. It shows exactly which apps and system processes are running in the background, so I can control them very easily.
Greenify. Thanks to the Carat app, I can see which apps continue running in the background, so I can use Greenify to hibernate them after I'm done using them. (Examples: Youtube, Snapchat etc.). Also I bought the Donation Package, and unlocked the other modes using adb commands (my device is not rooted).
BetterBatteryStats. This app is usually used to detect wakelocks. I limited the Google Calendar App from syncing so it doesn't use too much battery in the background. This app is paid in Google Play but you can get it for free from here.
What I did to get better battery life:
I excluded the services, that were always running in the process list from the Carat App from Doze. Apparently, the new Doze in Nougat gives us permission to optimize more system processes and services than before, which can backfire - Doze starts trying to kill processes that can't be killed, and this results in consuming more battery juice than saving it.
How to enter Doze settings and make the following changes:
Go to "Settings" > Select "Battery" > Tap on the three dots at the upper-right corner > Select "Battery Optimization" > Select "All Apps" > Find and tap on the Apps/Services/Processes I have listed below > Select "Do not optimize". The other apps and services should stay optimized.
The apps, processes and services that I removed from Doze are:
Android Services Library
Android System
ASUS Calling Screen
Bluetooth MIDI Service
Bluetooth Share
Camera
Clock
com.android.smspush
com.asus.keyboard
com.asus.shim
com.qti.qualcomm.datastatusnotification
com.qualcomm.qti.tetherservice
org.codeaurora.bluetooth
org.codeaurora.ims
com.qualcomm.qcrilsgtunnel
ICESound Service
Mobile Manager
MobileManagerService
System UI
Telecom Service
Telephony Service
ZenUI Keyboard
ZenUI Launcher
Some other apps that I'm using: Do It Later, Greenify, Messages, Nova Launcher, Timely, Weather.
Please do a full charge to 100% afterwards and check if the battery still drains as quickly as before. Your feedback will be greatly appreciated.
I am already starting to see improvement in my battery life. I was losing around 2% on Stand By and battery was draining fast when I was using the phone, but now I lost 0% on Stand By overnight and 10% for 1 hour of SOT (before this I was losing 10% for 30 min. of SOT). I am still trying to figure out which services exactly are causing the drain, when they are being optimized. Maybe the services, included in the Android System? (Check them from Settings > Battery > Android System > Included Packages). I deleted Facebook and Twitter apps and started using them from Chrome (almost the same thing, I quickly got used to that). Please check the updates below for more info and share your opinion or advice in the comments so we can all reach a better experience with this amazing smartphone.
Thank you for reading!
Update1: 6h30min SOT with 30% left (917mAh, 35%), but I will have to charge now. I have been messing with Doze a lot, maybe I'll get more clean results later. Progress has been made though, at least with my device.
Update2: Something interesting - my J-Score with the Carat app before and after starting this experiment: http://i.imgur.com/Q8u6HBD.jpg
Update3: There is a battery drain when making voice calls - 226mAh (7%) were lost because of 43 minutes long talk time.
Results were worse after testing with the second list removed, although there wasn't much draining with the screen on: SOT - 5h20min for 70% of battery (752mAh, 20%).
Update4: com.android.phone appears as a wakelock at BBS (Wakeups:8). Also 2h30 SOT for 30% used battery (100-70%~408 mAh). I'm updating the list and trying again.
Please note that my phone is updated to the latest firmware WW_Phone-14.2020.1703.28-20170410.
Update5: com.android.phone is still an active wakelock (Wakeups:14), but SOT is 2h34min for 30% used battery (100-70%~343mAh). At 30% battery left, SOT is almost 6hrs(28%~787mAh), Device Idle is at 10% (291mAh). The MobileManagerService is causing way too many wakelocks and is probably the reason for the high Device Idle battery usage.
Update6: MobileManagerService is no longer showing as a frequent wakelock. com.android.phone (Telephony Service - Wakeups:9) and com.google.android.apps.messaging are the most persistent wakelocks, other than that battery life is amazing at the moment. SOT is 2h45min for 30% used battery (100-70%~366mAh). I also had 27 min of talk time (4%~145mAh). At 30% left, I have 6h33min of SOT (32%~912mAh). Device Idle is again at 10% (292mAh). We are ready for the final test.
Update7: The results are quite interesting. After removing com.qti.qualcomm.telephonyservice from Doze, com.android.phone stopped appearing as a frequent wakelock at first, but now, at 70% it has 16 wakeups. SOT is 2h22min (100-70%~318mAh), so it's not better. I'm going to try a few more changes.
Update 8: I posted it as a reply here.
Update 9: I shouldn't have put Task Manager out of Doze, I get so much better battery life now. The update is ready, check it here.
Good post, thank you for investigating this, please let us know if you find more stuff or what exactly is responsible for it and an easy way of fixing.
1noob said:
Good post, thank you for investigating this, please let us know if you find more stuff or what exactly is responsible for it and an easy way of fixing.
Click to expand...
Click to collapse
Hello! Thank you for your reply. I'm so happy I could help others and myself with this thread, but I also need to know if you are also seeing any difference. Please check here regularly!
Also, I'm guessing that when you put your system processes and services in Doze, you also decrease their performance, which causes battery draining, as they try to run normally and do their work. Doze is trying to prevent them from doing that. This is my conclusion, but only results will show if I'm correct. If you own yourself a Zenfone 3, please feel free to report if you experience any changes using my method.
Thank you and have a nice day!
Hi, thank you for the post. I have a zenfone 3 here and will try your method.
I'm trying it on ze520kl with marschmallow, it seems working fine. :highfive:
Do you remove the first and second list from doze ? or ate testing with only the second list now?
Nice findings btw
pedromms86 said:
Do you remove the first and second list from doze ? or ate testing with only the second list now?
Nice findings btw
Click to expand...
Click to collapse
I have removed everything from both of the lists. It's still early to say but no major battery drain is noticed for now. Thanks!
bibbomio said:
I'm trying it on ze520kl with marschmallow, it seems working fine. :highfive:
Click to expand...
Click to collapse
Awesome! :good:
Thank you so much for this article. Well written as well. I have applied the changes and so far no issues (it has been 6 h is). Will report once I have more history
I remove the apps from doze, and can say it really improve battery (test for one day)
thanks !
@Blackrose110 any news improvements after update3 ?
New update is released via OTA (~500MB).
pedromms86 said:
@Blackrose110 any news improvements after update3 ?
Click to expand...
Click to collapse
Too early to say, also I got a weird wakelock, and lost 2% overnight. I lost the results (100-90%) after a restart. Now I'm going to update my phone and start again.
I had 8% used up on 43 minutes of SOT, and 2% lost on voice calls (100 and something mAh). I went to bed with 92%, I guess the other 2% were lost on that wakelock and the clock wakelock. These 2% were lost on equal intervals.
It's going to take a while, I'm just using my device normally. I don't have time to be on my phone all the time, also the battery is harder to drain now. At this point, I'm just trying to get better results.
Cheers!
pedromms86 said:
@Blackrose110 any news improvements after update3 ?
Click to expand...
Click to collapse
Check again tomorrow!
RobinRo said:
New update is released via OTA (~500MB).
Click to expand...
Click to collapse
Updating...
I don't think it is a good ideea to change Doze settings for system services like com.qualcomm.* or telephony*.
In theory, these services should be compatible with operating system and they should work as designed. I would focus on third-party apps who doesn't work well on Nougat.
Anyway, is just an opinion and i'm looking forward for updates
ci6i said:
I don't think it is a good ideea to change Doze settings for system services like com.qualcomm.* or telephony*.
In theory, these services should be compatible with operating system and they should work as designed. I would focus on third-party apps who doesn't work well on Nougat.
Anyway, is just an opinion and i'm looking forward for updates
Click to expand...
Click to collapse
Hello ci6i, I also agree with you, and that's why I excluded all of them from Doze when I first tried this out. At the moment, I removed only those system services, that run in the background all the time. My goal is to find the least amount of system services and processes, that are causing battery drain when the phone is in use.
I am not saying that you should do exactly what I did. It's best if you try out yourself on your own device what works and what doesn't.
I also have only excluded from Doze apps that I use daily. But everyone is using different apps and it depends only on the developers to update them.
You can download Carat for free from Google Play and check the process list, it's very useful. The app itself doesn't use any battery.
Good luck!
Blackrose110 said:
...
I am not saying that you should do exactly what I did. It's best if you try out yourself on your own device what works and what doesn't.
I also have only excluded from Doze apps that I use daily. But everyone is using different apps and it depends only on the developers to update them.
...
Click to expand...
Click to collapse
I agree with you and i really appreciate your work Yesterday I've installed Carat after i read your first post and today i did new OTA update and cleared cache partition. Let's see how it works in the next few days.
What should I do next, guys? Remove other com.qualcomm/com.android/com.asus services or remove just MobileManagerService from Doze? I'm thinking about the second one, I'm curious to see if ti makes any difference. I think the results from the first test were the best, and the MobileManagerService was out of Doze as far as I remember. Might as well try and see what happens.
It's a bit hard to drain the battery these days, so updates might not be fast. Patience is key!
Yeahh final test!! Looking forward to the result
I want to find what is best for me, so tried many combinations for better battery life and performance. I can't write complete list, already mentioned by @LolaPalocz and @GenomeX. Thanks for the list.
List 1 : https://forum.xda-developers.com/xperia-xz/how-to/huge-bloatware-list-xperia-xz-detailes-t3578758
List 2 : https://forum.xda-developers.com/showpost.php?p=67050458&postcount=3
I realized that some Sony's bloatware apps caused battery drain if deleted.
MyXperia
Software Update
Fota Update
Support
Smart Connect
Small App Framework, Launcher, Widget, Manager
%20 battery drain in one night!
If anyone knows why they cause battery drain or how we manage that keep deleted, please inform us
There is no way that deleted apps cause battery drain.
L33Tgod said:
There is no way that deleted apps cause battery drain.
Click to expand...
Click to collapse
I think they do. Some services work together. When we delete some apps other services get errors again and again, so phone will not deepsleep... I see that on Logcat, so basically they do battery drain.
sceryavuz said:
I think they do. Some services work together. When we delete some apps other services get errors again and again, so phone will not deepsleep... I see that on Logcat, so basically they do battery drain.
Click to expand...
Click to collapse
for me, on MM 6.0.1 uninstalling those system apps doesn't cause battery drain.
Check betterbatterystats and logcat to see if there's a recurrent wakelock / errors
Hey there,
Hope you are well. When i do Settings - Battery & performance, it is showing last 30 minutes and sometimes 4 minutes. I did some research about this issue on the internet (Reddit, etc.) and many people have this problem. May i ask how can i view the battery stats correctly? I don't want to use 3rd party battery stats app because as i learn they are really draining battery.
Also i see Cell Standby is draining battery because it's usage is %28.4 since 1 day.
May i ask when do you think to fix battery stats issue? We really in trouble with this issue. We really need urgent update about this. Any hel
Stock ROM, MIUI 12.1.3, Global Stable, not rooted
Thanks in advance.
Kind Regards.
Hint: Replace "Need Help" in this thread's title by MIUI 12.1.3
jwoegerbauer said:
Hint: Replace "Need Help" in this thread's title by MIUI 12.1.3
Click to expand...
Click to collapse
Done.
What you're reporting is battery consumption, isn't related to what the battery stats tool - embedded in Android - reports.
You can dump battery stats with ADB
adb shell dumpsys batterystats