Embarassing battery drain after using GPS - Nexus 5 Q&A, Help & Troubleshooting

Hi,
I'm Fabio and I have an annoying problem.
I have:
- N5 fully stock (bootloader locked and not root) with M 6.0.1 updated to last patch (February 2016)
- few apps (for example, I used Facebook in browser)
With a normal use of Facebook, Instagram, Twitter, Whatsapp, mail, etc...I have a good battery response: over 2 hours of screen and during night, with only data disabled, batteria drops of 1/2%. In general, in standby, the consumption is near to zero...
...until I activate GPS: from this moment, even if disable it, there is an embarassing battery drain (1% in an hour). At the end of battery, before charge it, screen and apps are near to 4/5%.
The only temporary workaround is to reboot, because the problem reappears when I enable GPS.
I have tried all "solutions" proposed into forum:
- reinstallazione factory
- wipe
- GPS in device only
- disabled location history
- etc...
but the problem persists.
Any ideas?
Thanks.
Fabio

il_fabio said:
Hi,
I'm Fabio and I have an annoying problem.
I have:
- N5 fully stock (bootloader locked and not root) with M 6.0.1 updated to last patch (February 2016)
- few apps (for example, I used Facebook in browser)
With a normal use of Facebook, Instagram, Twitter, Whatsapp, mail, etc...I have a good battery response: over 2 hours of screen and during night, with only data disabled, batteria drops of 1/2%. In general, in standby, the consumption is near to zero...
...until I activate GPS: from this moment, even if disable it, there is an embarassing battery drain (1% in an hour). At the end of battery, before charge it, screen and apps are near to 4/5%.
The only temporary workaround is to reboot, because the problem reappears when I enable GPS.
I have tried all "solutions" proposed into forum:
- reinstallazione factory
- wipe
- GPS in device only
- disabled location history
- etc...
but the problem persists.
Any ideas?
Thanks.
Fabio
Click to expand...
Click to collapse
see workaround from here http://forum.xda-developers.com/google-nexus-5/general/guys-call-wifi-battery-drain-6-0-t3219870
and use it evey time after you turn off GPS or don't give permission to scan in background when you open Map after tuning off scan.

jineshpatel30 said:
see workaround from here http://forum.xda-developers.com/google-nexus-5/general/guys-call-wifi-battery-drain-6-0-t3219870
and use it evey time after you turn off GPS or don't give permission to scan in background when you open Map after tuning off scan.
Click to expand...
Click to collapse
Hi jineshpatel30,
I have already follow the workarounds listed in that thread, but they are related only for WiFi bug...is it correct? If not, is there a specific change?
For the second point, can you explain me better?
Thanks.

il_fabio said:
Hi jineshpatel30,
I have already follow the workarounds listed in that thread, but they are related only for WiFi bug...is it correct? If not, is there a specific change?
For the second point, can you explain me better?
Thanks.
Click to expand...
Click to collapse
Apparently, wifi scan starts in background when we use Map/gps (i think Google asks permission for the same while 1st time setting up device)
and though it's related to wifi, it doesn't really require wifi to be ON for this drain ! It's little bit difficult for me to explain in words but if you see "wifi scan" ON in network tab in setting after using GPS (even through mobile data) turn it off and your battery will not drain away.
It happens to me many times after using navigation and above workaround always helps.

