Wakelocks - Sony Xperia XZ1 Compact Questions & Answers

Anyone using battery monitoring apps like BBS or GSam, can you share some of your stats here? I'm trying to figure out whether the seemingly massive amount of wakelocks I'm having is normal or not. The biggest problems seem to be coming from the kernel itself. BBS shows a lot of kernel wakelock time, and GSam consistently lists the kernel as the highest drain in its app sucker screen. Also, the Phone app seems to be waking the device a lot since upgrading to .5.51, which wasn't a problem on .3.374.
I've attached some screenshots that illustrate the problem. I'm already using ForceDoze and Greenify, which have been enabled via ADB, and I've restricted background activity and data for the vast majority of my apps. I'm really hoping there's something I can do about this given that it's impossible to use another kernel (LB and none available for this phone anyway). I've software repaired/clean flashed 3 times.
My battery drain is actually not bad at under 4%/hr (combined screen on/off) and about 1%/hour with the screen off overnight. Today I've logged over 4.5 hours SOT in a period of 17 hours and am sitting pretty at 36%. That's better than any phone I've ever used. But I worry that all the wakelocks are using my phone's CPU, raising its temperature, and might contribute to faster battery degradation.
Also, this is with bluetooth off and my Pebble not paired, but battery drain becomes substantially worse with that setup. My idle drain triples with my Pebble connected. I'm trying to troubleshoot one issue at a time and want to nail these wakelocks before moving onto the bluetooth issues.
If your battery stats looked like mine and especially if you figured out how to fix it, please share!

Given that Sony ended .5.51 deployment prematurely and is currently rolling out .8.49, I think you should update to .8.49 (or wait until your region gets the update if you don't have it yet) then recheck if your problem still persists.
Pouring time and resources into a version that Sony is no longer pushing isn't that great of an investment, especially since it's possible that it was fixed in .8.49.

mhaha said:
Given that Sony ended .5.51 deployment prematurely and is currently rolling out .8.49, I think you should update to .8.49 (or wait until your region gets the update if you don't have it yet) then recheck if your problem still persists.
Pouring time and resources into a version that Sony is no longer pushing isn't that great of an investment, especially since it's possible that it was fixed in .8.49.
Click to expand...
Click to collapse
Everything except the phone app using more battery was the same on .374. And I fixed that after force stopping the phone app and rebooting. I've been trying to troubleshoot this for weeks but just upgraded to .5.51 a couple of days ago. I will flash it when it comes out for Customized UK, but I don't think .5.51 is the root of the problem.
(Oh cool, Xperifirm actually shows .8.49 available for Customized UK now. Time for some flashing!)
Edit: I'm seeing the same degree of wakelocks so far on .8.49.

Update: The battery drain from "phone" is actually Android System. There's a bug in Oreo where sometimes Android System is showing as Phone/RCS in the battery stats. Doesn't explain why Android System is using so much battery though.
https://www.reddit.com/r/GooglePixel/comments/7f7jk2/pixel_2_rcs_battery_drain_is_there_any_way_to/
https://www.reddit.com/r/GooglePixel/comments/7edcav/rcsservice_draining_battery/
https://forums.oneplus.net/threads/rcs-draining-battery.657535/
https://forums.oneplus.net/threads/rcs-service.666045/
https://forums.oneplus.net/threads/found-way-to-end-rcs-sucking-battery-after-oreo.659711/

So I managed to get a lot of my battery drain figured out, but a few things are still bothering me.
1) Google Play Services and Android System and/or Phone (see my last post) are using the Significant Motion Sensor to wake my device constantly.
2) Sony's smart charger (com.sonymobile.smartcharger) is waking my device. I'm assuming this has something to do with Battery Care, which I find to be a useful feature. But why does it need to continue sending alarms to wake up our phones when not plugged in?
I've attached 2 screenshots from Better Battery Stats showing the first issue (Sensors/Play Services and Phone) and 1 showing the second (Alarms/Smart Charger). Note the "wakeup=true" and long times recorded for Significant Motion. This held true when I had my phone sitting face-down on a table for 6+ hours to do battery testing earlier.
Anyone else who uses battery monitoring apps: have you noticed any similar issues?

jrbmed08 said:
So I managed to get a lot of my battery drain figured out, but a few things are still bothering me.
1) Google Play Services and Android System and/or Phone (see my last post) are using the Significant Motion Sensor to wake my device constantly.
2) Sony's smart charger (com.sonymobile.smartcharger) is waking my device. I'm assuming this has something to do with Battery Care, which I find to be a useful feature. But why does it need to continue sending alarms to wake up our phones when not plugged in?
I've attached 2 screenshots from Better Battery Stats showing the first issue (Sensors/Play Services and Phone) and 1 showing the second (Alarms/Smart Charger). Note the "wakeup=true" and long times recorded for Significant Motion. This held true when I had my phone sitting face-down on a table for 6+ hours to do battery testing earlier.
Anyone else who uses battery monitoring apps: have you noticed any similar issues?
Click to expand...
Click to collapse
I'm with you on RCSService being main culpirt for me. No I don't think it's a bug, it actually does use lots of battery. I listen to 3+ hours of bluetooth music a day and when I saw that RCSService was using more power than my bluetooth, then I thought it was time to experiment. So I uninstalled Carrier Service and RCSService and suddenly my battery life jumped by 20%. There was something in the November update to these services that made them go nuts. Several people have noticed a jump in battery usage, but most people, myself included, thought it was down to the new firmware. Uninstalling these 'features' has made no difference to SMS for me, other than I don't get a read confirmation.
I don't know about smart charger, sorry.
Pretty sure the proximity sensor is always on and that must use some power, but I don't know what that would be called in BBS.

