RILJ wakelock (among others) killing my battery. - Nexus 5 Q&A, Help & Troubleshooting

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

Related

Battery problem fixed in one click!

Just for anyone else suffering a horrific battery issue....
I would take a few photos a day. My battery would die in a few hours, with the culprit being "Google Play Services", which when drilled down showed the camera as the high battery user.
Furthermore, I was getting poor GSM data rates, with the phone seemingly unable to find the nearest transmitter (it would jump to full bars for a few seconds, then lock on to a 1 bar cell and constantly change between H and 3G). While all this was happening, the Nexus 5 got hot.
Now do this:
Settings>Location>Mode>Device Only
Make sure it's in "Device Only" mode. Logic says that this is the wrong setting, but now I can go a couple of days no problem, I lose 3% overnight, the camera uses next to no juice and "Google Play Services" doesn't even make it onto the list. :laugh:
If you're in an area with good signal I would say you have an issue with the data/gsm module and your solution is not proper. Try launching maps - it will suggest enabling mobile/wifi location for better location service.
Mine is set to high accuracy and my battery life is pretty good.
Verify if you're having this issue on multiple locations or only on certain places?
Sent from my Nexus 5 using Tapatalk
Pottsy said:
Just for anyone else suffering a horrific battery issue....
I would take a few photos a day. My battery would die in a few hours, with the culprit being "Google Play Services", which when drilled down showed the camera as the high battery user.
Furthermore, I was getting poor GSM data rates, with the phone seemingly unable to find the nearest transmitter (it would jump to full bars for a few seconds, then lock on to a 1 bar cell and constantly change between H and 3G). While all this was happening, the Nexus 5 got hot.
Now do this:
Settings>Location>Mode>Device Only
Make sure it's in "Device Only" mode. Logic says that this is the wrong setting, but now I can go a couple of days no problem, I lose 3% overnight, the camera uses next to no juice and "Google Play Services" doesn't even make it onto the list. :laugh:
Click to expand...
Click to collapse
Yes, logic says it is the wrong setting because it is. "Device Only" will only use GPS. "Low Accuracy" will only use googles location approximation via cell towers and wifi signals. "High Accuracy" will use both.
Once you set it to "Device Only" you robbed your phone from being able to track your location (for instance for google now). So naturally you don't have that much battery drain any more when taking pictures. I'm 100% sure that you are tagging your photos with your geo location, so every time you take a picture, the google play service determins your position.
To clarify: GPS isn't on all the time and is only activated when an app requests the phones position. The google location stuff is on all the time and will be active even when the phone is idling.
Dlog said:
Yes, logic says it is the wrong setting because it is.
Click to expand...
Click to collapse
I appreciate that.
I have tried with the correct settings, and it seems to leave "Google Play Services" using between 30% and 60% of my battery. Things get really bad when I am in a weak GSM signal location - with the phone getting really quite hot. Chrome triggers this, but then just having the phone awake seems to get it going.
Watching Google Maps in a position where I get no GPS signal (so monitoring the position calculated from the GSM network) I can see my location jumping from mast to mast every 10 seconds or so.
I realise that turning it off is "wrong", but it is not as wrong as my battery dying at 4pm, and until it is fixed it will have to remain off. Google Now is useless since I am not in the US, and Geo Location on the camera is switched off.
I 2nd that pottsy i disabled my yesterday and got my 1st good day with battery
Sent from my Nexus 5 using Tapatalk
Pottsy said:
I appreciate that.
I have tried with the correct settings, and it seems to leave "Google Play Services" using between 30% and 60% of my battery. Things get really bad when I am in a weak GSM signal location - with the phone getting really quite hot. Chrome triggers this, but then just having the phone awake seems to get it going.
Watching Google Maps in a position where I get no GPS signal (so monitoring the position calculated from the GSM network) I can see my location jumping from mast to mast every 10 seconds or so.
I realise that turning it off is "wrong", but it is not as wrong as my battery dying at 4pm, and until it is fixed it will have to remain off. Google Now is useless since I am not in the US, and Geo Location on the camera is switched off.
Click to expand...
Click to collapse
Not saying that you're giving a bad tip. It's just not the fix for all battery problems with the n5, but only for the specific case that an app is "location hungry".
Now I did this yesterday and it has worked for Google Services but now I am checking my battery stats and "Google Search" is next most draining app behind the Screen... Why would google search be using that kind of battery?? I am not searching anything lol
Dlog said:
Not saying that you're giving a bad tip. It's just not the fix for all battery problems with the n5, but only for the specific case that an app is "location hungry".
Click to expand...
Click to collapse
He says it fixes the problem everyone is having with Google Play Services draining ~50% of their battery. It's a documented problem that isn't just all over the forums and G+, but Android Police even put out a story about it. Maybe the title to the thread is misleading, but the OP's initial post clearly states his problem and the solution he found for his problem.
jm6001 said:
Now I did this yesterday and it has worked for Google Services but now I am checking my battery stats and "Google Search" is next most draining app behind the Screen... Why would google search be using that kind of battery?? I am not searching anything lol
Click to expand...
Click to collapse
Google search is the launcher app used for the stock rom on the nexus 5. Maybe you are using your home button a bit too often?
Paddington said:
He says it fixes the problem everyone is having with Google Play Services draining ~50% of their battery. It's a documented problem that isn't just all over the forums and G+, but Android Police even put out a story about it. Maybe the title to the thread is misleading, but the OP's initial post clearly states his problem and the solution he found for his problem.
Click to expand...
Click to collapse
What others are saying, though, is that this fix only fixes the symptom...not the actual issue. If you get battery drain because of location services, turn off location services in the apps that are draining it heavily.
Example: He takes pictures during the day and notices battery drain. Disable Geo-Tagging on pictures, and see what effect it has. If you turn the location services to "Device Only" you're going to have issues actually making use of location services (think Maps, Navigation, Google Now, Facebook, etc...that use location). Anytime you use these services it'll have to activate the GPS module to get a location...which can take 10-20 seconds, if you have clear access to the sky. For reference: the GPS module uses a lot more battery than the triangulation done by the cell towers...so actively using any app that uses location services will actually use more battery.
The other thing to try and disabling background processes. Close applications you're not using, and in the developer menu limit how many applications can be running in the background at a time. It could be that your sync services or other applications are constantly checking for location. Many of those applications will refuse to use the hardware GPS and instead rely on the triangulation services, which is why you might be seeing this battery longevity increase.
Synopsis: Setting it to Device-Only is a bad idea; instead, try to find the root of the problem.
I have found the problem.
It's not the apps making the calls, it's the location service itself. And I will specifically disagree on one point: using GPS only uses a lot less battery than cell location via a broken OS.
Sent from my Nexus 5 using Tapatalk
Another solution ...
Pottsy said:
I appreciate that.
I have tried with the correct settings, and it seems to leave "Google Play Services" using between 30% and 60% of my battery. Things get really bad when I am in a weak GSM signal location - with the phone getting really quite hot. Chrome triggers this, but then just having the phone awake seems to get it going.
Watching Google Maps in a position where I get no GPS signal (so monitoring the position calculated from the GSM network) I can see my location jumping from mast to mast every 10 seconds or so.
I realise that turning it off is "wrong", but it is not as wrong as my battery dying at 4pm, and until it is fixed it will have to remain off. Google Now is useless since I am not in the US, and Geo Location on the camera is switched off.
Click to expand...
Click to collapse
I think there's a better solution ... Go to settings>apps, and for every app that uses Google Play Services (google search, google now, maps, etc), clear the their data. Google Play Services went from 2nd biggest hog (after the display) to way down on the list. Maybe there's only one app that needs to have its data cleared to fix it, dunno I just cleared them all.

