Doze - Nexus 5X Q&A, Help & Troubleshooting

Is there a way to make doze activate without the device being stationary?
I know greenify enables the device to activate doze as soon as the screen is off, but the device still needs to be stationary.
If I'm wrong please correct me.

k.s.deviate said:
Is there a way to make doze activate without the device being stationary?
I know greenify enables the device to activate doze as soon as the screen is off, but the device still needs to be stationary.
If I'm wrong please correct me.
Click to expand...
Click to collapse
You are absolutely right about doze only activating when stationary.
It's a feature of doze actually so Google will probably not alter this in any way. Ive searched but not found anyone who found a solution yet. I guess it's not considered a huge problem.
I'm also interested in disabling this feature as the device idles in my pocket most of the day.

I'm hoping one day the devs can perform a miracle

Related

FRX03...GPS...Sleep Mode...

I searched for Sleep Mode and GPS problems, and of course since those are very common words in most posts, I was having a hard time actually finding if anyone else has my problem.
I am running the most current kernel of FRX03. I have a sprint Rhod400. This problem pre-dates the current kernel, and I am not sure how long it has gone on, because I was having a lot more issues with sleep mode back in the earlier kernels anyway, as I think all people were. I am running with sleep mode set to 1.
Whenever I start a GPS program, usually it is foursquare, when I kill all the apps including foursquare using Advanced Task Killer, the phone will not go back to sleep. I have also looked at the "running services" setting and nothing is running besides Android. It seems to me the GPS stays active even though the GPS icon and all hints that it is actually running ceases to be found. I am guessing this is causing the phone not to go back to sleep. I have not really tested it out with navigation or maps to see if it happens there also, but if my memory serves me right it does.
Any suggestions on possible fixes?
Disable GPS. It's a known bug, which has already been filed on the bugtracker.
If GPS is enabled, phone will not sleep - and I don't mean enabled in that there's the GPS icon in your notification bar, I mean enabled (checked) in Location & Security. Uncheck it there, and the phone will sleep.
This is all interesting, because my RHOD400 seems to sleep just fine (much of the time) with GPS enabled!
gnnash said:
This is all interesting, because my RHOD400 seems to sleep just fine (much of the time) with GPS enabled!
Click to expand...
Click to collapse
Enable GPS, then open an app that uses it. Leave GPS enabled, but close the app. Now try to put your phone to sleep .
I've definitely seen intermittent issues with sleep and GPS. Not sure if it's every time, but I noticed when the phone doesn't sleep, I disable GPS in loc&sec and it'll go to sleep.
The only other serious sleep-related problems I've had is with rogue apps stealing processor cycles and keeping the phone awake.
I'm running NAND were pm.sleepmode = 1.
Yesterday I left my GPS enabled and I seemed to be getting better battery life? Maybe it is just a fluke... But you never know!
I will try it on my other phone running HARET.
Lmiller1708 said:
I'm running NAND were pm.sleepmode = 1.
Yesterday I left my GPS enabled and I seemed to be getting better battery life? Maybe it is just a fluke... But you never know!
I will try it on my other phone running HARET.
Click to expand...
Click to collapse
Well better battery life is probably related to usage.
However, that would be interesting if on NAND the GPS no sleep bug is non-existent...
I honestly haven't tested it in a while. No one has specifically looked at fixing it. I guess it's possible a commit happened to fix it - just usually doesn't work like that .
I use the 11/22/10 XDAndroid build from the .cab and the bug is present. LED doesn't turn from orange to green until I turn off GPS in settings and turn off the screen.
He probably thought that it was sleeping because the screen turned off (I used to think the same thing).
gallahad2000 said:
I use the 11/22/10 XDAndroid build from the .cab and the bug is present. LED doesn't turn from orange to green until I turn off GPS in settings and turn off the screen.
He probably thought that it was sleeping because the screen turned off (I used to think the same thing).
Click to expand...
Click to collapse
No I knew it wasn't sleeping. I know the purpose of the LED being on always(sleep mode debugging). I was just trying to figure out why, and if there was a fix, which there isn't. In the earlier version of XDAndroid builds it was more than just GPS that was causing sleep issues, so back then I didn't think much of it not going to sleep, as I couldn't get more than about 4 hours of battery life out of those builds anyway. Now I am getting at least 12 with heavy usage and way more than that with light usage. So things have improved indeed.
slickdaddy96 said:
No I knew it wasn't sleeping. I know the purpose of the LED being on always(sleep mode debugging). I was just trying to figure out why, and if there was a fix, which there isn't. In the earlier version of XDAndroid builds it was more than just GPS that was causing sleep issues, so back then I didn't think much of it not going to sleep, as I couldn't get more than about 4 hours of battery life out of those builds anyway. Now I am getting at least 12 with heavy usage and way more than that with light usage. So things have improved indeed.
Click to expand...
Click to collapse
Indeed! So that is the fix - disable GPS. It sucks, but it's on the punchlist of things to fix. Unfortunately I don't know of anyone looking at it specifically at the moment, but I'm sure it'll get addressed.