Didgesteve said:
I'm with you on RCSService being main culpirt for me. No I don't think it's a bug, it actually does use lots of battery. I listen to 3+ hours of bluetooth music a day and when I saw that RCSService was using more power than my bluetooth, then I thought it was time to experiment. So I uninstalled Carrier Service and RCSService and suddenly my battery life jumped by 20%. There was something in the November update to these services that made them go nuts. Several people have noticed a jump in battery usage, but most people, myself included, thought it was down to the new firmware. Uninstalling these 'features' has made no difference to SMS for me, other than I don't get a read confirmation.
I don't know about smart charger, sorry.
Pretty sure the proximity sensor is always on and that must use some power, but I don't know what that would be called in BBS.
Click to expand...
Click to collapse
Thanks! I should clarify that when I say it's a bug, I believe something is using a lot of battery, but I don't know that it's necessarily Phone/RCS, because it shows up randomly as either that or just Android System. I think it might be something within Android System but being labeled as Phone or RCS. (Edit: Or the other way around; it could be 100% RCS and sometimes shows up as Android System because the phone is part of that umbrella.) I could be wrong but based my judgment on the links I posted above.
That being said, I disabled Carrier Services on your recommendation in the other thread because my carrier doesn't support VoLTE, VoWiFi, or RCS, I've never seen a "delivered" message, and I don't even use the Google Messages app anyway (I use Texra for SMS and keep Messages disabled). So like you, I don't need these services. And I do think there's been an improvement. Might be time to go through the rest of what you recommended via ADB. The only thing that concerns me about doing that is that I'll have to factory reset if I ever switch carriers and want those services, but I guess that's a small price to pay and an unlikely scenario anyway.
The smart charger thing is just weird. It shouldn't need to constantly check whether I'm charging since it kicks in when you plug in. Yesterday I disabled battery care during the day and re-enabled it at night to charge, and I had the best battery life since I've owned the phone: 4.5 hours of SOT over 18 hours off the charger with 30% remaining. I may have to look at idle drain with battery care disabled. I like the idea of battery care, but if it's draining my battery then it just defeats the purpose.
Regarding sensors, BBS has its own category for proximity sensor; this is a separate sensor for significant motion. Somehow Google Play Services and either Phone/RCS or Android System are using that particular sensor all the time. And not just listening to it, but causing lots of wakeups and doing so while the device is sitting on a table all night. I can only deduce that it's somehow seeing motion when there isn't any.

jrbmed08 said:
Regarding sensors, BBS has its own category for proximity sensor; this is a separate sensor for significant motion. Somehow Google Play Services and either Phone/RCS or Android System are using that particular sensor all the time. And not just listening to it, but causing lots of wakeups and doing so while the device is sitting on a table all night. I can only deduce that it's somehow seeing motion when there isn't any.
Click to expand...
Click to collapse
Do you have 'On Body Detection' enabled in smart lock? That would force the phone to affirm if it's moving/stationary regularly and quite often.

Didgesteve said:
Do you have 'On Body Detection' enabled in smart lock? That would force the phone to affirm if it's moving/stationary regularly and quite often.
Click to expand...
Click to collapse
I never enabled that from the start, but just checked in case Google did something, and it's still off.
I also checked my app permissions, and the only ones with access to body sensors are Google Play Services and Tasker. None of my active Tasker profiles require the significant motion sensor. One of them does use the orientation sensor to turn the speakerphone on when it's face-up during a call, but I tried disabling that profile and the stats didn't change.
Maybe I have a messed-up accelerometer...do you know of a way to test that? (Edit: Found it in the Support app - my accelerometer, gyroscope, and proximity sensor are fine)
I think I might head to the Sony Mobile forums with the smart charger issue for that matter. It may be a bug that affects all phones with Qnovo features, or maybe they could at least give me an explanation.

jrbmed08 said:
Might be time to go through the rest of what you recommended via ADB. The only thing that concerns me about doing that is that I'll have to factory reset if I ever switch carriers and want those services, but I guess that's a small price to pay and an unlikely scenario anyway.
Click to expand...
Click to collapse
Correct me if I'm wrong, but couldn't you just "reinstall" those services via the same adb commands? Where you typed uninstall, just replace with install?

Maybe, but I don't know where I would be installing them from...? Since I don't have a backup of the package. I uninstalled a bunch of stuff via adb before and it didn't return with a dirty reflash. I had to flash userdata. So that's all I'm going by.

I'm not sure of the actual technical mechanics, but I believe uninstalling system apps doesn't actually remove the package from the system image, so you can reinstall them at any time.
I think it's like taking down a sign on a store, the actual store is still there, just all references to it are no longer there, so to the OS it's not listed - "uninstalled".

Hello - was there any solution found for this issue?

jrbmed08 said:
Anyone else who uses battery monitoring apps: have you noticed any similar issues?
Click to expand...
Click to collapse
Hi there, what was the final solution to your issue?

Dean F said:
Hi there, what was the final solution to your issue?
Click to expand...
Click to collapse
I gave up. I still have a ton of wakelocks. GSAM shows a bunch of them even when my phone is supposedly dozing. My battery life is OK, not nearly as great as I hoped I'd have with this phone, but it gets me through the day so I've just been living with it. I have noticed better battery on the latest firmware (July patch) than June. I also got rid of the RCS stuff, which helped a bit. And finally I traced a lot of my drain to an app I was using called "hide running in background notification" which the last few firmwares can do natively.
(Edit: Sorry for missing your previous post!)
Edit: I was sadly mistaken about better battery on the July patch. The battery is only better if I'm not on wifi. I posted in the wifi drain thread about it just now.

Related

Battery drain due to Google Maps