il_fabio said:
Hi,
I'm Fabio and I have an annoying problem.
I have:
- N5 fully stock (bootloader locked and not root) with M 6.0.1 updated to last patch (February 2016)
- few apps (for example, I used Facebook in browser)
With a normal use of Facebook, Instagram, Twitter, Whatsapp, mail, etc...I have a good battery response: over 2 hours of screen and during night, with only data disabled, batteria drops of 1/2%. In general, in standby, the consumption is near to zero...
...until I activate GPS: from this moment, even if disable it, there is an embarassing battery drain (1% in an hour). At the end of battery, before charge it, screen and apps are near to 4/5%.
The only temporary workaround is to reboot, because the problem reappears when I enable GPS.
I have tried all "solutions" proposed into forum:
- reinstallazione factory
- wipe
- GPS in device only
- disabled location history
- etc...
but the problem persists.
Any ideas?
Thanks.
Fabio
Click to expand...
Click to collapse
Hi Fabio.
My name is Dainis. I have the same problem. N5 I bought a year ago and immediately noticed that sometimes the battery discharges much faster. It took me a month to understand that that the cause in GPS. Without GPS, the phone in standby mode, can run for more than 2 weeks, but if previously used the navigation, then from the fully charged discharged in 3 days. The LG support center advised not to use GPS )). At the moment, my phone is in the warranty service for the sixth time (I'm very patient), but I doubt that they will be able to solve something. Maybe you have got to solve the problem?

Related

[Q] Keep WiFi on for VoIP app on LGP500?

Hi, all.
This is my first time posting. I have searched the web and through this forum for an answer to my question but no dice. I hope someone here can help.
(By the way, I'm currently using the Oxygen ICS rom. I used to be on Oxygen Gingerbread, and I briefly tried the latest Kitkat build, but couldn't use as a daily driver).
Over the past months, I've transitioned off of my monthly cell plan in favour of a prepaid data add on + VoIP app (Fongo) for calls/texts. I WFH so my cell is on WiFi 90% of the day.
The issue I'm facing is that when I use the WiFi lock option in the app itself, my battery life dips down considerably. But when I don't use this option, I often miss incoming calls (the WiFi appears to go to sleep after awhile, even though I have WiFi set to be always on even when the device is sleeping).
As an alternative, I've tried many apps in the Play Store, such as Wifi Keep alive (Roys and Shantz), and Wifi Fixer.
I've tried them all individually and in combination with each other. They do make the device more efficient at receiving incoming calls while preserving more battery life than the above WiFi lock, but it's still not 100% perfect.
I'm wondering if anyone has any suggestions to improve WiFi connectivity when my phone is in sleep mode without sacrificing a lot of battery? (In the form of either an app, system setting, or alternative ROM to what I'm using.) I realize there has to be some impact on battery if WiFi is on, but given that Fongo drains the battery whereas third party apps are more forgiving on it, I'm wondering if there's a better solution/configuration out there.
I experience this issue in Gingerbread and ICS. I don't experience it in Kitkat, but the battery barely lasts for 6-8 hours.
I hope I'm explaining this clearly. Any help would be greatly appreciated!! TIA.
An update:
I found the Wake Lock app (developer "darken") in the app store, and that seems to have solved my issue. I set it to the "Partial Wakelock" setting and now all incoming calls come in correctly on WiFi and my battery doesn't drain as quickly as it did with other apps or the Fongo setting.
Posting this in case it helps someone else in this situation.

RILJ wakelock (among others) killing my battery.