Battery optimization

What exactly does that feature do on an individual app? Security apps like cerberus recommend not using it.
Sent from my Nexus 5X using Tapatalk
Hi
km8j said:
What exactly does that feature do on an individual app? Security apps like cerberus recommend not using it.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
During Doze mode (this kicks in when you've not moved or used the phone for a period of time, such as overnight when it's left alone) stops apps from waking the phone or running background tasks, the idea being if the phone isn't being used, it's a waste of power for apps to keep going off on line chattering or receiving notifications and displaying them to the user. Notifications that you might have got immediately, don't ping through until you press the power button the next morning.
I suspect security apps like Cerberus don't want to partake in Doze mode as they want to wake your phone up every few hours regardless and scan it, or be able to download new signatures any time.
Despite setting an app to not be optimised, it still gets stop from waking the phone using alarms during Doze (alarms are something an app can set to say wake the phone up and run the app every 10 minutes or on the hour etc). However the developer of the app can work around this by setting a new type of alarm, for Google this work around is easily detected and it wouldn't surprise me if they start alerting on the Play store about apps that are potential battery drains because they by-pass Doze. Of course some apps have to, for example an alarm clock to wake you in the morning, or something like Tasker that you set to run things at specific times, so it will be up to the developer to explain why and the person downloading to make a decision about it.
Regards
Phil
Hi
PhilipL said:
However the developer of the app can work around this by setting a new type of alarm, for Google this work around is easily detected and it wouldn't surprise me if they start alerting on the Play store about apps that are potential battery drains because they by-pass Doze. Of course some apps have to, for example an alarm clock to wake you in the morning, or something like Tasker that you set to run things at specific times, so it will be up to the developer to explain why and the person downloading to make a decision about it.
Click to expand...
Click to collapse
That was my post in October, this happened to Tasker: http://www.androidpolice.com/2015/1...y-reasons-this-time-its-the-notorious-tasker/
It seems Google has perhaps pulled the plug on Tasker a bit too quickly due to a BETA version, but I think overall this approach is good for Android if it gets rid of battery draining apps, which usually are up to no good downloading ads or sending back data for marketing reasons. Obviously some apps are the exception to this like Tasker, which will need this exception to continue working correctly, as otherwise it will be restricted to one wake-up every 15 minutes only when the phone goes into doze mode.
Regards
Phil
PhilipL said:
Hi
That was my post in October, this happened to Tasker: http://www.androidpolice.com/2015/1...y-reasons-this-time-its-the-notorious-tasker/
It seems Google has perhaps pulled the plug on Tasker a bit too quickly due to a BETA version, but I think overall this approach is good for Android if it gets rid of battery draining apps, which usually are up to no good downloading ads or sending back data for marketing reasons. Obviously some apps are the exception to this like Tasker, which will need this exception to continue working correctly, as otherwise it will be restricted to one wake-up every 15 minutes only when the phone goes into doze mode.
Regards
Phil
Click to expand...
Click to collapse
Interesting reading. The question is why they even allow apps to use permission for ignoring doze, whe it most liley means ban in Play Store. Should be available to system apps only.
Note: Google Play policies prohibit apps from requesting
direct exemption from Power Management features in Android 6.0+ (Doze and App
Standby) unless the core function of the app is adversely affected.
Click to expand...
Click to collapse
Now the question is what authority can JUDGE whether certain app needs it or not.

