Doze? - Nexus 6P Q&A, Help & Troubleshooting
Is there a way to modify Doze to enable it to work when the phone is unused in your pocket? Seems like a flaw that it only works while sitting flat on a desk.
check out naptime
https://play.google.com/store/apps/details?id=com.franco.doze&hl=en
I wouldn't say it's a flaw when the device detects movement. It goes into deep hibernation while in Doze, so all those sensors get a rest.
Does anyone know if this app will break android pay?
steveo17 said:
check out naptime
https://play.google.com/store/apps/details?id=com.franco.doze&hl=en
Click to expand...
Click to collapse
Naptime breaks the Play Store for a lot of us. You can't download a new app until you re-boot the phone. Hoping that gets fixed soon.
Try the aggressive Doze on greenify
Sent from my Nexus 6P using Tapatalk
jejb said:
Naptime breaks the Play Store for a lot of us. You can't download a new app until you re-boot the phone. Hoping that gets fixed soon.
Click to expand...
Click to collapse
You could run naptime without the aggressive Doze feature and tweak the settings manually. I think if you set sensing timeout and motion inactive timeout to 0, it shouldn't trigger the sensors.
Just to let you guys know that turning off the sensors completely isn't possible yet.
I've done multiple tests with the logcat and verified this. Using agressive doze on naptime or greenify will cause the device to go straight into doze BUT, if you move your phone significantly (in a pocket etc) it will leave doze and go back to sensing and locating.
Don't believe me? Try it yourself, use aggressive doze, put it on a table send yourself an email or Whatsapp, it shouldn't come through, the pick up your phone and move It a bit, without turning on the screen. Your notifications will come through, meaning you're out if doze.
Therfore, if you are someone who moves around a lot, this can actually be worse for your battery.
My advice? Decrease the times on the timers, but don't put them at 0 ( they still fire anyway) I've set my inactive time to about 15 mins instead of 30
If you're someone who moves bunch, don't use aggressive doze at the moment.
Sent from my Nexus 6P using Tapatalk
italia0101 said:
Just to let you guys know that turning off the sensors completely isn't possible yet.
I've done multiple tests with the logcat and verified this. Using agressive doze on naptime or greenify will cause the device to go straight into doze BUT, if you move your phone significantly (in a pocket etc) it will leave doze and go back to sensing and locating.
Don't believe me? Try it yourself, use aggressive doze, put it on a table send yourself an email or Whatsapp, it shouldn't come through, the pick up your phone and move It a bit, without turning on the screen. Your notifications will come through, meaning you're out if doze.
Therfore, if you are someone who moves around a lot, this can actually be worse for your battery.
My advice? Decrease the times on the timers, but don't put them at 0 ( they still fire anyway) I've set my inactive time to about 15 mins instead of 30
If you're someone who moves bunch, don't use aggressive doze at the moment.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
I knew Doze breaks with significant motion, but didn't realize leaving it in the pocket counts as significant motion.
Following this post http://forum.xda-developers.com/showpost.php?p=63962529&postcount=700, I think we should be able to leave the sensing and locating timeouts to 0 but set the motion inactive timeout to something high.This way if the phone breaks Doze (moving in your pocket or whatever) it won't try to enter Doze immediately again. However, if you're not moving, it will enter Doze quickly.
Vishal90 said:
I knew Doze breaks with significant motion, but didn't realize leaving it in the pocket counts as significant motion.
Following this post http://forum.xda-developers.com/showpost.php?p=63962529&postcount=700, I think we should be able to leave the sensing and locating timeouts to 0 but set the motion inactive timeout to something high.This way if the phone breaks Doze (moving in your pocket or whatever) it won't try to enter Doze immediately again. However, if you're not moving, it will enter Doze quickly.
Click to expand...
Click to collapse
Not a bad idea actually.
Sent from my Nexus 6P using Tapatalk
Vishal90 said:
I knew Doze breaks with significant motion, but didn't realize leaving it in the pocket counts as significant motion.
Following this post http://forum.xda-developers.com/showpost.php?p=63962529&postcount=700, I think we should be able to leave the sensing and locating timeouts to 0 but set the motion inactive timeout to something high.This way if the phone breaks Doze (moving in your pocket or whatever) it won't try to enter Doze immediately again. However, if you're not moving, it will enter Doze quickly.
Click to expand...
Click to collapse
Thanks for the input, but a little confused. Just above, you recommended setting motion inactive timeout to 0, but here you say to leave it a high number and set locating timeout to 0. Sensing timeout to zero in both cases. Is the change in settings from considering italia0101's input?
What do you recommend for the motion inactive timeout?
jejb said:
Thanks for the input, but a little confused. Just above, you recommended setting motion inactive timeout to 0, but here you say to leave it a high number and set locating timeout to 0. Sensing timeout to zero in both cases. Is the change in settings from considering italia0101's input?
What do you recommend for the motion inactive timeout?
Click to expand...
Click to collapse
Yeah it is. Doze uses two motion triggers, the normal motion sensor and the significant motion sensor. Before, I had just assumed significant motion meant something more drastic than leaving it in your pocket, but as italia0101 pointed out even that triggers the significant motion detector. This means that because of the way Google implemented Doze, you can't get it to Doze while your phone is in your pocket. So the best you can do is get it to Doze as soon as possible. The only problem is that if Doze breaks, your phone will instantly try to Doze again, and it will break again, killing your battery. The link I posted should help you understand how Doze works and might help you set out own values. With that said, I keep sensing and locating timeouts to 0, and motion inactive to something higher. Right now I'm trying 900s (15 mins) for that value. This way after screen off and the inactive timeout, it will not waste any time on motion sensing. And if Doze breaks (by being in your pocket) from the significant motion sensor, it will wait for the motion inactive timeout setting before attempting to Doze again. This, to my understanding, should prevent your phone from instantly trying to Doze in your pocket of Doze breaks. Therefore it should prevent your motion sensor from being on too much, saving you some battery if you're walking around a lot.
Thanks for the explanation. I did look at your link, and learned a lot.
I wish there was a way to disconnect the link between movement and the phone coming out of Doze. I'd like it to go into Doze pretty much immediately after shutting the screen off and not wake until I unlock/turn the screen on again. Still want text and phone calls to come through, though. That's one thing I noticed about the iPhone 6S+ I had for 2 weeks. It was excellent about not using battery if the phone was not on. It'd lose like 5-10% all day if I carried it around and only got a call or two and a few texts. I don't want that phone back, at least not with iOS, but I'd sure like to see that kind of battery life.
Related
focus not sleeping properly
My phone is not sleeping itself down after the time elapses.anyone else noticing this, its making me think its draining my battery.
Just tested this myself, and on a one minute sleep timer, my phone did properly go to sleep.
Mine sleeps fine too.
mine sleeps fine as well. Do you have any particular app running? For example, if you have AT&T Navigator running it will not sleep. There are a few other apps that provide the ability to prevent it from sleeping. So, are you on the main screen or in an app when it doesn't sleep?
Cannot say I've had this problem. Worked at its default of 1 min, and still works after I changed to 3.
I am trying to id the app if any that is causing it but with no task manager its impossible. I do notice an issue with the camera app. If the camera button gets pressed then the phone will stay on and not sleep, for me at least. It goes off on it's own mostly...thanks for the reports as I work through this. I may need a hard reset anyway, hey why not Ill add a microSD at that time.
Windows Phone 7: how to reset the idle detection countdown
Windows Phone 7 like every other phone OS turns off the screen after a period of inactivity. This is not a problem most of the time because any user activity (namely finger interactions on the screen) resets the countdown, so if you are using an application the screen saver will not get in the way. However there are some particular cases where it is useful to disable the idle detection, for example in games or apps that require long reading (or watching). In that case you can completely disable idle detection: PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; Keep in mind that this disables the “screen saver” at all, so be careful because you could drain the poor user’s battery if you do it without valid reason. There is another more interesting case, though: suppose your app uses the accelerometer as its main user input. In this case there won’t be any user activity to trigger a countdown reset, but disabling it at all also doesn’t look like the best idea.
Large amount of Audioout_2 and Audioout_3 wakelocks
So I get these wakelocks for some reason, about 2-10 minutes of Audioout_2 and Audioout_3 per hour when idle, with screen off. And they seem to show up as wakelocks, even if I have my phone active. So I get like 47minutes of this wakelock, but awake time is 56:27minutes and screen on 54 minutes. And this is not the problem until you see how much of this wakelock has kept your phone awake after 24 hours, I had like 3-5 hours. Should I be worried? APP - Wakelock Detector, BetterBatteryStats. What I have tried - Uninstalling Viber, no difference. Disabling all lock sounds, touch sounds, dial pad tones, not much difference either. I didn't have this before, what could it be? Android 4.3 Stock, not rooted
I seem to be having the same issue. I'm running on stock 4.3, no rooting, I do not have Viber, and while I do have Skype installed, I almost never use it. I have haptic feedback disabled as well as touch sounds. Rebooting the phone seems to fix the issue, but that's obviously a bit of a pain to do every time. Other than maybe blaming Poweramp for keeping the wakelock going, I can't think of any other apps that could be causing the issue.
apu95 said: I seem to be having the same issue. I'm running on stock 4.3, no rooting, I do not have Viber, and while I do have Skype installed, I almost never use it. I have haptic feedback disabled as well as touch sounds. Rebooting the phone seems to fix the issue, but that's obviously a bit of a pain to do every time. Other than maybe blaming Poweramp for keeping the wakelock going, I can't think of any other apps that could be causing the issue. Click to expand... Click to collapse After you reboot when does the issue seem to come back? What apps are you usually using? Do you have any of these apps - Light Manager, DashClock Widget, Smart Wifi toggler.* *These apps have no deal with audio wakelocks whatsoever, but still, maybe 4.3 has caused one of those apps to use the audio wakelocks somehow.
Yukicore said: After you reboot when does the issue seem to come back? What apps are you usually using? Do you have any of these apps - Light Manager, DashClock Widget, Smart Wifi toggler.* *These apps have no deal with audio wakelocks whatsoever, but still, maybe 4.3 has caused one of those apps to use the audio wakelocks somehow. Click to expand... Click to collapse My main apps are Gmail, Chrome, Facebook, Twitter, BaconReader and Poweramp. After rebooting the length of the wakelock time definitely isn't as long. And yes, I do have DashClock Widget. I didn't consider that one to be a potential culprit.
Yukicore said: So I get these wakelocks for some reason, about 2-10 minutes of Audioout_2 and Audioout_3 per hour when idle, with screen off. And they seem to show up as wakelocks, even if I have my phone active. So I get like 47minutes of this wakelock, but awake time is 56:27minutes and screen on 54 minutes. And this is not the problem until you see how much of this wakelock has kept your phone awake after 24 hours, I had like 3-5 hours. Should I be worried? APP - Wakelock Detector, BetterBatteryStats. What I have tried - Uninstalling Viber, no difference. Disabling all lock sounds, touch sounds, dial pad tones, not much difference either. I didn't have this before, what could it be? Android 4.3 Stock, not rooted Click to expand... Click to collapse I have the same problem. I noticed that audioout_2 only runs when my screen is on.(most of the time) The audioout_2 run time and SOT are always close. The audioout_2 and audioout_3 will not run (very minimum) when your cell goes into deep sleep. I have mostly Google apps installed. Edit: After searching on internet,Many users told these wakelocks can be caused if there is a corrupted mediafile (picture,music,video).. Need a solution for this.
l33ttroll said: I have the same problem. I noticed that audioout_2 only runs when my screen is on.(most of the time) The audioout_2 run time and SOT are always close. The audioout_2 and audioout_3 will not run (very minimum) when your cell goes into deep sleep. I have mostly Google apps installed. Edit: After searching on internet,Many users told these wakelocks can be caused if there is a corrupted mediafile (picture,music,video).. Need a solution for this. Click to expand... Click to collapse What do you mean corrupted mediafile, like unsupported MP3 file? Could that be a problem? God dammit, this is too complicated. I have only a few pictures that I have taken with the phone, no videos. Only music could be related.
So I yesterday turned on location services, the results I got were pretty bad. I am not 100% sure that the issue is location services, but I did not have this bad screen_on - awake ratio before. Here are some screens. I didn't do anything unusual, I might report back tomorrow about results w/o location services.
I left only GPS setting active in location settings. Here are the results. 6hours phone on, Battery left 87%. 55:31min awake, 38min screen on. 1013 wakelock usage 32:12min. I played a few games, made some calls for the time when screen was awake. I would call this a success, because usually I could barely make through a day, almost 3hours screen on in 12hour period. And the battery is dead.
Yukicore said: I left only GPS setting active in location settings. Here are the results. 6hours phone on, Battery left 87%. 55:31min awake, 38min screen on. 1013 wakelock usage 32:12min. I played a few games, made some calls for the time when screen was awake. I would call this a success, because usually I could barely make through a day, almost 3hours screen on in 12hour period. And the battery is dead. Click to expand... Click to collapse What was your solution? So far my current one is to reboot when I wake up in the morning.
apu95 said: What was your solution? So far my current one is to reboot when I wake up in the morning. Click to expand... Click to collapse I disabled Wi-Fi & mobile network location in Location access settings. But I am not entirely sure that this is a solution. I am very confused with all this Android and Nexus 4 problem amount and uncertainty, I am not even sure what to believe anymore. I am starting to wish I had bought an iPhone. Maybe it was because I was at just at home and in a city mainly, and the cellphone just didn't have to look for different cell towers, I am not sure what should I even think anymore. But currently this has helped me, I guess. Disadvantages of this might be that the phone will not be able to select the best server available when indoors... I'm just so tired of Android.
I can't shake off this stupid wakelock, it keeps my phone awake, Android is soo annoying, I would probably never notice this if it weren't for the battery usage apps, but I would notice the horrible battery life on Nexus 4. Has anyone had this problem and made it go away? Or is still having, and just got through with it and ignores it? Please help me! I think I had 0 amount of this wakelock in the first few days I got these battery status apps, I had only a few Media, Caldendar, Gmail etc. wakelocks
The wakelocks are caused by the touch sounds that are enabled by default. Everytime you touch a button on your phone it will make a sound, which will initiate the wakelock. Turn off these sounds in: Settings -> Sound -> Touch Sound You can also 'hear' the wakelock, because when you hold the back speaker of the phone to your ear when a sound was just played, you will hear some static noise for ~2-3 seconds after the sound finished playing. When you listen to music or watching a video you will also get these wakelocks, but that's completely normal. Sent from my Nexus 4 using xda app-developers app
mumaster20 said: The wakelocks are caused by the touch sounds that are enabled by default. Everytime you touch a button on your phone it will make a sound, which will initiate the wakelock. Turn off these sounds in: Settings -> Sound -> Touch Sound You can also 'hear' the wakelock, because when you hold the back speaker of the phone to your ear when a sound was just played, you will hear some static noise for ~2-3 seconds after the sound finished playing. When you listen to music or watching a video you will also get these wakelocks, but that's completely normal. Sent from my Nexus 4 using xda app-developers app Click to expand... Click to collapse +1 to that Even if u have ur dialpad to sound off. Go ahead and type numbers in like crazy then check the wakelocks! Even if u have turned that option to OFF. Sent from my Nexus 4 using XDA Premium 4 mobile app
WasifSal said: +1 to that Even if u have ur dialpad to sound off. Go ahead and type numbers in like crazy then check the wakelocks! Even if u have turned that option to OFF. Sent from my Nexus 4 using XDA Premium 4 mobile app Click to expand... Click to collapse Right, did You have that before? Or it just turned up recently, I don't remember having this much wakelocks, and why are ''wakelocks'' wakelocks when you are using your phone and the screen is on? I noticed that if I don't have internet access, the wakelock doesn't come up as much. It's some kind of app, maybe, it very much could be one of Google's, It ain't Viber (for me), I have tried disabling, turning it off, no change in wakelock amount.
Yukicore said: Right, did You have that before? Or it just turned up recently, I don't remember having this much wakelocks, and why are ''wakelocks'' wakelocks when you are using your phone and the screen is on? I noticed that if I don't have internet access, the wakelock doesn't come up as much. It's some kind of app, maybe, it very much could be one of Google's, It ain't Viber (for me), I have tried disabling, turning it off, no change in wakelock amount. Click to expand... Click to collapse I just checked that now To be honest i'm in the same condition u are in. I don't know whats causing these. Try greenifying Google+, Google Now etc. They have helped me a bit in saving some... Google+ updates/syncs, and that makes a wakelock as well. Sent from my Nexus 4 using XDA Premium 4 mobile app
WasifSal said: I just checked that now To be honest i'm in the same condition u are in. I don't know whats causing these. Try greenifying Google+, Google Now etc. They have helped me a bit in saving some... Google+ updates/syncs, and that makes a wakelock as well. Sent from my Nexus 4 using XDA Premium 4 mobile app Click to expand... Click to collapse I have set syncing and updating google apps to the minimum already. Google Now is not active. Does other android phones like Galaxy S3, S4, HTC One also have this bad battery life, or is it Nexus 4 specific?
apu95 said: What was your solution? So far my current one is to reboot when I wake up in the morning. Click to expand... Click to collapse Do You have Flash Player installed on Your Android device?
This is really weird, I restart the phone, use gmail, and some other apps, turn off screen, check for wake locks, no Audio wake lock at all, I open Chrome, use it a little and then check for wake locks and it has appeared and is at at the top, also other wakelocks have increased count. Also another matter, I notice a little pop in the speakers sometimes, even though I have set to vibrate only mode. EVERY TIME I TOUCH THE SCREEN THE SPEAKER TURNS ON, it is just quietly hissing, you need to be in complete silence to hear this. This is definitely causing a big battery drain, I need to fix this ASAP. Anyone has a clue? Turned off touch sounds, hissing has disappeared. But it literally started hissing after I press anywhere on the screen, even though only a few buttons make a touch sound. Got to stop typing now, my hands are burning when I'm using Google chrome on my nexus 4...
I disabled Google+ Notifications through Google+(app) > Settings > google account > notifications And I turned off all Sounds, from Dial pad touch tones to screen lock sound and vibrate on touch. Now I had tried this before the Google+, but I still had the issue with the wakelock. I get little to none of this wakelock, also turned off google+ backup feature. Disabled some sync options in google account. But basically I get a lot less of this wakelock now, I am not entirely sure it was Google+, but I have been using the phone casually, as usual for 30+ Hours, charged once, and I get better battery life and much less of this wake lock, phone is mostly in sleep mode when screen is off, about 1-4 Minutes awake. Now I don't guarantee anything, maybe it's some service that didn't start up this time, but I'm pretty sure that I had opened every app that I was using when I had the problem, this seems to have fixed the problem, see if it helps, if you are experiencing the same issue, and please let me know, thanks! Oh and I have been using the phone's speaker indeed, for games, Youtube app, Chrome etc. and Received calls, messages, notifications.
Any solution? I'm still having this 1013 wakelock without apparent cause..
Notifications wonky after Pie update
Has anyone else noticed that notifications seem to be super slow in coming after the Pie update? Line and Email can take up to two hours to exhibit a notification. I've looked at the notifications area of the apps, and nothing appears to have changed that I can see, and I can't find anywhere in Pie to tell it to allow more background time for these apps. I've tried force stopping and restarting with no change. If anyone has any idea on what is going on, and how to fix it, your help would be most appreciated. Being told your wife left you a Line message 2 hours after she did so, or that your kid sent an email 2 hours earlier, is NOT conducive to a happy home life.
Nobody else has this issue? It appears to be connected to the fact that the phone is sitting undisturbed for a long period of time. If I am carrying the phone around with me, the notifications seem to come as expected, but if the phone is just sitting on my desk for a while, they seem to come from minutes to hours later.
You could try to whitelist those apps on Battery Optimization I'm no expert, but from what you describe sounds like the phone is entering into Doze and notifications cannot come until the next maintenance window If a user leaves a device unplugged and stationary for a period of time, with the screen off, the device enters Doze mode. In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services. It also prevents apps from accessing the network and defers their jobs, syncs, and standard alarms. Click to expand... Click to collapse https://developer.android.com/training/monitoring-device-state/doze-standby I think white listing the app prevents this behaviour
It does sound like you are correct and the phone is entering Doze mode, delaying the notifications. Thanks for that! I will check into how to add the email and Line app to a whitelist for Doze. Hopefully it's a simple task, but I don't see anything under Battery doing a quick scan.
Just a follow up. After much searching and reading, I finally found where to turn off battery optimization for the two apps I needed notifications from. FYI: Most things on the web say to go to Settings->Battery, then hit the three dot menu and select Battery Optimization. This does not appear on my phone. (see screenshot) To get to the list of optimized apps, you need to Search->Battery Optimization, select Battery Optimization from the results (it will take a few seconds to load), then tap Not Optimized and select All Apps. Find the app you want, tap it, then select Don't Optimize. You can also go to Apps and Notifications->Advanced->Special app access->battery optimization. Whether this will actually fix the problem is another question entirely as most posts say that Doze continues to work. I guess we shall see. I hope this saves someone the aggravation of trying to find something directly relating to Pie. Most things out there are for older builds. Also, I turned off Adaptive Battery to see what the actual difference is in my light usage use case. If you are interested in the results of this test, let me know and I will post here.
Glad you were able to whitelist those apps. I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often) You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended? Thanks and I hope this solves your issue.
Tepig said: Glad you were able to whitelist those apps. I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often) You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended? Thanks and I hope this solves your issue. Click to expand... Click to collapse Unlike some folks, I am not tied to my phone. It often sits on the desk undisturbed for 3 or 4 hours during the day unless a notification comes in and I pick it up to look at it. Most of my screen time is on my computer, so the phone is the external brain when out and about, but not used much otherwise. At night, I turn on airplane mode until I get up the next day, then turn it off. I'm a retired software engineer, so have no real need for constant communication anymore, and I like it that way.
Finally, a working app if you want to keep screen on
Have been looking for a long time for an app that wakes up the screen when I pick up the phone and keeps the screen on for as long as I want, but which turns off the screen when I put the phone away. No app has managed to handle Onplus 6T's aggressive battery optimization (which in itself is otherwise very efficient and good). It never helped even when I disabled battery optimization for those app's (this is necessary anyway) in OP6T's settings. Until I found KinScreen https://play.google.com/store/apps/details?id=com.teqtic.kinscreen&hl=sv . Works perfectly and very reliably. I use the tilt function. As long as i keep the phone in an angle (15-70 degrees) the screen is always on, when I lay the phone at the table the screen turns off within seconds (encl pic with my custom settings). Highly recommended :good:
F5:ed said: Have been looking for a long time for an app that wakes up the screen when I pick up the phone and keeps the screen on for as long as I want, but which turns off the screen when I put the phone away. No app has managed to handle Onplus 6T's aggressive battery optimization (which in itself is otherwise very efficient and good). It never helped even when I disabled battery optimization for those app's (this is necessary anyway) in OP6T's settings. Until I found KinScreen https://play.google.com/store/apps/details?id=com.teqtic.kinscreen&hl=sv . Works perfectly and very reliably. I use the tilt function. As long as i keep the phone in an angle (15-70 degrees) the screen is always on, when I lay the phone at the table the screen turns off within seconds (encl pic with my custom settings). Highly recommended :good: Click to expand... Click to collapse Hey there. The app is good. But it doesn't perform the action you mentioned in the first sentence. It won't wake up the screen when I pick my phone. Or, am I missing a simple checkbox in options?
jonny908 said: Hey there. The app is good. But it doesn't perform the action you mentioned in the first sentence. It won't wake up the screen when I pick my phone. Or, am I missing a simple checkbox in options? Click to expand... Click to collapse Hi, did you copied my settings (pic) and disabled battery optimization for KinScreen in OP6T's settings (that's important) ? Also try a reboot after. I know that when I tried an combo of action in KeinScreen's own setting it seamed to be less reliable. So better stick to a single action I guess. For me, all works every time with these settings. There is a KinScreen-thread at XDA https://forum.xda-developers.com/showthread.php?t=2743082 If you still have problem, contact the developer there, he will probably assist you. Good luck!