Ever since the 5.1 OTA (Or Google Services 7.0.99, I'm not sure), I've been experiencing bad battery life.
I downloaded Better Battery Stats and Wakelock Detector to try to find the culprit and this is what I've found.
- Connected to my wifi at home my Nexus 5 sleeps just fine.
- At work (wifi) I'm having a lot of wlan_rx and wlan_wd wakelocks and high awaken times due to this.
- When on mobile data it all gets worse: I'm getting hundreds of instances of RILJ wakelock in a matter of minutes, and sometimes Gmail often appears first on the list with high wakelock counts and times. Google+ and Keep also make frequent appearances I'm Wakelock Detector
- BBS ALWAYS shows bam_dmux_wakelock as the main culprit and sometimes sensor_ind (on mobile data), but I don't know what to make of that, since WD shows other things (RILJ etc).
Regarding RILJ: almost everything I've found online says that it has something to do with network location and that turning off location history removes it, but I rarely have location services on (GPS or network location) and location history is off anyway. I've tried disabled NetworkLocationService and every other service regarding location using disable service to no avail. It doesn't seem to happen when the phone is in 2G only.
Gmail frequently shows up in WD with high counts and times, I've seen Keep and Google+ in there too, first on lists. I've disabled them both for now.
In the battery stats the activity bars doesn't seem to be all that different from the screen on bars, but both WD and BBS show high awake times (sometimes as high as +20%). This is when on mobile data or connected to the wifi at work (wifi at home is just fine).
I tried downgrading to 5.0.1 (there now), installing Google Services 7.3.29, disabling a bunch of services, but nothing helps.
Google Services shows up as using more energy than anything else, sometimes even more than the screen, but only when mobile data is enable, it doesn't use energy when on wifi. There's no high data traffic as some people is experiencing with 7.X versions. The wlan wakelocks are awful at work though. So there are like several, independent problems.
I'd appreciate any insight on this matter. I don't seem to be the only one experiencing this.
I'm leaving a few screen shots. I'll post BBS screenshot by the end of the day.
Did you solve this? Nobody seems to know what really is RILJ.. If I restrict it to "7200" (2 hours) at Amplify it's safe to receive calls/sms ???
Luckzzz said:
Did you solve this? Nobody seems to know what really is RILJ.. If I restrict it to "7200" (2 hours) at Amplify it's safe to receive calls/sms ???
Click to expand...
Click to collapse
Easy way to find out is to test it. Restrict and then phone/text yourself from another phone. Test periodically until you're comfortable with the results.
I've having troubles with this from some months ago now. It dissapeared at some time, but it's back again.
Anyway, in my case, the problem happen when i'm connected to a WIFI network, with mobile data activated. If I deactivate it, everything is just fine. Don't really know what is causing this, but at least I discovered my problem.
Hope this help someone else.
Cheers

Very Slow/Inconsistent Notifications

Hi, so the simplest way of stating my problem is when my device is either unlocked (AKA browsing apps and whatnot with the screen on), or locked (sleeping), notifications are slow to arrive. Right now I've been testing with Skype, and Gmail, both of which are inconsistent. My OPO does not currently have a SIM card (haven't setup the plan yet), and I've tried with both LTE and Radio off (using *#*#4636#*#* on the phone info page)
Info about my OPO/Setup:
Flashed CyanogenMod 12.1 as stated in the Sultan thread before flashing Sultanxda Rom
Using Sultanxda Unofficial CyanogenMod 12.1 Sep 14, 2015 (http://forum.xda-developers.com/one...m-kernel-unofficial-cyanogenmod-12-1-t3120259)
Using AK v.020 CAF Kernel (http://forum.xda-developers.com/oneplus-one/orig-development/kernel-ak-t3189886)
Using StyloKing v1 Synapse profile for CAF (http://forum.xda-developers.com/one...ad-oneplus-t3163211/post62600798#post62600798)
Using build.prop mods (http://forum.xda-developers.com/oneplus-one/general/build-prop-tweaks-device-t3168207)
Using TK Gapps Pico (http://forum.xda-developers.com/android/software/tk-gapps-t3116347)
Using Oxygen OS Modem ONLY (http://forum.xda-developers.com/one...dio-updated-modem-radio-files-oxygen-t3072516)
Using Xposed for Lolipop (http://forum.xda-developers.com/showthread.php?t=3034811)
Using Greenify and Amplify with settings from both of these threads (http://forum.xda-developers.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588 & http://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884)
My OPO does not currently have a SIM card (haven't setup the plan yet)
Things I've tried:
With both LTE and Radio off (using *#*#4636#*#* on the phone info page)
Older Skype versions
Push Notification Fixer (https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer&hl=en)
Disabling Amplify by disabling the module in Xposed, and rebooting
Double checked that Greenify isn't touching Skype or anything related
I also have a Samsung Galaxy S3 that is using the stock ROM (Android 4.1.2) with root permission and a custom recovery. That is the device I've been using to test with. If I send a Skype or Gmail message from my OPO to the Galaxy, it takes 2-3 seconds EVERY TIME consistently.
If I send a Skype or Gmail message from the Galaxy to the OPO, sometimes I'll get the message within 3-5 seconds, other times it takes 1 minute+ and even a few messages don't arrive until I unlock the device and open Skype or Gmail.
When I leave Skype open, and lock my OPO, it seems to get the messages very quickly almost every time.
Also, it appears that when my phone sleeps for a certain period of time, seems inconsistent, the WiFi will disconnect - and I DO have keep WiFi on while phone is sleeping.
I've run out of ideas short of trying a full wipe and different rom/kernel/who knows what at this point...=\
Any/all help is greatly appreciated. Thanks.
Edit/Update: Found this post (http://forum.cyanogenmod.org/topic/107023-cm12121-wifi-connectivity-issuesdrops-workaround-included/) on another forum, and that seems to have fixed it for me. Doing further testing, but so far positive results.
The delayed response is most probablye due to the Greenify/Amplify tweaks that you've made. Remove everything related to Gmail, Skype, Google Play Services from Greenify & Amplify and then test. Add back the tweaks one by one and find the culprit.
I've already tried that. Fully disabling Amplify, and double checking that I've touched nothing close to Skype or Gmail or Google Services in Greenify's settings.
As I put in the edit in my first post, I found out going to /system/etc/wifi/WCNSS_qcom_cfg.ini and changing the line
Code:
McastBcastFilter=3
to
Code:
McastBcastFilter=0
appears to have solved the issue for me.
But when I did that, I also noticed something else, and I wish I hadn't unplugged my device (AKA wiping battery data so I could show a clear screenshot of what I mean), because I saw when I was looking at the battery usage chart, all day long while I had McastBcastFilter=3, my WiFi signal was turning on and off CONSTANTLY throughout the day, and sometimes for decently long periods. Now that I've changed McastBcastFilter=0, my WiFi signal shows that it's on 24/7 in my battery screen.
I'm worried that this is going to cost me a fair bit more battery, but at the same time I need my notifications.
I found another setting in that file with this comment:
Code:
# Enable suspend or not
# 1: Enable standby, 2: Enable Deep sleep, 3: Enable Mcast/Bcast Filter
gEnableSuspend=3
Before I made any changes to this file, it was set to 3, which makes sense with the McastBcastFilter changes I made. But attempting to get some more battery life so my WiFi goes into some sort of partial power save mode for battery longevity, I'm going to try my OPO with Enable Deep Sleep on all day. We'll see how the battery fairs and if notifications are still delayed or not.
Edit: I was able to get the data from my secondary battery app so screenshots for all!
This is what my Wifi/Battery was like before I changed McastBcastFilter at all:
Code:
imgur.com/ZXmFYhI
This is after I changed it from 3 to 0:
Code:
imgur.com/H5ZlXc2
And this is what it's been like since I rebooted last night with gEnableSuspend=2 (AKA Deep Sleep):
Code:
imgur.com/2O6GuVE
Obviously when the WiFi is off, I'm not getting my notifications. >=\
(Gave the URLs CODE tags so I could link the images...)
Well so far I haven't seem to have come across any issues with leaving BcastMcast at 0 and using Deep Sleep for WiFi. I'm still getting all my notifications, and as far as I can tell the battery life is give or take about the same. Possibly a little more battery drain than with BcastMcast on, but I haven't done any sleep tests yet, just initial observations with using OPO in a daily setting.

Faulty Battery or Software Issue?

Hi folks,
I scoured through all the battery related discussions and wasn't able to find an issue similar to mine, so I hope it's okay to post a new thread on this topic. I have an AT&T (Snapdragon) Galaxy S7 with stock software and about a month and a half ago I started experiencing horrible battery life. I have been desperately trying to figure out what the issue is. At first I thought it was AT&T WiFi calling because it was forcing my WiFi and data connections to toggle back and forth and disabling that did help. However my battery life was still poor and I could never get more than about 10.5 hours of moderate use (see pictures below). Also the phone gets hot randomly (Above 95 Fahrenheit) even when doing minor tasks like browsing through Chrome. Since then I have made the following changes with no noticeable improvement:
Disabled advanced LTE services
Disabled Always on Display
Disabled WiFi and Bluetooth location scanning
Disabled nearby device scanning
Wiped cache multiple times
Temporarily disabled Bluetooth and WiFi to monitor the difference
Used Greenify Aggressive Dose
Disabled all diagnostic reporting
Uninstalled Oculus when that battery issue came up
Side note: I disabled a bunch of bloatware right when I got the phone, not through Package Disabler but through the standard Android disable method
I kept digging and found that my phone doesn't enter dose unless I use Greenify, and even then I don't notice a difference. I then decided to do a hard reset but no luck. Afterwards I used Safe Mode to see if any 3rd party apps were misbehaving, but again the drain was consistent both while idle and while using the phone. Today I installed Wakelock Detector Lite and found that PowerManagerService is keeping my phone from dosing, but from what I've read online it seems that info doesn't really point to a specific app, and it's hard to identify unless I root the phone which I don't want to do.
I am going crazy trying to figure out if this is a software/settings issue or if I should just replace the phone through AT&T and risk getting a defective refurb. Any help would be much appreciated.
Battery stats:
View attachment 3901345
View attachment 3901344
Wakelock Stats (taken on a different day):
View attachment 3901349
Many people have similar problems. One reason was the buggy oculus app (you might wanna disable that when it came pre installed, depending on your CSC).
However the main reason behind the high "android-system" usage is still unclear. Some people experience it, some dont. Some people have better battery results with the firmware from March.
Personally, I believe that it is firmware related. I tried the N7 rom port and did not have a problem at all.
You might wanna wait for the October update that will hit soon and see if this fixes anything.
I notice you have 'media server' showing in your battery stats. My wife had that showing too and also had terrible battery life. Her fix was disabling the auto streaming in her Facebook app which plays videos while you scroll through posts. Now she has great battery life!
I have the Facebook app disabled on my phone altogether. I've also used safe mode where 3rd party apps are disabled but the battery still drains at around 5% an hour while idle.
WiFi calling was draining one members battery, disabled that and everything returned to normal
*Detection* said:
WiFi calling was draining one members battery, disabled that and everything returned to normal
Click to expand...
Click to collapse
How?
iamnotkurtcobain said:
How?
Click to expand...
Click to collapse
https://www.verizonwireless.com/support/knowledge-base-203686/
I had that issue too but have since disabled WiFi calling
most likely a software issue. my version is G930FXXU1APEQ and i'm been getting 11 hour on batty with around 6- 7 hour of screen on.
Try disabling Google backup. It's a huge battery drainer
Sent from my SM-G930FD using Taptalk
Try manually updating Google play services for the lastest ver sion.
Hi,
Have the same Problem with my Galaxy S7.....Last Week, become an Little Update */- 20,8 MB
Now I have strong Accu consumption. ( Sorry Speake German
Test with Galaxy Note Edge, and Galaxy S7 .....both Smartphones have an 3000 m/Ah Accu. On Galaxy Edge have 178 own apps installed,
The Galaxy S7 - 3 Times Reset with Wipe Factory Reset and Wipe Cache, and from the Phone Settings.
https://www.dropbox.com/s/d7pvlnccr6y5dgc/Screenshot_2016-10-06-10-48-32%20NOTE%20EDGE.png?dl=0
https://www.dropbox.com/s/lile2f0uuitr3ol/Screenshot_2016-10-06-11-16-44%20NOTE%20EDGE.png?dl=0
https://www.dropbox.com/s/175imcgv3n9bugi/Screenshot_20161006-094012%20GALAXY%20S7.png?dl=0
https://www.dropbox.com/s/5rvkgubj95orhrn/Screenshot_20161006-094037%20GALAXY%20S7.png?dl=0
Nothing has helped so far so I decided to uninstall my apps in batches until battery life improves. I'll then slowly reinstall them one by one until I find the culprit. I'll report back with my findings. Thanks for all the suggestions.

Google Play Services draining my battery

I have a Pixel 2 64 GB, and I've been seeing astounding battery drain by Google Play Services lately (I believe it started with the November OTA update, but I can't be 100% sure). Some days are worse than others, and on those days Play Services will be responsible for 30% or more of the battery usage. I haven't been able to pin down when it happens, other than that disabling location services doesn't seem to affect it. Deleting data for Google Play Services as well as the Google app, and rebooting the phone, seems to fix the issue for a day or two (during which I'll get fantastic battery life), but then it comes back.
Are there any other fixes I could try? Anyone experiencing similar issues?
Try turning off wifi and Bluetooth scanning.
gm007 said:
Try turning off wifi and Bluetooth scanning.
Click to expand...
Click to collapse
Thanks! Bluetooth is off, but wifi scanning was turned on. I'll report back here if I see any effect at all.
I'm having the same issue. Factory reset didn't resolve the issue. Giving the scanning off a try.
Same here... does not have a pixel phone but latest oneplus. google play service goes to nearly 30 % in GSAM monitor. I have searched in web and someone says that google updates play service in the background in the last days. and many, many users are talking about massive battery drain because of google play service.
What can we do?
PS: Wifi seraching is off, bluetooth, too... no difference!!
Same here - 50 % battery drain.
Same here, tried a factory reset twice and still got the same thing.
Hi, OP here again. So, yesterday, with Wi-Fi Scanning turned off, Play Services seemed to behave well on my phone—ended up with about 3% of total battery usage at the end of the day (~ 15 hours). Hopefully it goes just as well today.
Is turning off WiFi scanning the Settings > WiFi > WiFi Preferences and the three options..
-Turn on WiFi automatically
-Connect to Open Networks
-Open Network Notifications
Or is that something else?
Today my Google Play Services ballooned back up to > 20% usage
foghorn67 said:
Is turning off WiFi scanning the Settings > WiFi > WiFi Preferences and the three options..
-Turn on WiFi automatically
-Connect to Open Networks
-Open Network Notifications
Or is that something else?
Click to expand...
Click to collapse
It's in location settings.
Dropping by to say that I am experiencing the same thing, only when I have wifi turned on. I'm fairly confident that it's caused by wifi.
junkimchi said:
Dropping by to say that I am experiencing the same thing, only when I have wifi turned on. I'm fairly confident that it's caused by wifi.
Click to expand...
Click to collapse
It's not wifi, it's all sync activity that happen when connected to wifi,like Google backup and photo backup...
Whats funny is that while having problems with Play Services on my Pixel 2, my Pixel XL 2016 has been a champ. Until I re-activated it as a phone on Project Fi, now Play Services is starting to go beserk. Not sure if it just needed a few moments, or if this is an all day thing that will just follow me around no matter what phone I use.
...
Dropping by AGAIN to confirm that its happening with these conditions:
- The drain never happens when I'm off wifi
- Drain stops when I reboot the phone
- After I reboot the phone I can get on wifi without drain
- When I connect the charger to the phone while on wifi it starts the Google Play Services drain again
I've tested this sequence for almost a whole week now and I'm fairly confident in my findings, I do this type of **** for a living. Try it yourselves.
junkimchi said:
Dropping by AGAIN to confirm that its happening with these conditions:
- The drain never happens when I'm off wifi
- Drain stops when I reboot the phone
- After I reboot the phone I can get on wifi without drain
- When I connect the charger to the phone while on wifi it starts the Google Play Services drain again
I've tested this sequence for almost a whole week now and I'm fairly confident in my findings, I do this type of **** for a living. Try it yourselves.
Click to expand...
Click to collapse
Are you on Project Fi?
I am, so I called them and asked for escalation and told them it follows me on my 2016 Pixel XL and factory resets don't do anything. They asked for a bug report so they could send it to the engineers. Hopefully they will get back to me.
Google Play Services is still API 23 here.
It should be updated to API 26 for Oreo users and API 27 for Oreo 8.1 DP users.......
Sent from my Pixel 2
thesebastian said:
Google Play Services is still API 23 here.
It should be updated to API 26 for Oreo users and API 27 for Oreo 8.1 DP users.......
Sent from my Pixel 2
Click to expand...
Click to collapse
I don't know what this means.....
Anyway, my issues seemed to have vanished. I'm finally experiencing all that excellent battery life people have been talking about.
I don't know if it's something Google did on their end that is now changed, or if it's the following:
-On my Google Now feed, there was a ton of stuff checked in the "you showed interest" section. Every NFL team, several political figures, a few movie franchises, and it kept going. It was like 5 minutes of unchecking stuff.
-I uninstalled Pandora. Even without firing up the app after a boot, it was causing issues.
I've had play services randomly draining battery with no real understanding why. I did toggle off its background activity and haven't had it since

Categories

Resources