Doze in accessibility? What's that?

Wandering in my LG G4 settings I was in "accessibility" options and I found at the bottom of the screen the "doze" option. What's that?
Which version of Android are your phone running? Mine is running Marshmallow and there is no "Doze" option found in "Accessibility".
Maybe it's a fake application from playstore.
Because Marshmallow versions have a new feature called Doze.
Android Marshmallow has changes deep in the operating system that can allow your phone (or tablet) to get better battery life. We see this mentioned with every operating system update from every company that makes smart devices, but this time they mean it.
Enter Doze. If the name reminds you of a pleasant nap while nothing pressing is going on, you've figured out what it is. It's a set of changes and rules that will put your phone to sleep when it's idle, which means you're not using as much of that precious juice from your battery. It sounds simple (and it is) but there are a few things to know.
You won't have to do anything to use the new Doze feature. There are no switches or settings you need to toggle, and once you've updated to Marshmallow it just works. That is, when it's supposed to work.
And that's the thing. You won't see any benefit from Doze while your phone is in your pocket and you're working or at school. Things need to be idle, and that means really idle.
For Doze to kick in, your phone needs to be sitting still with the screen off, and not connected to a charger. That means no moving around and nudging the gyro or other motion sensors, no touching the screen or the buttons and no waving your hand around in front of it if you're using a phone like the new phones from Motorola that have motion detection on the front bezel. Set it down, and leave it alone.
After a while, everything goes to sleep. Well, almost everything. You'll still get notified when "high-priority" apps need your attention. That means things like phone calls or SMS messages can get through (and thus waking up your dozing phone) as well as any app that declares itself as high-priority. Other things, like email notifications or Clash of Clans telling you your gold mine has leveled up aren't going to come in and wake your phone up.
And yes, this sounds like there is potential for abuse by developers who want to declare their app as high-priority. But Google has thought of this, and has a pretty good way to curtail any devious developers — high-priority notifications that aren't part of your carrier network (calls and texts) have to come through a Google Cloud Messaging server. When they find someone abusing the system, and subsequently keeping your phone from dozing as intended, they can take action. We assume this means those notifications can no longer come through as high-prioity, but we also hope there is tar and feathers involved.
Sent from my Lenovo A7010a48 using XDA-Developers mobile app
I also noticed the feature right at the bottom of accessibility?
Celi911 said:
I also noticed the feature right at the bottom of accessibility?
Click to expand...
Click to collapse
Friends no idea what are you talking about. But in Android marshmallow there have a hidden settings for doze but we can't get it or saw in any settings . it's automatically loading when our device standby clearly ( running no sensors, running no media players,) a idle means correct ideal phone stayed in a table. So the option will automatically make other programs deep sleep excluding our priority setted application
Sent from my Lenovo A7010a48 using XDA-Developers mobile app
I'm sorry for necro-posting, but it's for future generations.
I believe you guys have installed this third-party app, named "Doze" (which is, of course, unrelated to the real Doze, implemented in the Android framework).
It provides an accessibility service, which then appears in the Accessibility settings. I'd say it's a bit unfortunate that it's not made clear that it comes from a third-party app. Of course, the service being named simply "Doze", same as an Android feature, doesn't help.
For maximum googlability, here's how the service describes itself when clicked in Settings:
Enabling Doze accessibility service helps aggressive mode work better.
You may receive warning of potential privacy risks. Please rest assured as it is a regular warning when you enable any accessibility service.
Doze does NOT collect your private information ever and forever.
Click to expand...
Click to collapse
Whether you trust the developer or not is up to you.

GPS/Location lost when screen is off??