Hi guys,
I've had the Xperia Z, and i'm not even remotely close to getting the battery life some people on here are getting.
I'm unrooted and followed the advice on here for better battery life, but still cannot get 4 hours of on screen time.
Anyways, over the weekend, i've noticed Google Maps suddenly taking up huge amounts of battery.
I've barely been using Maps or indeed barely using any app that uses location based services.
Even over night, my battery would drain 15% and Google Maps was clearly the culprit when looking at apps using the battery.
It was even stopping stamina mode from kicking in.
I disabled GPS.
that didn't fix my problem.
I tried to Force Stop Google Maps.
that didn't fix my problem.
For example, i could charge my battery to 100% to reset my battery stats, then do nothing else but immediately watch half an hour of a film, and incredibly Google Maps would magically be the app thats drained the battery the most, like double that of the screen or triple that of media server!
So last night, i reset my phone back to factory settings, reinstalled all my apps, but i haven't applied the Google Maps update.
so far so good. so far, it is behaving itself.
has anyone else had this problem?
I don't know whether i should update Maps or not.
its weird, for the first couple of weeks, it wasn't an issue, so i don't know why it suddenly became a problem, but it was massively draining my battery, even when i had done everything to disable it!
under the reviews in google play, if i filter reviews for just reviews by users with XZ, i can only see one other person complaining of the same problem.
i couldn't find anyone else posting about this issue when i googled it.
So anyone else have this problem, or know why it is/was happening?
thanks,
It isn't the version of maps you are using that causes the issue. It is 'location settings'.
If you go into location settings in Maps, you will see that you can turn on and off things such as Location reporting, Report from this device, Enable location history etc.
Some of these are required to run Google Now to its full potential, however they cause quite a high level of partial wakelocks.
It is up to you whether you have them switched on (with some battery drain), or switched off (with no/little battery drain).
I also noticed a larger than normal battery drain since a couple of days. I can't remember if there was a gmaps update right before the drainage increase.
Just for the sake of repetition silly. This has nothing to do with the Maps version.
FYI - The last Maps update was on 12th March. Point proven therefore.
nobnut said:
It isn't the version of maps you are using that causes the issue. It is 'location settings'.
If you go into location settings in Maps, you will see that you can turn on and off things such as Location reporting, Report from this device, Enable location history etc.
Some of these are required to run Google Now to its full potential, however they cause quite a high level of partial wakelocks.
It is up to you whether you have them switched on (with some battery drain), or switched off (with no/little battery drain).
Click to expand...
Click to collapse
BUT like i said, i had turned all of these off, and MAPS was STILL draining my battery, despite location based services turned off, Maps forced stopped and not even using any location based app.
That is what i am querying. Why was this happening?
random quirk, or a more serious problem?
In that case I have no idea. It doesn't happen for me.
What I have noticed before once or twice however is that my location settings have changed without me doing it manually. This has happened to me twice when I have (un)installed Now.
nobnut said:
In that case I have no idea. It doesn't happen for me.
What I have noticed before once or twice however is that my location settings have changed without me doing it manually. This has happened to me twice when I have (un)installed Now.
Click to expand...
Click to collapse
i'm hoping its just a random quirk.
On friday, i noticed maps was using quite a bit of battery.
Saturday, Sunday and Monday however, it just went crazy.
I could lose 15% battery when my phone was asleep all due to Maps.
well, I reset my phone to factory settings 12 hours ago, and so far the problem has not repeated itself.
i've got GPS on, location based services on, and so far Maps isn't doing anything it shouldn't be doing.
I will definitely keep an eye on it and update this thread as and when.
I've had this phone 3 weeks, so i don't know why it suddenly became a problem on friday. The only thing i changed on friday was i installed new app Google Keep which almost certainly cannot be the culprit that i can see

Screen Brightness kills battery more than you'd think

