Related
"Aggressive Doze" is one of the new experimental features exclusive for Android 6.0 Marshmallow. The best part is that it works on non-rooted device!
Once enabled in settings, your device will enter Doze Mode in minutes (instead of hours stationary normally) after the screen goes off if not charging, to improve its power-saving efforts.
Doze mode is a new power saving mechanism introduced in Android 6.0. In this mode, background behaviors of all apps (except white-listed ones) are strictly prohibited, until next user interaction or charging. The device will also periodically (in hours) exit doze mode briefly.
This is not the complete solution for a better Doze, currently it still cannot keep your device rest in doze if you are carrying it around. It is expected to maximize the power-saving effect of the stock Doze mode. (UPDATE: This "interruption by motion" behavior can be completely prevented in the newest version 2.9 beta, see FAQ.1 for details) Also it may break some background functionality of your daily apps if they are not developed with Android Doze in mind.
FAQ
When I'm moving around, the Aggressive Doze is not working?
Android system uses a low power "Significant Motion Sensor" to track movement and exits Doze Mode if significant movement is detected. Aggressive Doze will not try to enter Doze after that, to avoid constantly entering and exiting Doze. Since the stock Doze is designed for battery-saving in stationary state, Android still wants to keep your apps in sync with fresh state if you are carrying it around.
In the new version 2.9 beta, this "interruption by motion" behavior can be prevented completely if "DUMP" permission is granted manually via USB-connected computer.
Click to expand...
Click to collapse
Why is my device very lagging when wake from sleep after a few hours.
This seems like a bad consequence of Android Doze Mode itself if too many apps are installed. Because Doze Mode effectively postpone all the background behaviors during the doze. The longer doze lasts, the more tasks to do when exiting. Consider greenifying more background-itchy apps to reduce the lag, because hibernation is still the essential solution for them.
Click to expand...
Click to collapse
Aggressive Doze is not working sometimes, but again working later.
Check whether there's a alarm clock in less than an hour, by looking for an alarm icon in the status bar. But the icon won't tell you the time of the alarm. You may click the DND tile in the quick launch panel to find out the actual time of the alarm (in the entry with "until next alarm"). This is because Android system refuses to enter doze mode if an scheduled alarm is in less than an hour.
Click to expand...
Click to collapse
Why I can't find this option in settings? My device is on Android 6.0.
Aggressive Doze in Greenify v2.8 should work on all devices with Android 6+, unless the Doze Mode is explicitly disabled by the ROM. If you are using a custom ROM made by community, ask the
ROM modder to enable this flag in the ROM:
Code:
com.android.internal.R.bool.config_enableAutoPowerModes
UPDATE: Since 2.9 beta 1, even if doze is disabled in ROM, Greenify can still activate doze mode after DUMP permission is granted manually via USB-connected computer. Beware, this may break things since the ROM is not made to be compatible with Doze.
Click to expand...
Click to collapse
oasisfeng said:
Within the new version 2.8 beta (rolling out), there's an early attempt for better Doze mode in control. It currently activate doze mode as early as the screen goes off, and deactivate it when the screen is back on or the charger is connected.
It is surely not the complete solution for a better Doze mode. It is expected to maximize the power-saving effect of Doze mode, but may also break some background functionality of your apps. So I'm listening to all your feedback and opinions, to build a smarter and finer-tweaked Doze mode in Android 6.0.
Together with the "Shallow Hibernation" released in version 2.7, let's start a new adventure of Greenify with Android Marshmallow.
Click to expand...
Click to collapse
Thanks buddy! Lets start again
Hi Oasis, I tried to perform the steps you gave but I am getting the following error
/system/bin/sh: grant: not found
this happens when I try to run the first command to grant DUMP permissions. My Nexus 5 is not rooted and ADB is running and fully up to date.
Edit: for anyone experiencing this issue try the following
1. After checking "adb devices" run "adb shell"
2. Type "pm grant com.oasisfeng.greenfiy android.permission.DUMP"
3. Type "pm grant com.oasisfeng.greenify android.permission.READ_LOGS"
Hello,
First of all, i'm happy with the donation version!
With this new feature there's a thing I've noticed right away. Apparently doze works with all the apps, including whatsapp, which is the app i use the most.
When doze it's activated messages arrive in intervals and it's not that reliable. Anyways, when doze activates by itself, i'm ok with the messages getting delayed, because i'm actually not using the phone. The thing with the integration through greenify, is that messages stop arriving right away.
Do you think there could be a way to kind of "bypass" certain applications? If it's possible it would work like stamina mode from Sony.
Anyways, it's just a comment... I like the instant doze since doze really helps with battery!
blanco2701 said:
Hello,
First of all, i'm happy with the donation version!
With this new feature there's a thing I've noticed right away. Apparently doze works with all the apps, including whatsapp, which is the app i use the most.
When doze it's activated messages arrive in intervals and it's not that reliable. Anyways, when doze activates by itself, i'm ok with the messages getting delayed, because i'm actually not using the phone. The thing with the integration through greenify, is that messages stop arriving right away.
Do you think there could be a way to kind of "bypass" certain applications? If it's possible it would work like stamina mode from Sony.
Anyways, it's just a comment... I like the instant doze since doze really helps with battery!
Click to expand...
Click to collapse
+1
In the developer preview of 6.0 you could exclude apps from being doze'd. Such an option would be great in Greenify as well, since messages don't wake up the phone with activated aggressive doze
shakuyi said:
Hi Oasis, I tried to perform the steps you gave but I am getting the following error
/system/bin/sh: grant: not found
this happens when I try to run the first command to grant DUMP permissions. My Nexus 5 is not rooted and ADB is running and fully up to date.
Edit: for anyone experiencing this issue try the following
1. After checking "adb devices" run "adb shell"
2. Type "pm grant com.oasisfeng.greenfiy android.permission.DUMP"
3. Type "pm grant com.oasisfeng.greenify android.permission.READ_LOGS"
Click to expand...
Click to collapse
Sorry for the typo, I just corrected it in the online guide. Thanks for the report.
blanco2701 said:
Hello,
First of all, i'm happy with the donation version!
With this new feature there's a thing I've noticed right away. Apparently doze works with all the apps, including whatsapp, which is the app i use the most.
When doze it's activated messages arrive in intervals and it's not that reliable. Anyways, when doze activates by itself, i'm ok with the messages getting delayed, because i'm actually not using the phone. The thing with the integration through greenify, is that messages stop arriving right away.
Do you think there could be a way to kind of "bypass" certain applications? If it's possible it would work like stamina mode from Sony.
Anyways, it's just a comment... I like the instant doze since doze really helps with battery!
Click to expand...
Click to collapse
If WhatsApp uses GCM for instant message push, then maybe the developer has not yet adopted for the priority GCM push which goes through in the Doze mode. This is what Google suggests all IM message to use.
I'll try to work around this issue, maybe allow all GCM push to exit doze mode for a while.
MrMarques01 said:
+1
In the developer preview of 6.0 you could exclude apps from being doze'd. Such an option would be great in Greenify as well, since messages don't wake up the phone with activated aggressive doze
Click to expand...
Click to collapse
You can still do that in Android 6.0 final version, but highly discouraged.
Today I got Greenify 2.8 beta 1, but still my apps aren't greenified.
Edit: I reinstalled Greenify and su asked me for permission, now it works, thank you.
Best regards
Matthias
If we are rooted does it still require the one-time procedure or can we just install as normal?
oasisfeng said:
Within the new version 2.8 beta (rolling out), there's an early attempt for better Doze mode in control. It currently activate doze mode as early as the screen goes off, and deactivate it when the screen is back on or the charger is connected.
The best part of this feature - NO ROOT REQUIRED! Still you need to perform a one-time procedure with USB-cable and a connected computer, which is surely familiar to many of you XDA members.
This is not the complete solution for a better Doze mode. It is expected to maximize the power-saving effect of Doze mode, but may also break some background functionality of your apps. So I'm listening to all your feedback and opinions, to build a smarter and finer-tweaked Doze mode in Android 6.0.
Together with the "Shallow Hibernation" released in version 2.7, let's start a new adventure of Greenify with Android Marshmallow.
Click to expand...
Click to collapse
Oasisfeng, what's the normal amount of time before doze activates? Would it perhaps be better to have an option to set the amount of minutes after screen off to start the aggresive Doze?
I just test greenify beta, and battery seems like always for now... Tomorrow I'll see better how new greenify works...
No root really ? It would be useful
@oasisfeng
mine is rooted but still the Doze feature is not activated.
Is it only for 6.0 devices?
atulclassic said:
@oasisfeng
mine is rooted but still the Doze feature is not activated.
Is it only for 6.0 devices?
Click to expand...
Click to collapse
Yes.
atulclassic said:
@oasisfeng
mine is rooted but still the Doze feature is not activated.
Is it only for 6.0 devices?
Click to expand...
Click to collapse
*Clears throat* "Aggressive Doze" is a new experimental feature for Android 6.0
Smultie said:
Oasisfeng, what's the normal amount of time before doze activates? Would it perhaps be better to have an option to set the amount of minutes after screen off to start the aggresive Doze?
Click to expand...
Click to collapse
I‘m thinking about the same thing.It'd be great to have an option to set the time to start the doze mode. It'd be so damn perfect!
Do applications which are set to bypass Doze still work?
randy6644 said:
I‘m thinking about the same time. It'd be great to have an option to set the time to start the doze mode. It'd be so damn perfect!
Click to expand...
Click to collapse
Great minds think alike!
Smultie said:
Oasisfeng, what's the normal amount of time before doze activates? Would it perhaps be better to have an option to set the amount of minutes after screen off to start the aggresive Doze?
Click to expand...
Click to collapse
Currently zero. I'm planning for a smarter delay before doze (probably the same as the delay before greenified apps hibernate). But for now, I'd like to push the benefit to the limit for a test run and find the actual drawback of 0 delay.
Dear all,
Does anyone here know how to use Tasker app to auto enable and disable the always on display (AOD) setting in a specific time?
I noticed that enabling AOD consumes lot of battery, the battery drained 15-20% when my phone was idle overnight from 12am-7am. After I turn off the AOD, the battery drains only 5% overnight.
I'm thinking to use Tasker to disable the AOD when I'm sleeping to reserve the battery, and turn it back on after 8am. Unfortunately I couldn't find anything in the Tasker app that allows me to do so. But I'm able to do this to my previous Samsung Galaxy s7 edge. Maybe I missed out something when I tried to do that for my LG G5?
Is there anything in the Secure Settings app that might help with this? Worth investigating - haven't rooted yet (just whilst I'm getting used to phone and working out pros and cons) so can't check for you.
For what it's worth I just turn phone over which switches off AOD, easy to turn back to check time in dark...
Yeah I didn't notice that my AOD would turn off when I turned it over till later and thought that was a smart implementation for it. Seems very intuitive.
I'll revive this thread, as I'm looking for a tasker solution too. Is there any way I can disable the AOD via Tasker? I've a H850, stock nougat, rooted.
Try this method:
https://www.reddit.com/r/GalaxyS7/comments/4knout/always_on_screen_only_while_charging/
But replace "aod_mode" to "enable_ext_display_on_lcd_off"
I may be a bit late to the party, but you really don't need the paid version of secure settings app to toggle this setting on Samsung. Just run the following shell commands from tasker (make sure you check the "use root" box):
To enable:
Code:
settings put system aod_mode 1
To disable:
Code:
settings put system aod_mode 0
If I've understood correctly there's no need to hibernate anything in order to user aggressive doze. So I don't use hibernation at all, but instead would like to user aggressive doze.
I'm rooted and have checked the on-the-go mode. I have also enabled the notification.
But there's no doze notification after the screen has been off for few minutes. How do I know if it is dozing or not?
thanks
tofu said:
If I've understood correctly there's no need to hibernate anything in order to user aggressive doze. So I don't use hibernation at all, but instead would like to user aggressive doze.
I'm rooted and have checked the on-the-go mode. I have also enabled the notification.
But there's no doze notification after the screen has been off for few minutes. How do I know if it is dozing or not?
thanks
Click to expand...
Click to collapse
I use Automagic (same idea as Tasker, but I find it much easier to understand and use). It has a trigger for when the phone enters doze mode (and another for when it exits). I can use these triggers to perform conditional actions like enable/disable Bluetooth/WiFi etc., or, say, make a sound, send a message to my Pebble watch, etc. In my case (unrooted phone) I have it make sounds. Using Automagic to do this kind of stuff does not seem to mess up the phone going into/coming out of doze mode.
You can also enable a Greenify notification that shows when the phone goes in/out of aggressive doze...
WibblyW said:
I use Automagic (same idea as Tasker, but I find it much easier to understand and use). It has a trigger for when the phone enters doze mode (and another for when it exits). I can use these triggers to perform conditional actions like enable/disable Bluetooth/WiFi etc., or, say, make a sound, send a message to my Pebble watch, etc. In my case (unrooted phone) I have it make sounds. Using Automagic to do this kind of stuff does not seem to mess up the phone going into/coming out of doze mode.
You can also enable a Greenify notification that shows when the phone goes in/out of aggressive doze...
Click to expand...
Click to collapse
Thanks. It seems that it works now. I just needed to wait for a longer time.
Just remember that doze is not a full replacement for hybernation. It may prevent wakelocks but bad apps can still run background processes loading CPU and consuming battery when phone periodically wakes up from doze as well as every time you are using your phone.
Sent from my OnePlus 2 using Tapatalk
I have a pocophone on global MIUI 9, and whenever a notification is supposed to pop up while my phone is asleep, it doesn't. It shows up when I turn the screen on instead. The app I'm testing with is IFTTT.
I've already disabled MIUI optimizations, disabled battery optimization for that app, allowed all permissions, allowed autoboot, and turned on all notification options. Still happens.
Any way to fix or do I just have to wait for custom roms to fix Xiaomi's mess of a notification system? Anyone know if MIUI 10 fixes it?
Go to lock screen and password, check wake lock screen for notifications. That should resolve this
[email protected] said:
Go to lock screen and password, check wake lock screen for notifications. That should resolve this
Click to expand...
Click to collapse
It's already on.
I don't mean that the notifications show up but don't wake the screen, I mean that they don't show up at ALL until I wake it myself, like the app is frozen.
Have you put an aggressive battery management setting in place? Or is the battery saver mode on? That might delay syncs
For me turning off non interactive mode in battery settings did the job. Since I disabled it all notifications are popping up as they should.
Bakugo said:
I have a pocophone on global MIUI 9, and whenever a notification is supposed to pop up while my phone is asleep, it doesn't. It shows up when I turn the screen on instead. The app I'm testing with is IFTTT.
I've already disabled MIUI optimizations, disabled battery optimization for that app, allowed all permissions, allowed autoboot, and turned on all notification options. Still happens.
Any way to fix or do I just have to wait for custom roms to fix Xiaomi's mess of a notification system? Anyone know if MIUI 10 fixes it?
Click to expand...
Click to collapse
Sorry for reviving a dead q&a thread. Its actually xiaomi fault. Got 3 of them device and all reacted the same way. No way you can fix it either with custom roms nor kernel. The only way to fix this is to install SOD killer and let it run. Youll get your notification instantly.
sauhirt said:
For me turning off non interactive mode in battery settings did the job. Since I disabled it all notifications are popping up as they should.
Click to expand...
Click to collapse
Ahhh!!! This had been driving me crazy! Sometimes I'd be alerted to a new SMS; other times the phone wouldn't beep/vibrate, flash the LED or produce a notification.
I've just disabled this setting:
Settings -> Battery & performance -> Scenes -> Non-interactive mode
Non-interactive mode
Don't light up screen for notifications, turn off
LED light, fingerprint sensor, and touch controls
to save battery when MIUI detects you aren't
using your device.
Click to expand...
Click to collapse
Hopefully that will fix the problem...
esuhl said:
Ahhh!!! This had been driving me crazy! Sometimes I'd be alerted to a new SMS; other times the phone wouldn't beep/vibrate, flash the LED or produce a notification.
I've just disabled this setting:
Settings -> Battery & performance -> Scenes -> Non-interactive mode
Hopefully that will fix the problem...
Click to expand...
Click to collapse
Did it fix the problem for you? It didn't for me.... I have this issue with Gmail notifications and nothing seems to solve it. I'm on MIUI 11 Android 10 from Xiaomi.eu, and the worst thing is that it didn't happen on Android 9... So things went wrong for me after the update.. Any idead, anyone?
i started having the same issue with miui 10 onwards and never with miui 9 or non-miui custom roms.
Has anyone tried the Adaptive Notifications function from Developer Options in Android 10? Does it change anything/fix the MIUI notifications management?
krzylew said:
Did it fix the problem for you? It didn't for me.... I have this issue with Gmail notifications and nothing seems to solve it. I'm on MIUI 11 Android 10 from Xiaomi.eu, and the worst thing is that it didn't happen on Android 9... So things went wrong for me after the update.. Any idead, anyone?
Click to expand...
Click to collapse
Yes -- it seems to have fixed the problem. I don't use GMail, though.
Actually, I've missed a few alert sounds (far far fewer than before). I'm not sure if it's just that I didn't notice, or if leaving the app open and the screen on (sometimes?) prevents the alert sound...? Probably just me!
---------- Post added at 07:15 PM ---------- Previous post was at 07:02 PM ----------
krzylew said:
Has anyone tried the Adaptive Notifications function from Developer Options in Android 10? Does it change anything/fix the MIUI notifications management?
Click to expand...
Click to collapse
I can't see that setting in the MIUI 10 developer options. I've searched around, but I don't think it exists in MIUI...
Good for you man! It seems to have helped a little bit for me as well, especially with messenger notifications, but the Gmail ones are still delayed
I think I can live with it for now.
Adaptive notifications have been introduced in Android 10 so you need that and MIUI 11 apparently.
Good night from Spain! Hope you are having a good quarentine (who has it).
These days I was trying to dive in Tasker a bit and I did 2 modules that I will attach in files. All of them are FULLY CUSTOMIZABLE once you saved in your Tasker profiles repository:
1.- Shake the phone to open/close torch
2.- Activate autorotate in Youtube, Maps, Google Photos and GCam. Deactivate when leave the apps
3.- Night with no data/wifi connexion + when display off
4.- Display off goes to 2G data
5.- Maybe the king... All 120hz except Youtube, Maps, Camera, some games... to 60hz
Sorry, most of you couldn't enter to see the tasks in tasknet, so I've posted as attached files
I just get an error when trying to import the 120Hz -> 60Hz one.. :silly:
stiffis said:
I just get an error when trying to import the 120Hz -> 60Hz one.. :silly:
Click to expand...
Click to collapse
Uop... idk man. Did you copied the .XML to Profiles folder¿?
uriii13 said:
Uop... idk man. Did you copied the .XML to Profiles folder¿?
Click to expand...
Click to collapse
Yes, ofc ?
stiffis said:
Yes, ofc
Click to expand...
Click to collapse
So weird! I'm reuploading it...
uriii13 said:
So weird! I'm reuploading it...
Click to expand...
Click to collapse
Thanks, can't wait to test it out ?
uriii13 said:
So weird! I'm reuploading it...
Click to expand...
Click to collapse
Still doesn't work.. ?
stiffis said:
Still doesn't work..
Click to expand...
Click to collapse
1st: Try to resee if you have every optimization battery unabled and every step disabled that Tasker says you have to disable (everything related to the battery in your phone, etc.)
2nd: if these is correct, look at my task try to make it by your own; I've heard sometimes Tasker can 'crash' some profiles if you have copied it.
uriii13 said:
1st: Try to resee if you have every optimization battery unabled and every step disabled that Tasker says you have to disable (everything related to the battery in your phone, etc.)
2nd: if these is correct, look at my task try to make it by your own; I've heard sometimes Tasker can 'crash' some profiles if you have copied it.
Click to expand...
Click to collapse
1. Battery optimization is disabled
2. How do I do that?
Weird how importing your other shared tasks worked fine, like the shake to activate torch
stiffis said:
1. Battery optimization is disabled
2. How do I do that?
Weird how importing your other shared tasks worked fine, like the shake to activate torch
Click to expand...
Click to collapse
PM
Display off turns to 2G.
It means whenever the display turns off cellular will switch from 4G to 2G?
And which apps do i download? All?
stiffis said:
Still doesn't work.. ?
Click to expand...
Click to collapse
I have tested out the torch profile. It works. The only downside I feel is that it doesn't work when phone screen is off. Anyway to enable even when the screen is off?
HermesHidayat said:
Display off turns to 2G.
It means whenever the display turns off cellular will switch from 4G to 2G?
And which apps do i download? All?
Click to expand...
Click to collapse
Just Tasker, the 1st and yes, it's changing from 4g to 2g when your screen is off, and viceversa. I tryied to apply with an action called "device idle" but is more strict than the normal Deep sleep, so it's not working a lot. Now we should check if our battery increases slightly or not, because I don't know if changing between 2g-4g is wasting baterry too.
nipun03 said:
I have tested out the torch profile. It works. The only downside I feel is that it doesn't work when phone screen is off. Anyway to enable even when the screen is off?
Click to expand...
Click to collapse
Yes! Just configure the monitoring files. Tasker reminds you each X to do it. You have to allow tasker to be completely full on background. If it doesn't work, just uninstall and reinstall Tasker and allow everything again (Powermaster autostart, not closing apps, no battery optimization, etc.). It worked for me when I had probs in the past
i like this
uriii13 said:
Good night from Spain! Hope you are having a good quarentine (who has it).
These days I was trying to dive in Tasker a bit and I did 2 modules that I will attach in files. All of them are FULLY CUSTOMIZABLE once you saved in your Tasker profiles repository:
1.- Shake the phone to open/close torch
2.- Activate autorotate in Youtube, Maps, Google Photos and GCam. Deactivate when leave the apps
3.- Night with no data/wifi connexion + when display off
4.- Display off goes to 2G data
5.- Maybe the king... All 120hz except Youtube, Maps, Camera, some games... to 60hz
Click to expand...
Click to collapse
Please, can someone automate this in "Tasker" for me (script etc, or make an auto start apk, this solve VoLTE problem definitely)? Thanks!
1. Command *#*#3642623344#*#* in phone keyboard
2. Disable VoLTE
3. Enable VoLTE
MelquiXDA said:
Please, can someone automate this in "Tasker" for me (script etc, or make an auto start apk, this solve VoLTE problem definitely)? Thanks!
1. Command *#*#3642623344#*#* in phone keyboard
2. Disable VoLTE
3. Enable VoLTE
Click to expand...
Click to collapse
Sorry, I'm not using tasker now.