[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.

BAM_DMUX_Wakelock Issues after 5.1 OTA

I know that the battery life issue after 5.1 has been addressed in these forums, but I want to make a specific thread about this problem in particular that many other are experiencing too and it doesn't seem to be addressed in here, at least not recently (There's a thread from 2012 that doesn't give much info).
So the thing is that ever since updating to 5.1, my battery doesn't last nearly as long as it used to. I'm using a couple of apps to try to diagnose the problem and I've found a this particular wakelock: bam_dmux_wakelock is what's keeping my phone awake. I also noticed that Google Play Services is what's using more energy than it used to. This wakelock is only present when using mobile data, although when using wifi the wlan wakelock family is also present, but those wakelock are not as long as the bam_dmux_wakelock, but they do keep the phone awake for a considerable amount of time.
Booting in safe mode does not help. Restricting mobile data access to Google Play Store and Google Play Services makes no difference either. I did some Googling and learned that I can disable some Google Services that were always running: BackupTransportService (I have backup disabled), WearableService (No idea why this was running since I've never even turned on bluetooth since I updated to 5.1, let alone pair my device with any wearable device), AnalyticsService and DeviceConnectionServiceBroker.
No dice. Wakelock is still keeping the phone awake.
There' still 5 other services that I'm not sure I should disable: GMSCoreStatsService (No idea what this does), GoogleLocationService and GoogleLocationManagerService (I don't why these are running since location has been disabled for weeks), PendingIntentCallbackService (No idea what this does), ConfigFetchService (No idea) an GCM Service (I think this is important, it has to do with push notification).
If you have more info on these services, please let me know. I don't want to mess with anything I don't know. I've stopped the location services but they come right back up. No idea why.
So, summing up, this is what I know:
- The bam_dmux_wakelock is responsabile for keeping my phone awake
- It only appears when in mobile data (not in WIFI)
- Google Play Services is what's using more energy than before
- Disabling sync does not help
- I've made two factory resets (from settings and from recovery), nothing.
- Restricting mobile data access to Google Play Store and GP Services makes no difference
- Disabling running services doesn't help either.
Is anybody else experiencing this and did you find a solution? I'm getting real sick of this, and I'm considering flashing a custom ROM for the first time in my life.

Embarassing battery drain after using GPS

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?

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