So the poor battery life on my Note 4 might have more to do with screen brightness than I would have expected. Unfortunately, most people posting their SOT's aren't doing it in a very scientific way, so it's hard to know what we should expect from these devices.
Here are my battery test results using PCMark for Android https://play.google.com/store/apps/details?id=com.futuremark.pcmark.android.benchmark
In one test, I put the screen brightness to 100% and the results were pretty dismal. In the second test, I ran it at 50% brightness, which is brighter than the Note 2 at full and the results were much better.
I use Auto brightness during the day, which might explain my poor battery life, but I'd love to know what others score on PCMark are (it does run for 5+ hours!). I do keep my background BLACK, as well as using black themes on everything I can - for apps that only have white backgrounds, I use AutomateIt to invert the colors automatically. I would have thought these black backgrounds would do more, but it really comes down to brightness it seems.
I'm using an Exynos N910U model and left wifi connected while doing this test - 3 google accounts are synced on my device.
EP2008 said:
So the poor battery life on my Note 4 might have more to do with screen brightness than I would have expected. Unfortunately, most people posting their SOT's aren't doing it in a very scientific way, so it's hard to know what we should expect from these devices.
Here are my battery test results using PCMark for Android https://play.google.com/store/apps/details?id=com.futuremark.pcmark.android.benchmark
In one test, I put the screen brightness to 100% and the results were pretty dismal. In the second test, I ran it at 50% brightness, which is brighter than the Note 2 at full and the results were much better.
I use Auto brightness during the day, which might explain my poor battery life, but I'd love to know what others score on PCMark are (it does run for 5+ hours!). I do keep my background BLACK, as well as using black themes on everything I can - for apps that only have white backgrounds, I use AutomateIt to invert the colors automatically. I would have thought these black backgrounds would do more, but it really comes down to brightness it seems.
I'm using an Exynos N910U model and left wifi connected while doing this test - 3 google accounts are synced on my device.
Click to expand...
Click to collapse
thanks for tests im using my exynos version on auto brightness and generally get 6 hours SOT. i saw on alot of people s stats and people who has problems generally has google play services on their battery usage list and it definetly shouldnt be at there... its probably about location reports to google every1 should disable it from location settings it doesnt break anything.
tmac31 said:
thanks for tests im using my exynos version on auto brightness and generally get 6 hours SOT. i saw on alot of people s stats and people who has problems generally has google play services on their battery usage list and it definetly shouldnt be at there... its probably about location reports to google every1 should disable it from location settings it doesnt break anything.
Click to expand...
Click to collapse
Yes, location can be an issue, but I think that impacts standby time more than SOT. Currently I've done the following to help with location-related issues:
- used lion tamer (soon to be called amplify) to slow down NLP wakelocks.
- set my location settings to powersave mode
- setup AutomateIt to turn on GPS when I'm in Google Maps (I'm usually plugged into the car outlet, so battery isn't a concern while navigating.
- Greenify stuff like Google search, Maps and several others.
I like and use Location Reporting, so disabling it outright isn't an option. My standby usage is very good at usually less than 1% an hour and my wakelocks keep my device awake usually less than 6%, but I'm still working to lower that number.
EP2008 said:
Yes, location can be an issue, but I think that impacts standby time more than SOT. Currently I've done the following to help with location-related issues:
- used lion tamer (soon to be called amplify) to slow down NLP wakelocks.
- set my location settings to powersave mode
- setup AutomateIt to turn on GPS when I'm in Google Maps (I'm usually plugged into the car outlet, so battery isn't a concern while navigating.
- Greenify stuff like Google search, Maps and several others.
I like and use Location Reporting, so disabling it outright isn't an option. My standby usage is very good at usually less than 1% an hour and my wakelocks keep my device awake usually less than 6%, but I'm still working to lower that number.
Click to expand...
Click to collapse
last night with 10 hours sleep time. with wifi connected sync was activated for 3 mails. i just lost 2% and i didnt do anything special like you did. no greenify no root nothing i couldnt even install wakelock detector cuz its broken on kitkat without root.
. i just disabled some useless stuff like samsung store etc.. everything else is working. and on my car i generally listen music over bluetooth
Lux could help
tmac31 said:
last night with 10 hours sleep time. with wifi connected sync was activated for 3 mails. i just lost 2% and i didnt do anything special like you did. no greenify no root nothing i couldnt even install wakelock detector cuz its broken on kitkat without root.
. i just disabled some useless stuff like samsung store etc.. everything else is working. and on my car i generally listen music over bluetooth
Click to expand...
Click to collapse
Before I started tweaking, I was getting around 6%-9% drain PER HOUR! Disabling stuff without root only got me so far, then the xposed tweaks and Titanium Backup had to be used.
EP2008 said:
Before I started tweaking, I was getting around 6%-9% drain PER HOUR! Disabling stuff without root only got me so far, then the xposed tweaks and Titanium Backup had to be used.
Click to expand...
Click to collapse
like i said i dont know whats wrong for some people its probably something you installed(skype maybe) or mostly about location reporting. even last night i left my phone at 90% when i get it this morning after like 10 hours it was on 88% like i said earlier wifi was connected no power saving etc just normal idle time nothing special.
tmac31 said:
like i said i dont know whats wrong for some people its probably something you installed(skype maybe) or mostly about location reporting. even last night i left my phone at 90% when i get it this morning after like 10 hours it was on 88% like i said earlier wifi was connected no power saving etc just normal idle time nothing special.
Click to expand...
Click to collapse
I was testing without any apps installed (just whatever I used to record battery consumption) and it was crazy high. Then I started adding accounts and apps, tweaking and I got my standby time to be much lower, but SOT leaves much to be desired. I'm going to try using the manual brightness and see if there are any differences - I often find auto brightness to be too bright or too dim! No "sweet spot" found! LOL
Greeny can also help but may need root
I'd suggest changing the settings for your Battery Monitor Widget app. AFAICS it polls every 10 minutes so a wakelock occurs every ten minutes to save the data. Use something like an hour and see what happens. Also would highly recommend BetterBatteryStats, a free version is available here for members.
Sent from my LG-D802 using Tapatalk
bnbasarir said:
I'd suggest changing the settings for your Battery Monitor Widget app. AFAICS it polls every 10 minutes so a wakelock occurs every ten minutes to save the data. Use something like an hour and see what happens. Also would highly recommend BetterBatteryStats, a free version is available here for members.
Sent from my LG-D802 using Tapatalk
Click to expand...
Click to collapse
I'll try that, although that might only improve wakelocks, not screen on time.
BBS never worked right for me. Always complaining that it couldn't retrieve the stats or falling back on something else.
Sent from my SM-N910U
I was getting around 6%-9% drain PER HOUR!
Click to expand...
Click to collapse
Wait, with the screen off? Then you have something horribly wrong with your device. Mine did a few % over a night. With nothing done to the phone to conserve battery at all. Snapdragon, though. With the update.
I loose only 2% for 7h of standby last night.
We are seeing a trend I think, I noticed that it's mainly us 910U users or exnyos users complaining about battery life. So it must be something in the 910U rom?
I've got a 910F and I get 6 hours screen on time maximum :/
Slai said:
Wait, with the screen off? Then you have something horribly wrong with your device. Mine did a few % over a night. With nothing done to the phone to conserve battery at all. Snapdragon, though. With the update.
Click to expand...
Click to collapse
Doesn't happen now that I've rooted and applied my standard tweaks, but I tried a factory reset to see if I could correct the high standby drain and was not successful without these tweaks.
Sent from my SM-N910U
I have 910f and i got same issues with my batt.
i've tried clean system, root, custom rom. Battery is always draining higher than some people.
As i said in other thread: some people have an issue, some have great battery life. And nobody knows why
Maybe it's the guys who keep it stock and don't root, custom rom and "tweak" that get the good battery life.
Delete it pls.
Slai said:
Maybe it's the guys who keep it stock and don't root, custom rom and "tweak" that get the good battery life.
Click to expand...
Click to collapse
I'm on stock, but without tweaks I can't even go the day on standby. [emoji31]
Sent from my SM-N910U

Battery life suddenly dropped and phone is always warm - How do I diagnose problem?

