Related
Any ideas on managing the wakelocks on Android and specifically on the Infinity?
I've checked the option of switching off WiFi with screen-off, but in my battery usage stats I still see that over 10% of battery is consumed by Google Services with 672 wake locks & device waked 77 times (WiFi drain itself is 13,5%, so quite OK). This is what GSam Battery Monitor shows. Android stock battery management (in Settings) shows 51% drain by Google Services and 26% by WiFi (but I believe these stats are wrong most of the time or just measure a different thing, as they show tablet inactive with 2% bar and it has been inactive most of the time actually).
I have google auto-sync on and I need it, but I still think this is too high a number. I don't get 672 e-mails daily, so these shouldn't be PUSH notifications etc.
I'm not sure if I'm the only one seeing these high numbers there?
Have you tried CPUspy for finding out how much time in deep sleep you have?
Better Battery Stats is also a needed tool to find more about wakelocks
Sent from my GT-N7000 using xda app-developers app
Yes, I'm looking at it from time to time, but thanks for this. I had some issues when I started this thread, after wipe and re-flashing new firmware it seems OK in the stats: Deep Sleep 44%, 102MHZ 16%, 1500MHz 24% (running on balanced mode, interactive governor).
I'm still curious to get to know how to manage wakelocks under Android from (low) system level however.
Hi,
I have a question regarding battery life of the OPO. I'm still not sure whether I have a defective battery, or some apps drains my battery like crazy (or both?). I hope you can help me with this.
In the first 2 weeks since I got it, I use my OPO for mid to heavy activities (a lot of Whatsapp, Youtube, streaming music, etc). I always start the day with 100% battery and I thought it was normal to see the battery drops to at least 20% at the end of the day. To be honest, I didn't check the battery stats in Settings even once in this time frame, and due to my heavy usage, once again I thought this was normal.
Until one night I decided to plug the charger earlier than usual, unplug it around 11pm (w/ 100% battery), then I fell asleep. I was shocked the next morning (8am) when I saw the battery has decreased to 65% with no activities whatsoever. I check the battery usage in Settings and then saw Google Play Services (GPservice) at the top of the list with 45% usage, with "keep awake" time almost identical to total time on battery. I did some research and found some advice including 1) denying GPservice abilities to "keep awake" and "wake up" via privacy guard (from this thread http://forum.xda-developers.com/oneplus-one/general/guide-google-play-services-battery-t2832525), 2) turn off location, 3) turn off sync, but none of them seems the solution to my problem. Since then, I always check the battery usage and reset it, to see if GPservice still at the top. Sadly it still there. After I reset the stats, go to sleep directly and check it about 1 hour later, GPservice uses 40% - 60% of the battery usage, draining about 6% battery / hour.
With screen on a few minutes, it easily drops to 5th or 6th place with ~7% usage, with screen and main apps I use on the 1st and 2nd place. When I googled about this using Firefox, that's when I start worrying about something else, the battery itself. With wi-fi and low brightness (less than >20% if I convert it from the slide bar), browsing with Firefox decrease the battery 1% in 2-3 minutes, no or low usage drains 1% in about 5-6 minutes. In contrast, charging increase the battery 1% in 1 minute. Is that normal? IDK, usually bad battery increasing faster when charging and decrease significantly when in use.
Please help, especially about the excessive GPservice battery usage. And if it's possible, I prefer non-root solution for it. Thanks and sorry for my bad English.
OPO - stock rom (unrooted XNPH44S)
Google Play Services 6.7.76 (reverted back to 5.0.89 factory version but things pretty much the same)
cliffflip said:
Hi,
I have a question regarding battery life of the OPO. I'm still not sure whether I have a defective battery, or some apps drains my battery like crazy (or both?). I hope you can help me with this.
In the first 2 weeks since I got it, I use my OPO for mid to heavy activities (a lot of Whatsapp, Youtube, streaming music, etc). I always start the day with 100% battery and I thought it was normal to see the battery drops to at least 20% at the end of the day. To be honest, I didn't check the battery stats in Settings even once in this time frame, and due to my heavy usage, once again I thought this was normal.
Until one night I decided to plug the charger earlier than usual, unplug it around 11pm (w/ 100% battery), then I fell asleep. I was shocked the next morning (8am) when I saw the battery has decreased to 65% with no activities whatsoever. I check the battery usage in Settings and then saw Google Play Services (GPservice) at the top of the list with 45% usage, with "keep awake" time almost identical to total time on battery. I did some research and found some advice including 1) denying GPservice abilities to "keep awake" and "wake up" via privacy guard (from this thread http://forum.xda-developers.com/oneplus-one/general/guide-google-play-services-battery-t2832525), 2) turn off location, 3) turn off sync, but none of them seems the solution to my problem. Since then, I always check the battery usage and reset it, to see if GPservice still at the top. Sadly it still there. After I reset the stats, go to sleep directly and check it about 1 hour later, GPservice uses 40% - 60% of the battery usage, draining about 6% battery / hour.
With screen on a few minutes, it easily drops to 5th or 6th place with ~7% usage, with screen and main apps I use on the 1st and 2nd place. When I googled about this using Firefox, that's when I start worrying about something else, the battery itself. With wi-fi and low brightness (less than >20% if I convert it from the slide bar), browsing with Firefox decrease the battery 1% in 2-3 minutes, no or low usage drains 1% in about 5-6 minutes. In contrast, charging increase the battery 1% in 1 minute. Is that normal? IDK, usually bad battery increasing faster when charging and decrease significantly when in use.
Please help, especially about the excessive GPservice battery usage. And if it's possible, I prefer non-root solution for it. Thanks and sorry for my bad English.
OPO - stock rom (unrooted XNPH44S)
Google Play Services 6.7.76 (reverted back to 5.0.89 factory version but things pretty much the same)
Click to expand...
Click to collapse
Definitely sounds like somethings not right, what apps do you have that access or could potentially access your location? If you're still not having any luck, as a last resort you could try a fresh install of CM11S and install your apps one by one to see if you can determine if any are responsible for sucking battery.
Give the below app a try:
https://play.google.com/store/apps/details?id=com.playfulgeeks.gservicefix&hl=en_GB
Install Gsam to see if you can gain any more insight into whats causing battery drain.
https://play.google.com/store/apps/details?id=com.gsamlabs.bbm
cliffflip said:
Hi,
Until one night I decided to plug the charger earlier than usual, unplug it around 11pm (w/ 100% battery), then I fell asleep. I was shocked the next morning (8am) when I saw the battery has decreased to 65% with no activities whatsoever. I check the battery usage in Settings and then saw Google Play Services (GPservice) at the top of the list with 45% usage, with "keep awake" time almost identical to total time on battery.
Click to expand...
Click to collapse
did you try to use this App: http://forum.xda-developers.com/showthread.php?t=1179809
there you can see which app prevents your phone from going to sleep (partial Wakelocks)
gsmyth said:
Definitely sounds like somethings not right, what apps do you have that access or could potentially access your location? If you're still not having any luck, as a last resort you could try a fresh install of CM11S and install your apps one by one to see if you can determine if any are responsible for sucking battery.
Give the below app a try:
https://play.google.com/store/apps/details?id=com.playfulgeeks.gservicefix&hl=en_GB
Install Gsam to see if you can gain any more insight into whats causing battery drain.
https://play.google.com/store/apps/details?id=com.gsamlabs.bbm
Click to expand...
Click to collapse
Maps, Google Fit, Google Now, among other things.
CMIIW but I read somewhere that GServicefix does the same like privacy guard, denying some service to keep awake, wake up, etc.
So I installed Gsam and run it about 1 hour. Interestingly in there, Kernel (Android OS) is on the top the % list with 60% usage (mostly phone in idle/sleep). When I switch sorting to Kernel Wakelocks, it shows event0-798 & event2-798 as the top 2 wakelocks with around 7000 wakelocks. I'll update in few hours, thanks.
drcyber said:
did you try to use this App: http://forum.xda-developers.com/showthread.php?t=1179809
there you can see which app prevents your phone from going to sleep (partial Wakelocks)
Click to expand...
Click to collapse
From what I read on the Play Store description, Kitkat and above requires root?
cliffflip said:
Maps, Google Fit, Google Now, among other things.
So I installed Gsam and run it about 1 hour. Interestingly in there, Kernel (Android OS) is on the top the % list with 60% usage (mostly phone in idle/sleep). When I switch sorting to Kernel Wakelocks, it shows event0-798 & event2-798 as the top 2 wakelocks with around 7000 wakelocks. I'll update in few hours, thanks.
Click to expand...
Click to collapse
Please post screenshot of gsam
Try clear cache+dalvic cache in recovery
Hi, sorry for the late reply.
It seems reboot the phone a few times solves the problem. Battery usage now seems normal when idle, even with location & sync turned on.
Hey, my phone's battery has been differing all the time. It has gone from 4-5hr SOT to 7-8hr SOT to 5-6hr SOT. Right now, I get around 5-6hr SOT, although with android system taking almost as much as the screen according to GSam. Im running Exodus Nightly 4/7/15 with Ak v274 and with the MixMatch V11 profile. Any help is much appreciated. Thank you very much!
These are the screenshots for GSam battery, amplify and Wakelock detector. Also, within settings, Screen is 7%, Android System is 4% and Android OS is 1%.
http://imgur.com/a/Ck64O
Andypandiiee said:
Hey, my phone's battery has been differing all the time. It has gone from 4-5hr SOT to 7-8hr SOT to 5-6hr SOT. Right now, I get around 5-6hr SOT, although with android system taking almost as much as the screen according to GSam. Im running Exodus Nightly 4/7/15 with Ak v274 and with the MixMatch V11 profile. Any help is much appreciated. Thank you very much!
These are the screenshots for GSam battery, amplify and Wakelock detector. Also, within settings, Screen is 7%, Android System is 4% and Android OS is 1%.
http://imgur.com/a/Ck64O
Click to expand...
Click to collapse
Please upload screenshots from discharge cycle from 100% to 5%
You can use disable service app to disable Google Play Services like Analytics, SystemUpdateService etc
You privacy manager if it's present in this ROM to disable Wake Up and Keep Awake permissions of most of the apps
Use Greenify/Servicely to disable all background unwanted processes and apps
5-6hr SOT is good enough on Lollipop if you keep all services and data 24hrs ON
Also to get more juice from your device, you can underclock it as AK kernel supports that feature.
I'm in HAVOC 2.0 OFFICIAL (Pie), but it will work with ANY custom rom. If you don't have the 1st option Smart Pixels in "Havoc Settings" ('cause you're using another Custom Rom) you can use the app: "Pixoff: Battery Saver" or similar...
Tutorial>>>>>
1 - Havoc Settings > Screen > Turn on Smart Pixels (62% of pixels disabled), and increase the brightness just a little to compensate.
2 - Use Greenify along with Greenify4Magisk module to freeze all GCM apps.. But you can just disable GCM and other stuff in "MyAndroidTools Pro" by yourself decreasing the need of freezing unnecessary apps... but you have to understand how android works or you will break your system (USE WITH CAUTION). (A 1 million dollar tip here: Disable things like "analytics", "gms", "GCM" (if you're not finding those words tick this icon "<-->" to expand the service names..
P.S.: Only play with Third Party apps... Don't mess with system apps!
3 - Use Naptime to make Doze mode work properly...
4 - Use AfWall+ to block all apps that don't use internet to leak data and hog your battery unnecessarily.
Extra Magisk modules I'm using:
- AdGuardDNS Adblocker (unofficial)
- Sysconfig Patcher (sp) helps to doze Google Play Services and system apps that hogs battery...
- Swap Torpedo -> to SPEED memory.. my old devices 1gb ram runs blazing fast with this and it works so f**cking good in Note 5 aswell..
* You can turn all animations off systemwide and your experience will be better IMHO
You can tell me if it worked or not.. But I'm getting 14hours of SCREEN ON TIME. :victory::laugh:
In the screenshot below I was in 7h39mins of Screen On Time with 50%... I'm just sharing all these stuff 'cause I finally manage to have a GREAT battery life. I used to mess with Amplify app once and didn't have so good experiences (Phone app missing calls and whatsapp doesn't showing notifications), but maybe someone else manage to get a better SOT than mine, using it properly..
https://imgur.com/oT0FXAy
Nice share
But usually the SOT is not the similar that you would get from 100 to 50 % battery and from 50 to 0 % battery. So it's not fair to say the SOT would double by sharing a screenshot of 100 to 50 % of usage.
Kirankj1724 said:
Nice share
But usually the SOT is not the similar that you would get from 100 to 50 % battery and from 50 to 0 % battery. So it's not fair to say the SOT would double by sharing a screenshot of 100 to 50 % of usage.
Click to expand...
Click to collapse
If my usage will keep the same (4G always on: Whatsapp + Opera (facebook site mainly) + Instagram + editing photos on Snapseed + gallery), my estimated SOT is 12-14 hours.. I will post a new 100% test screenshot to prove you.
I mean, if the mAh consumption will keep the same over the same kind of usage, it's easy to trace a statistic number over it. Ok ok.. You want proof, just test it and tell me.. I had to plug the phone in PC to install some last apks.. But tonight was my final installs and tomorrow I will test it from 100% to almost 0%
Getting 11 hours of SOT on Revolution OS & Insigniux kernel and no tweaks at all. My usage consists of a lot of YouTube, reading books on the Kindle app, playing some games, and the usual social media (whatsapp, twitter, instagram). I also listen to a lot of music via bluetooth headset (about 5 hours per day). The phone lasts almost 2 days with such a usage. So yeah, I think this is more than enough for the average user such as myself, no need for all the hassle you posted above. It's really unnecessary.At this point, this is just turning to a "who has the best SOT" battle. Even 7/8 hours of SOT is something great for this device, while 800/1000$ flagships are struggling to push over 5 hours of SOT.
Thanks a lot for the time spent writing this. Would you have more information about the firmware and kernel you're using ?
First, to everyone that read OP, realize there are some inaccuracies. Sorry man.
Smart pixel settings and apps like PixOff only save battery for OLED displays. HAVOK OS is available for multiple devices and this feature is beneficial for devices with OLED displays, but does not make a difference to LCDs.
Our phone has an LCD display which cannot actually "turn off" a pixel . It consumes the same amount of battery no matter what color it displays. Display brightness makes the biggest difference in display battery consumption.
So by turning on "smart pixel" and increasing the brightness you are actually HURTING your battery life overall.
Secondly, you only tested from 100-50%. You will ALWAYS get vastly more battery life from the top 50% than the bottom, because batteries voltage does not drop linearly, it is chemical reaction that is actually quite hard to measure accurately.
There have been many times where I was "getting 14-15 hours SOT" in the top half, but then watch as your battery drops from 40-20 from only 1 hour of light use. I can almost promise you this guy won't actually get more than 11 hours by the time he hits 0.
Use it from 100-0 at least 10 times , showing 13-14 hours of SOT and I will actually believe you are on to something.
On MiUI 9.5.17.0 I already can achieve close to 14 hours SOT, but that is within 1 day 10 hours usage. Usually I get 11-13 hours only within 1+ day usage. On AOSP, specificly RR 6.2.0, I easily reach 4-5 hours SOT by 70% (which I usually charge it already), 15 hours if interpolated to 2 days usage. 10 hours SOT is almost guaranteed. Last test is 13 hours SOT within 2 days 2 hours. If you want to see what is the configuration and usage, just check the link. I prefer to state my configuration and usage during the test, to show any possible different variable.
1. SmartPixel AFAIK is useless in IPS LCD. I would prefer the full maximum resolution as not to downgrade my user experience
2. I don't use any greenify, simply use the battery optimization from android. I whitelist several apps : Automagic, GMD gesture, Whatsapp, MiXplorer. I never clean my recent/RAM. I remove the "nuke button" from the configuration.
4. I don't know starting from which version, but since Nougat 7.0+, we have the setting to restrict data usage for each app in the app info. I simply create a flow to automagically open the app info everytime I install new app and decide whether to restrict the internet usage or not.
For ads, I just use hosts based - adaway. I don't limit play services, just let it run normally. I don't tweak much on the RAM side, but I adjust the minfree on every reboot (using automagic) to the lower value than default by RR. This is to let more apps stay on RAM as long as possible.
I don't want to limit the phone's perfomance to ridiculous level. Smartphone are meant to be used. The battery used is the proof we enjoy technology. Of course if the drain is unusual and wasted, we have to troubleshoot and find the culprit, as I have done in the wifi deep sleep drain bug. But other than those exception, I want the full user experience I can get from my phone.
SOT Variation
SOT is kinda non standard way to measure the usage. It varies depends on the user habit and usage behaviour. I am using dual SIM with good signal in most of the time, no microsd. Common usage :
- idle with no internet : 0,3-0,4%/hour
- idle with wifi : 0,5%/hour
- idle with LTE : 0,6-0,7%/hour
- Screen on dim (brightness < 10%) : 5%/hour (outside of idle drain)
- screen on bright (brighntess > 80%) : 10%/hour (outside of idle drain)
- Play game : Depends on game, it can consume 8-20%/hour
Using basic math, If 25% are used for the idle with wifi, I can get 25% / 0,5%/hour = 50 hours usage. 75% for screen dimmed, I can get 75% / 5%/hour = 15 hours. So 15 hours SOT is possible within 2 days usage. This interpolate nicely with my 70% 4-5 hours SOT.
But If I use the phone outdoor and the brightness increase, I can only get half of that, 7,5 hours SOT only within the same 2 days. Or maybe 9 hours SOT within 20 hours usage. If I have bad signal, it will reduce even further, 5-6 hours SOT only. Playing heavy game (PUBG) usually reduce the SOT by half too. So playing PUBG in dimmed brightness will consume 10%/hour and in brighter, 20%/hour. Increasing/decreasing the graphic also modify the drain per hour. Usually playing heavy game result in max 5-7 hours SOT only. But sometimes I can still get projected SOT around 10 hours, depends on what game I play and how many hours I played it.
Taking it to the extreme, we can spare 10% for the wifi idle, giving 20 hours usage and 90% for screen, giving 18 hours SOT. Which mean we can achieve 18 hours SOT within 20 hours usage. I am quite addicted to the phone. I use it for browsing, learning language, reading ebook, watching video, designing flow in automagic, usually without any gaming. But even then, it is very difficult to use the phone straight for 18 hours within those 20 hours (without gaming).
It is very difficult for me in usual daily activity to test the battery life till 1%. I usually have to plugged the phone for screen mirroring or transfer data. It will skew the battery usage then. I also usually just charge the phone at around 60-70, sometimes higher, sometimes lower.
At this kind of battery life and perfomance (SD636), I am very happy with current usage without the need to tweak so much again. Just use your phone as usual and only troubleshoot the battery life if something drain too much without doing anything useful. Enjoy your smartphone.
This shooting up of android os process battery usage is only after the root.
Google play services and other GAPPS have already been removed from the whitelist of power saving. I have been using my mobile hostpot for about 6 hours and 6 hours standby after it and this is the usage through Better Battery Stats app, from full charge to 39%.
Samsung smart manager shows android OS as the major culprit.
Also total computed power usage doesn't amount to the decrease in battery power. Total power usage is amounting ~ 1000 mAh but battery is of 2600 mAh, this is happening after root and I have fully drained and charged while switched off to full to calibrate the battery, but same.
Earlier real usage time was equal to what is now but estimated usage time was just double when all GAPPS and gms were running in background.
I am posting the screenshots. Can somebody let me know the reason for this and how can I disable the wakelock visible in the Better Battery Stats screenshot?
Does anybody have an idea of reducing Mobile Radio power reported by android OS process?