Hi!
I used to have no problems with this situation on any of my previous phones:
In apps that uses gps, like runkeeper, i get very fast gps lock.. but, then, once I disconnect the screen, the "location" seems to be turned off.. The gps track stops counting. When I turn the screen on again to check what is happening, the phone instantly gets gps lock and registers that new spot. Basically what happens is that I will get a track but, instead of having the full track, I only get "straight" lines between the points the gps locked when i turner the screen on to check what was going on..
I have the location in high accuracy..
Any ideas?
Thanks!
I have the Impression there is a different location provider for the new chipset. When i am at places without any gps signals (for example a tunnel) the reported location is moving with the same speed and direction i had before coming into the tunnel. There also a change in my Google location history. When the screen is off it looks like the location is provided by phone cell only. The reported location is more than 300m away from my real location. I have not seen this in the same locations with my older phones. (Edit: All with Oyxgen OS 3.1.2)
I have the same issue as op on 3.1.2, not rooted.
Sent from my ONEPLUS A3000 using Tapatalk
I have this stupid thing also, stupid phone,
The gps loses the fix right after you leave the app that uses it. It doesn't work in the background, I'm gonna have to return my phone sadly.
So does this happen with the newer firmware? Can you put it in the background with the screen on and it run? It seems like a software issue more so than hardware, maybe I'm wrong but who knows..
Sent from my SM-G935T using Tapatalk
obviously a software issue, but they won't fix it since nobody talks about it. If you switch to another app that doesn't use GPS or turn off the screen the phone loses the fix right away.
Still happens with Oxygen OS 3.2.0
Can you give a try launching a nav session in google map. On my lg G2, when I get a fix in google map then turn the screen off, I will loose my fix. But if I launch a turn by turn nav session I will keep my gps fix even if I turn the screen off.
Could this be related to doze hibernating Maps or whatever app /?
Jfxmedia said:
Could this be related to doze hibernating Maps or whatever app /?
Click to expand...
Click to collapse
Yes. This is likely related to the aggressive Doze mode that has plagued users in receiving notifications. Try disabling Doze by following the instructions in the link below and try GPS again. If it works, then Doze is the cause.
https://forums.oneplus.net/threads/push-notification-issues.451149/
Mit Hipster said:
Yes. This is likely related to the aggressive Doze mode that has plagued users in receiving notifications. Try disabling Doze by following the instructions in the link below and try GPS again. If it works, then Doze is the cause.
https://forums.oneplus.net/threads/push-notification-issues.451149/
Click to expand...
Click to collapse
Anyone tested this with success?
Turn off power saving mode for using GPS while turn off screen
I have used Strava and it can not be received GPS signal when screen off. Then I turned off power saving mode and it was OK.
Porsche.V said:
Anyone tested this with success?
Click to expand...
Click to collapse
its dose feature that's interfering. I had the same issue. disabling dose does the trick.
dpj52190 said:
its dose feature that's interfering. I had the same issue. disabling dose does the trick.
Click to expand...
Click to collapse
And this is why I make my rom that disables doze all together. It kills battery more then it saves.

I don't think Doze mode is working on my phone...