I searched and haven't found any battery life thread quite like the problem I am having.
I got my Nexus 6 new last September and until recently the battery has always lasted all day for me. I never looked at battery stats or tried to optimize because I never needed to. About a week ago, the battery started running out by 3PM every day. And the phone is always warm to the touch.
The only thing I can think of that changed was I noticed that my Google Contacts were not syncing properly and so I tried a bunch of stuff to get them syncing properly. I went through a checklist of stuff like wiping the contact apps data, deleting the google account and recreating, etc. I might have deleted and then installed the contact app, I'm not sure. I just tried a bunch of stuff until the contacts were syncing correctly. I don't think that is the cause - I mention it because it is the only change I can think of around the time the battery life degraded. I don't allow the play store to auto update apps, so other than something related to google contacts, there were no app version changes. I didn't change anything about how I use the phone.
I am running the ROM from here:
http://forum.xda-developers.com/nexus-6/development/rom-5-1lightromstock-lmy47e-03-19-2015-t3059493
which is, I believe, very close to stock. Since the May security patch level came out shortly after I started having battery life problems, I did a clean install of that version. I wiped system, cache, dalvik and data in TWRP before installing the new version. I've run that for a few days now and my battery life is still terrible and the phone is always warm.
Anyone have any ideas what could be causing the problem or how I can diagnose the problem? I've looked at the battery stats, but because I've never looked at them before, I have no idea what they are supposed to look like. The top item in the list is always "Android System" at 18 - 30% of the battery use.
is google play services eating a lot of the battery?
Or did you tried betterbatterystats? Or smth like that? So you can track in detail.
simms22 said:
is google play services eating a lot of the battery?
Click to expand...
Click to collapse
I haven't looked for it before. I don't see "google play services" in the list right now. The is "Google Services" and that has used 5% today.
Get screenshot of both graphs in settings.
1 - settings/battery
2- Tap on the battery graph from (1) to show another graph that has several horizontal bars below it.​
2a -may give clues about weak phone signal, excess gps etc
2b - See if there are long periods when screen is off but device is awake...​
electricpete1 said:
Get screenshot of both graphs in settings.
1 - settings/battery
2- Tap on the battery graph from (1) to show another graph that has several horizontal bars below it.​
2a -may give clues about weak phone signal, excess gps etc
2b - See if there are long periods when screen is off but device is awake...​
Click to expand...
Click to collapse
Yes it looks like it is awake most of the time. I've attached a screenshot.
johninor said:
Yes it looks like it is awake most of the time. I've attached a screenshot.
Click to expand...
Click to collapse
your phone is constantly awake, not sleeping. AND you have both Bluetooth and WiFi turned on. you'll get terrible battery. one way to rectify it, kinda, is to turn your screen brightness down a lot. since your phone is constantly awake, that means your CPU is working doing something, is it by your choice?
simms22 said:
your phone is constantly awake, not sleeping. AND you have both Bluetooth and WiFi turned on. you'll get terrible battery. one way to rectify it, kinda, is to turn your screen brightness down a lot. since your phone is constantly awake, that means your CPU is working doing something, is it by your choice?
Click to expand...
Click to collapse
I want bluetooth and wifi always on and I have never had to turn them off to conserve battery before.
It sounds like the problem is the phone is awake all the time. Now how do I find out why?
johninor said:
I want bluetooth and wifi always on and I have never had to turn them off to conserve battery before.
It sounds like the problem is the phone is awake all the time. Now how do I find out why?
Click to expand...
Click to collapse
you can use something like wakelock detector(app) to find if you have any unusual wakelocks.
I agree, it is abnormal for the phone to be awake the whole time from 9am-2pm including long periods when screen was off. The at 2pm (slgithly after you started charging), those wakelocks stopped and remained stopped even after you want back off the charger. It might be a clue... any idea what might have changed just after 2pm (some program that you stopped or killed or setting that you changed)? At any rate I agree something like better battery stats is a valuable tool to help narrow down the cause of wakelocks although it's not always easy.
Another thing I notice is that your phone signal is very weak... red orange and yellow. (mine is mostly green with a little yellow). They put that on the battery screen because it certainly can affect battery life as you phone has to work harder just to find/keep its signal. Weak signal might possibly be related to the wakelocks although I'm not sure. Most likely phone signal is something you can't control or wouldn't change, unless you were in a different location or unless (longshot) it is related to your radio. You might try flashing stock radio if you have a different radio.
simms22 said:
you can use something like wakelock detector(app) to find if you have any unusual wakelocks.
Click to expand...
Click to collapse
electricpete1 said:
I agree, it is abnormal for the phone to be awake the whole time from 9am-2pm including long periods when screen was off. The at 2pm (slgithly after you started charging), those wakelocks stopped and remained stopped even after you want back off the charger. It might be a clue... any idea what might have changed just after 2pm (some program that you stopped or killed or setting that you changed)? At any rate I agree something like better battery stats is a valuable tool to help narrow down the cause of wakelocks although it's not always easy.
Another thing I notice is that your phone signal is very weak... red orange and yellow. (mine is mostly green with a little yellow). They put that on the battery screen because it certainly can affect battery life as you phone has to work harder just to find/keep its signal. Might possibly be related to the wakelocks although I'm not sure. Most likely phone signal is something you can't control or wouldn't change, unless you were in a different location or unless (longshot) it is related to your radio. You might try flashing stock radio if you have a different radio.
Click to expand...
Click to collapse
Thanks for your help. I can't remember if I did anything that could have changed the behavior around 2PM, but now that I know, I can keep an eye out for any similar change.
I have never looked at the battery stats before, so I don't know if that cell signal is how it has always been or something that has changed recently. I suspect it has always been like that because I usually see 0 or 1 bars on the status bar icon when I am at home. I have not changed radios, but I may try that after figuring out this problem.
It looks like I need to look at wavelocks to try to see what is keeping the phone awake. I'll investigate and report back with results and or further questions.
Just remembering you said it started after the May security patch.
I'm assuming you flashed it rather than OTA'd it.
Here is the recent history of factory images for Nexus 6
FEB: MMB29Q
MAR: MMB29V
APR: MMB29X, MOB30D
MAY: MMB30G, MOB30I
The MOB series introduced a new radio (the same new radio in MOB30D and MOB30I). I heard that the reason there are two imagesw in April and May is that not all carriers have tested/approved the new radio yet (those carriers - whoever they are - delivered OTA's to MMB29X and to MMB20G). I haven't heard any reports of problems from the new radio and I know it works fine for me on AT&T. Maybe if you came from something other than MOB30D before, and just changed to MOB30I in May, then it might be worth trying the radio from MMB30G instead (there shouldn't be any problem mixing/matching radios.. radio is independent of the rest of the image).
---------- Post added at 01:07 PM ---------- Previous post was at 12:47 PM ----------
I just read you didn't change radio and you've always had a low signal. So, disregard my post above.
another thing - a standard troubleshooting suggestion (not related to anything in your post), try wiping cache in recovery.
Settings -> Google -> Security -> Turn off everything
What ROM are you currently running? Or kernel?
MellowRoms Nexus 6
Facebook Group Page https://www.facebook.com/groups/212715385759035/
electricpete1 said:
Just remembering you said it started after the May security patch.
I'm assuming you flashed it rather than OTA'd it.
Click to expand...
Click to collapse
It didn't start after the May security patch. It started a bit before and it started out of the blue. I did a clean install of the updated ROM with the may security patch. I was thinking the clean install of the ROM would fix it, but there was no change. One thing I didn't mention is that after installing the ROM, I restored system data and user apps and data with Titanium backup.
Slipknot8Wwe said:
What ROM are you currently running? Or kernel?
MellowRoms Nexus 6
Facebook Group Page https://www.facebook.com/groups/212715385759035/
Click to expand...
Click to collapse
I am running the ROM here:
http://forum.xda-developers.com/nexus-6/development/rom-5-1lightromstock-lmy47e-03-19-2015-t3059493
I haven't done anything to change the kernel - does the kernel come with the ROM?
I have installed Wavelock detector free and poked around with it. I've attached a screenshot. It looks like the problem is in something labeled *backup* in the android system. Now that I have this info I am off to google android backup wakelock and see if I can find out more.
The problem went away for a while again and I can't think of anything I did other than install the wavelock detector app. Then the problem returned again.
johninor said:
I am running the ROM here:
http://forum.xda-developers.com/nexus-6/development/rom-5-1lightromstock-lmy47e-03-19-2015-t3059493
I haven't done anything to change the kernel - does the kernel come with the ROM?
Click to expand...
Click to collapse
No idea what ROM it is cause it says that it has been deleted by the administrator
MellowRoms Nexus 6
Facebook Group Page https://www.facebook.com/groups/212715385759035/
johninor said:
I have installed Wavelock detector free and poked around with it. I've attached a screenshot. It looks like the problem is in something labeled *backup* in the android system.
The problem went away for a while again and I can't think of anything I did other than install the wavelock detector app. Then the problem returned again.
Click to expand...
Click to collapse
Try this if it helps
Sent from my AO5510 using Tapatalk
Thank you all for your help. I looked at the google backup settings and I had backup turned on, but there was no backup account set. I put in my google account as the backup account. So far the problem is gone. That doesn't prove the missing account was the cause, so if the problem comes back, I think that disabling backup entirely should "fix" it.

20% battery drain over night || FIXED || SEPTERMBER 13 2018

Somewhere earlier this year I started getting a 20% overnight battery drain. On a few nights it didn't drain, but its pretty consistent. I have tried everything listed on this forum..This drain is definitely not caused by any standard settings. I am really hoping somebody with insight into Oreo might have something new I could try. I know xda user Digisteve is going to showup and suggest more things, and that is also not going to work.
Things I've tried.
- using root to disable logd. (saw this as a process in BBS) Still drained.
- Disabling auto-sync of all accounts. Still drained.
- Turning on stamina mode at night. Still drained.
- Removed google play store, google play services framework, and all google aps - and replaced with alternative China app store. - Still drained. Not a play services problem.
- Turning off wifi, all wifi scanning, notifications of wifi networks etc. Still drained.
- Turning off mobile data and wifi - no connectivity at all. Still drained.
- Turned of location in all possible device settings,. Still drained.
- Rooted the device with Janjan method/kernal. Still drained.
- Flashed different regions. Including (Taiwan, my region, Malaysia, Germany, Swiss, HK). Still drained.
- Tried firmware verions , 179 , 205, 235, 270
- Deleting 3rd party apps. Still drained.
- Installing Gsam - checking for consuming apps. No apps listed as cause of the drain.
- Installed greenify. Tried as standard, non-rooted with adb permissions, and fully rooted. Still drained.
- Disabling various packages related to 'carrier services', qualcomm and rcs. Still drained.
- Debloated to the point that the phone had no google apps, no Xperia apps and removed tons of other apps, camera bloat, anon data, etc, all removed. Still drained.
- All built in apps replaced with a 3rd party app, including, sms, contacts, email, keyboard. Still drained.
- Installed Linage OS 15.1 Beta 5. Still drained.
- switched from 3G only to LTE only. both drained equally.. though I have worse single with LTE in my area.
I am hoping there is a better solution than throwing the phone away. Because I am pretty much at that point now. I have spent probably well over 120 hours trying to fix this, and I can't. Its at the point where I need to move on to a new device rather than waste more time.... but there are no small devices on the market now, and also no more classic xperia style devices on the market. Sony does not make the executive, classic 'Xperia' style I fell in love with anymore. I don't do round, heavy, huge phones. Very sad.
UPDATE - AUGUST 14
Now running the latest Customized German 270 firmware.
Still draining 20% per night. Check out the screen shots - clear to see I have almost no apps. No process can be seen as a battery hog in both Gsam and BBS. However Gsam screenshot shows evidence of CPU usage.
UPDATE - SEPTEMBER 13 - FOUND THE PROBLEM
Considering almost nobody had my issue, I assumed my phone must be a dud. Late August I bought a second XZ1 compact. The new phone worked for 1 day, and on the second day drained battery at 15% per night idle drain. Previously I had only tested the sim card by switching 3g,4g and disable mobile data, but never actually removing the sim from the phone. Last 2 nights I replaced my old sim with my gf sim of a different carrier. In the morning I had 99% battery remaining. No Drain!
I then downloaded an app these measures signal strength, and turns out where I sleep at night, there is is less reception. Its not noticeable just looking at the standard signal strength on your home screen, you need to check the more detailed strength in decibel millimps /dbm. I can still get good signal in most areas of my house, but the phone is having to use more power to keep the signal good. I can now reproduce the battery drain on demand. If I sleep with the phone near my bed, I get drain. But if I keep the phone in the living room, no drain. I found that connecting to wifi not a factor, since even if you use wifi for data, the phone was still holding open a connection the the cell tower.
This problem took me months, countless hours, and the expense of buying a completely new phone!!! Now I have 2 XZ1 compacts....arg.... but so happy its solved.
The important point is that if testing sim, good signal, or disabling mobile data, changing 3g 4g isn't enough. Your phone is using more power to maintain good signal.
Thank you to everyone who spend time trying to help me, digestive, proflyer, etc. Thank you guys.
At this point, I think it's highly likely you got yourself a lemon. Since you've already rooted the phone, warranty service is out of the question.
It boils down to two options:
1. Pay for a board replacement.
2. Try your luck with a brand new XZ1C. Buy it online so that you'll get the 7 days return perk (some online stores offer 10 days), keep it wrapped in its original packaging, handle with extreme care, and use it normally for a few days before your return window runs out. If you no longer get drains, congrats, and welcome to the club. If not, accept your fate, return it for a full refund, and give up on the XZ1C - understand that you weren't meant for each other and move on.
I had the same issue. Check this thread. Try that and report back.
https://forum.xda-developers.com/xp...ormal-battery-consumption-wifi-t3740495/page3
I know what you feel. I had this too, but mine went away and I only very rarely have this drain. But mine was always on Wifi. With Wifi off = no drain reported... never.
I investigated it for weeks without coming to a conclusion.
If you can, replace the phone with warranty. Worth a try. Right now in my opinion you have a hardware faulty device.
But i would say to wait for android 9. In my opinion it wont take ages to come. It will much likely come this year.
---------- Post added at 15:52 ---------- Previous post was at 15:45 ----------
Milly7 said:
I had the same issue. Check this thread. Try that and report back.
https://forum.xda-developers.com/xp...ormal-battery-consumption-wifi-t3740495/page3
Click to expand...
Click to collapse
He still has drain even with WIfi Off, so that not the problem.
The only other thing I could suggest is having the battery replaced at a local repair shop. If you got a lemon battery but an otherwise fine phone, that could help.
How about remove your SIM card with wifi on for over night? Do you still experience the drain?
[delete]
Dean F said:
UPDATE - AUGUST 11
ONE WORK AROUND. If I reboot the phone, then unlock it so "android is starting" screen is complete. Then lock the phone, without doing anything else - The battery does not drain overnight. In light of this, what could be the solution? I know an app sounds logical, but I arlready checking my 3rd party apps, and none of them were the probably, an no battery app has ever listed an app as a drain.
Any technical or Dev person go any idea what that symptom points towards?
Click to expand...
Click to collapse
This does indeed sound like an app or a service gets stuck in an awkward way. You indicated in your first post that you use better battery stats, do you mind posting screenshots of the top of the summary, kernel wakelocks and partial wakelocks page (showing keeping awake services) as well as the bottom of the cpu states page (showing deep sleep time) "since unplugged" after a few hours of drain?
I have attached corresponding screenshots here for my xz1c (after more than 24 hours unplugged) as a reference (I have play services enabled and syncing both gmail and contacts and so on, no root though).
Dean F said:
UPDATE - AUGUST 11
ONE WORK AROUND. If I reboot the phone, then unlock it so "android is starting" screen is complete. Then lock the phone, without doing anything else - The battery does not drain overnight. In light of this, what could be the solution? I know an app sounds logical, but I arlready checking my 3rd party apps, and none of them were the probably, an no battery app has ever listed an app as a drain.
Any technical or Dev person go any idea what that symptom points towards?
Click to expand...
Click to collapse
That doesnt make too much sense. Test it for at least one week before coming to conclusions.
Try this and let me know if it works
I had exactly the same issue
What i did (now magicaly works)
I did not have too many time so what I did was simple and I got a cheap replacement phone in the meantime
It seems to be beyond everything we tried
I conected the phone to the pc and did the fix with xperia companion, then I realized that everything was working as soon as I started to install the apps the problem came back, I installed a launcher (nova) and use it, drained the battery útil reach zero and fully charge it, then everything was working... Back to normal... I don't know how the issue was solved but hope it works for you
Sorry about my bad english xD
ergoen said:
This does indeed sound like an app or a service gets stuck in an awkward way. You indicated in your first post that you use better battery stats, do you mind posting screenshots of the top of the summary, kernel wakelocks and partial wakelocks page (showing keeping awake services) as well as the bottom of the cpu states page (showing deep sleep time) "since unplugged" after a few hours of drain?
I have attached corresponding screenshots here for my xz1c (after more than 24 hours unplugged) as a reference (I have play services enabled and syncing both gmail and contacts and so on, no root though).
Click to expand...
Click to collapse
Hi ergoen - thanks for the interest in my problem. Please see all the screenshots attatched, including BBS and Gsam.
Dean F said:
Please see all the screenshots attatched,
Click to expand...
Click to collapse
The screenshots from BBS look pretty normal, the GSMBattery shots show issues with Google Play Services, so I'm guessing they were taken at different times. But there's nothing jumps out of the stats that looks out of the ordinary. Have you run the phone in safe mode overnight to see if you get the same drain? I think you may just have a duff battery, no one else has reported this sort of power loss before.
$40 down the repair shop to get a new battery is going to be a whole lot cheaper than a new phone.
Elmcor said:
I installed a launcher (nova) and use it,
Click to expand...
Click to collapse
I have read somewhere else that Sony's Home is very thirsty with power, I will give your suggestion a go
Didgesteve said:
The screenshots from BBS look pretty normal, the GSMBattery shots show issues with Google Play Services, so I'm guessing they were taken at different times. But there's nothing jumps out of the stats that looks out of the ordinary. Have you run the phone in safe mode overnight to see if you get the same drain? I think you may just have a duff battery, no one else has reported this sort of power loss before.
$40 down the repair shop to get a new battery is going to be a whole lot cheaper than a new phone.
I have read somewhere else that Sony's Home is very thirsty with power, I will give your suggestion a go
Click to expand...
Click to collapse
Thanks didgetsteve. your probably right.... The GSAM and BBS stats were taken right after each other, maybe a gap of 2 mins. Play Services wasnt the issue though, as I tried my phone google free, and it still drained.
Dean F said:
Thanks didgetsteve. your probably right.... The GSAM and BBS stats were taken right after each other, maybe a gap of 2 mins. Play Services wasnt the issue though, as I tried my phone google free, and it still drained.
Click to expand...
Click to collapse
I agree with didgesteve, nothing jumps out by just looking at bbs (I am not familiar with gsam, so I cannot comment so much on that).
Before replacing the battery, I would probably make sure that it is not radio/network related. I have noticed that my phone draws significantly different amount of battery (in deep sleep mode) depending on the mobile network. This is mostly independent on whether mobile data is on or off.
Could you turn on airplane mode for an hour or two and verify that it is not the radio chip that is causing your drain? (If that is the cause, I am not sure if you can do anything about it apart from switching carriers or experimenting with 2g/3g/4g settings, but it might be worth knowing)
ergoen said:
I agree with didgesteve, nothing jumps out by just looking at bbs (I am not familiar with gsam, so I cannot comment so much on that).
Before replacing the battery, I would probably make sure that it is not radio/network related. I have noticed that my phone draws significantly different amount of battery (in deep sleep mode) depending on the mobile network. This is mostly independent on whether mobile data is on or off.
Could you turn on airplane mode for an hour or two and verify that it is not the radio chip that is causing your drain? (If that is the cause, I am not sure if you can do anything about it apart from switching carriers or experimenting with 2g/3g/4g settings, but it might be worth knowing)
Click to expand...
Click to collapse
Didgesteve said:
The screenshots from BBS look pretty normal, the GSMBattery shots show issues with Google Play Services, so I'm guessing they were taken at different times. But there's nothing jumps out of the stats that looks out of the ordinary. Have you run the phone in safe mode overnight to see if you get the same drain? I think you may just have a duff battery, no one else has reported this sort of power loss before.
$40 down the repair shop to get a new battery is going to be a whole lot cheaper than a new phone.
I have read somewhere else that Sony's Home is very thirsty with power, I will give your suggestion a go
Click to expand...
Click to collapse
I also had the drain that Dean has. But mine wasnt so agressive, I mean, some days it was there draining 30% battery over my sleep time (8hrs) and sometime it just behaved normally draining max 3% over sleep time. But still from time to time the drain come back wich is annoying as I cant let my phone with 30% battery left when im going to sleep, afraid the battery will be dead and the alarm wont wacke me up lol.
On my extensive tests, the drain only happened with wifi, but even deactivating all wifi related process (backups, syncs etc) the drain was sometimes there. Wifi wasnt the culprit with Dean, but on my tests: Wifi On = Sometimes big drain , Wifi Off = never drain.
I never managed to find the culprit of this damn drain and Im a software tester. Gsam did not show anything unusual at all. It was like Deans screenshot.
We discussed about this issue a lot here (https://forum.xda-developers.com/xperia-xz1-compact/help/battery-life-bit-odd-t3688342/page8) but till this day we dont know whats triggering it.
Im curious how the phone will behave on this issue with android P.
@ergoen @Didgesteve . Can you guys comment on my 4th screen shot, the one where you can see the CPU usage. Does anything strike you as odd in that pic? TThe CPU util looks high... it is normal?
i dont see nothing odd there
Dean F said:
@ergoen @Didgesteve . Can you guys comment on my 4th screen shot, the one where you can see the CPU usage. Does anything strike you as odd in that pic? TThe CPU util looks high... it is normal?
Click to expand...
Click to collapse
I'm sorry, but I don't think I have the knowledge to judge that. I would expect CPU usage to be low in deep sleep mode, but since the CPU is mostly sleeping, I guess any requested usage will queue up in a way that might look odd, so what you are seeing might be normal (but again, I don't actually know). I also believe that CPU power consumption is mostly related to the frequency state it is in, so deep sleep should mean low consumption (independent on cpu util %).
As I indicated in my previous post, I would sooner blame the radio chip or the battery than the CPU given your BBS screenshots.
mi drain came back today... some days its there and some days its not...
what a fvcking piece of sh1t is this phone... im done with the all tests. time to try samsung.
profyler said:
mi drain came back today... some days its there and some days its not...
what a fvcking piece of sh1t is this phone... im done with the all tests. time to try samsung.
Click to expand...
Click to collapse
Bro, Samsung is even worse when it comes to battery drain. Check out linus tech tips vid from a few days ago https://www.youtube.com/watch?v=n46s_iF_IV4&t=324s
My wifes side of the family all have Samsungs.... they are totally ****. The OS is bloated, ugly, laggy despite monster specs huge ram, snap 845, and battery nightmares on brand new phones exactly like in Linus's video. And there is a stupid "BIXBY BUTTON" on the phone which is a total nightmare. if your with Samsung, BIXBY will the with you, following you forever.
In other news, I replaced my Taiwan XZ1 compact with an Australian XZ1 Compact, and my drain is gone. I drained 2% last night.
There are so many build differences with the Taiwan and Australian build of the phone. Bigger microphone holes, slightly different proximity sensor design, and the plastic back is a rough matt black/gray in the AU versions, the TW version was a smoother shiny midnight black with a silver sparkle in the sun. The biggest difference was of course the battery drain.

Odd battery life

Hello,
Since the purchase of my phone XZ1 Compact (G8441), I've been experiencing barely acceptable battery life. This is especially frustrating since I bought this phone having heard that it can last easily 2-3 days, but this is not the case for me (discharging about 4%h on average or 2.5%h with screen off on either wifi or mobile data, with various configurations outside/home/office, i.e. in practice never usable more than a day).
According to *#*#SERVICE#*#*, the battery life is still good (2704 mAh). The issue I am experiencing is most likely due to an unknown software and/or hardware failure leading to lots of wakelocks that prevent the phone from "sleeping"/"dozing" correctly.
I know that MANY users worldwide are experiencing this and Sony never gave an answer to this, according to e.g. the following threads:
https://talk.sonymobile.com/t5/Xper...-drain-after-update-47-1-A-12-235/m-p/1337029
https://talk.sonymobile.com/t5/Xper...-drain-after-47-1-A-12-205-update/m-p/1328053
https://forum.xda-developers.com/xperia-xz1-compact/help/battery-life-bit-odd-t3688342/page8
https://talk.sonymobile.com/t5/Xperia-XZ1-Compact/High-battery-drain/m-p/1326474 https://talk.sonymobile.com/t5/Xper...-drain-after-update-47-1-A-12-270/m-p/1340671 https://talk.sonymobile.com/t5/Xper...pie-battery-drain-CPU-idling-high/m-p/1354891
and many others
In my case the items "NlpWakeLock" and "RILJ_ACK_WL" activate both up to thousands of times every hour. No relevant information could be found about this in the web lookups I've done, and I am not sure this is related to the issue I'm facing. I joined a log of today's better battery stats with a pathetic 1h20 of SOT and 65% discharge, a huge count of wakelocks except when I was listening to music, and an apparent faster discharge with the idle phone than when actually used.
The phone is running the latest downloadable Sony firmware 47.2.A.10.107.
Of course, factory reset was tried with no amelioration and I tried to contact directly Sony which have basically no willingness to help or investigate.
Anyone would have a clue about this?
Thanks,
Alexandre
Do you use Google Now (google assistant) - NlpWakeLock
If not, disable it and see what happens.
This little phone I have for battery life and for banking/authenticator/etc. Not for work. So I have disabled most things I do not need (adb uninstall) - so the battery is quite good on standby.
Thanks for the reply. Unfortunately, as I don't use GoogleNow, the whole Google App is already disabled...
I'll try and do some adb uninstall and will keep you posted
alexounet2 said:
Anyone would have a clue about this?
Click to expand...
Click to collapse
Looking at the bbs stats. The first thing I noticed is that your wifi is on all the time. Try turning it to only when awake and disable the wifi scanning in locatin settings.
RIL wakelocks are on because you have poor signal, it's the number of handhakes your phone does with the local cell tower and if you have bad signal, it gets higher.
Some providers offer home 4g boosters for your home or 'calls over wifi', either of these would reduce your battery usage.
My phone has been flawless (2-3 days on battery when I don't play games) but suddenly it started behaving like described in the original post.
It has 1 day life now and I haven't found the reason for this change. I have removed all recently installed apps, removed all unnecessary apps (including Facebook app), disabled running in background for some (like Messenger), there was no firmware update at that time. Still something is eating up the battery. SmartPanel tool shows that 58% of battery is Unaccounted (next is display and Google Services). I have not done the factory reset yet because I need fully configured phone right now.

Categories

Resources