Hi there,
Please look at the attached screenshot. The red area shows the time I was sleeping. The phone was stationery all night long. It shouldn't decrease like that, right? It should show something more horizontal if Doze is actually working, right? I believe I read something about this somewhere on these forums.
Yes, I do have "WiFi: Always On" enabled. Is that the problem?
My thinking is that I want WiFi always turned on, but I also want Doze. Meaning, if the phone is stationery, not doing anything, it should kick Doze in (which will periodically check for stuff, temporarily turning on/off the WiFi). Is this thinking wrong? If I have "WiFi: Always On" disabled, will Doze work properly and I'll still be notified of any push notifications and whatnot?
What am I missing here?
First off, there are no screenshots. Doze mode is supposed to remove wifi scans and wifi connection regardless if wifi is on. You will get a periodically sync with emails and push notifications( they will be delayed). You will also still recieve sms and mms. How steong is the network connection? Maybe with a weak connection that is what is draining battery.
schmeggy929 said:
First off, there are no screenshots. Doze mode is supposed to remove wifi scans and wifi connection regardless if wifi is on. You will get a periodically sync with emails and push notifications( they will be delayed). You will also still recieve sms and mms. How steong is the network connection? Maybe with a weak connection that is what is draining battery.
Click to expand...
Click to collapse
Sorry, just keep forgetting attachments... Please check the first post again. No, I don't think my connection at home is a weak one. I am connected to a 5GHz network instead of 2.4GHz one. Not sure if that's relevant.
Nazgulled said:
Sorry, just keep forgetting attachments... Please check the first post again. No, I don't think my connection at home is a weak one. I am connected to a 5GHz network instead of 2.4GHz one. Not sure if that's relevant.
Click to expand...
Click to collapse
i think wifi on does prevent from doze and gives wake locks for many... tried by turning off wifi for a night to narrow down the issue?
i might be wrong here but that was afeedback from many users the battery leak/wake locks with wifi always on
SacredDeviL666 said:
i think wifi on does prevent from doze and gives wake locks for many... tried by turning off wifi for a night to narrow down the issue?
Click to expand...
Click to collapse
Not yet, I'll have to try that... However, it doesn't make much sense to me to have it off. I mean, if it's off, even in the doze open windows, wifi will be off, and I won't get any notifications at all unless I turn the screen on. Not a very good user experience. But I'll test it nonetheless to narrow down possible issues.
You may be suffering from the bug discussed here: http://forum.xda-developers.com/htc-10/how-to/wifi-constant-suspend-resume-leading-to-t3392562
At the last page is a kernel that has a fix that seems to be working.
Try out GSam Battery Monitor for some stats.
tkoreaper said:
You may be suffering from the bug discussed here: http://forum.xda-developers.com/htc-10/how-to/wifi-constant-suspend-resume-leading-to-t3392562
At the last page is a kernel that has a fix that seems to be working.
Click to expand...
Click to collapse
Based on your post these seem are most likely the same issue. I just flashed the fix from that thread and it helped TONS. It is still being tweaked before it goes to elementalx officially, but it is working great for me so far!
Yeah, it might be that issue, or not, I'm not really sure. But I used the GSam Battery Monitor app suggested above and I don't think the problem is Doze.
I used that app and start monitoring just before I went to sleep. I've also used ForceDoze just to be sure Doze kicks in (this app will force Doze immediately on screen off instead of just stationery and waiting 30mins). Look at the screenshots. Something is not right, my phone doesn't deep sleep, it's awake all the time.
schmeggy929 said:
..... Doze mode is supposed to remove wifi scans and wifi connection regardless if wifi is on. You will get a periodically sync with emails and push notifications( they will be delayed). You will also still recieve sms and mms.
Click to expand...
Click to collapse
What? Doze is supposed to remove wifi Scans?
If you take a look at the blue "WiFi Scan" line you see the same pause between intervals before doze kicks in as while doze is active.
Doze Mode hasn't really helped me getting less Wakelocks or less battery drain on this device. I just get the feeling there are way to many system/kernel related wakelocks due to HTC's crappy software which ignore doze mode
Oh yeah, the Wifi signal strength was really bad there.... simply because the phone decided NOT to switch to the stronger Network with the same SSID.... well thank you android....
I've used Greenify (which has a notification for Doze mode statistics) and other battery stats apps and I've realized that Doze is in fact working... So, my battery problems are something else.
I just don't get that flat battery graph when doze mode is active, but it must be due to something else...
Thanks everyone that pitched in Save​
Nazgulled said:
I've used Greenify (which has a notification for Doze mode statistics) and other battery stats apps and I've realized that Doze is in fact working... So, my battery problems are something else.
I just don't get that flat battery graph when doze mode is active, but it must be due to something else...
Thanks everyone that pitched in Save​
Click to expand...
Click to collapse
To me it look as though a rouge app could be the culprit.
Have you tried a removing all apps, or doing a clean flash of whatever ROM your on, and if not rooted, an RUU flash and then see if the phone works as should, then this sucks, but you install apps 1 but 1 until you find out which on is the bad apple.
Your phone is def being held awake though by that Gsam battery chart.
I haven't done that and I'm not going to. I don't have time for debugging this issue like that, I need a working phone with the apps I use.
Not trying to sound rude or anything, I know you're just trying to help and I appreciate that. But I just can't do what you're suggesting.
Anyway, shouldn't some battery app help with that. I'm now using BetterBatteryStats. If there's a rogue app, that should allow me to pinpoint the sucker...

Categories

Resources