Using Tasker to control the AOD setting? - LG G5 Questions & Answers

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

Related

[Q] Disable wake on charge

Every time I plug my phone in via USB or place on an inductive charger, the screen turns on. I never want this to happen. Is there any setting or hack to disable? I blame OCD for not wanting to wait for the screen timeout. I tried using Tasker to set the display timeout to the minimum value of 7s only when on any power source, but it still timed out at the system setting. I have a rooted Droid 4 with the stock ROM, but this applies to any Android phone.
This doesn't seem unreasonable. If you set your phone down to charge, doesn't that mean you're done using it for now? This is difficult to search for, because the same search terms lead me to the "stay awake while charging" threads.
therussman2002 said:
Every time I plug my phone in via USB or place on an inductive charger, the screen turns on. I never want this to happen. Is there any setting or hack to disable? I blame OCD for not wanting to wait for the screen timeout. I tried using Tasker to set the display timeout to the minimum value of 7s only when on any power source, but it still timed out at the system setting. I have a rooted Droid 4 with the stock ROM, but this applies to any Android phone.
This doesn't seem unreasonable. If you set your phone down to charge, doesn't that mean you're done using it for now? This is difficult to search for, because the same search terms lead me to the "stay awake while charging" threads.
Click to expand...
Click to collapse
I'd like to know if there's a solution to this too. I find now that the only time I ever end up pocket dialing is when I take my phone off my charger, THINK i've pressed the power button to go back to sleep but didn't and thus pocket hilarity ensues
I know what u mean but there is defnetly a function where it may be disabled
ive seen it i may guarantee this
the bad thing is i forgot where...
i searched through my stock rom and found nothing so i guess ive seen this in a cyanogenmod rom :/
have a try
Its funny, because I'm trying to do the opposite. I installed my android tablet [novo 7 elf] into my car, and I used to be on a ROM whereby whenever I turn the engine on it would charge the tablet and therefore the screen would turn on. However now I've got a jellybean port this functionality does not work because of the sleep timer which has a max of 30 mins.
Any ideas on how to disable this functionality?
therussman2002 said:
Every time I plug my phone in via USB or place on an inductive charger, the screen turns on. I never want this to happen. Is there any setting or hack to disable? I blame OCD for not wanting to wait for the screen timeout. I tried using Tasker to set the display timeout to the minimum value of 7s only when on any power source, but it still timed out at the system setting. I have a rooted Droid 4 with the stock ROM, but this applies to any Android phone.
This doesn't seem unreasonable. If you set your phone down to charge, doesn't that mean you're done using it for now? This is difficult to search for, because the same search terms lead me to the "stay awake while charging" threads.
Click to expand...
Click to collapse
If you're screen always stays on while charging, then try this:
- goto SETTINGS- Developer options - uncheck "stay awake while charging"
Swyped from my Samsung Galaxy SII
Jokesy said:
If you're screen always stays on while charging, then try this:
- goto SETTINGS- Developer options - uncheck "stay awake while charging"
Swyped from my Samsung Galaxy SII
Click to expand...
Click to collapse
That's not what he's looking for.
The problem is when the screen turns on when you plug it in.
wlmeng11 said:
That's not what he's looking for.
The problem is when the screen turns on when you plug it in.
Click to expand...
Click to collapse
Indeed.
Am looking for the same thing. really hate the fact that when it goes in the charger I continuously have to turn off the device.... not cool.
Hopefully someone comes with a solution.
only thing for now is use Locale and a plugin screen off (.99 cents) which will probably turn off the screen if you plug it in. haven't tried it though.
Maybe the "charging now" notification is what wakes the phone up when it begins charging, and maybe that notification can be removed somehow, but I know nothing of how those are set up in the background.
therussman2002 said:
I tried using Tasker to set the display timeout to the minimum value of 7s only when on any power source, but it still timed out at the system setting.
Click to expand...
Click to collapse
FYI, I tried this again since upgrading to ICS on my Droid 4, and it totally works. I just set up a Tasker profile: When Power=AC or USB, Display Timeout = 7s. It shuts off in 7s when on my inductive charging pad, and the system setting of 1 minute when off the pad.
https://play.google.com/store/apps/details?id=uk.co.bitsimple.android.solarscreenoff
Sadly, it's two dollars, but this seems to be what you're looking for.
Option 1:
Install Xposed or other, I don't remember clearly...
Option 2:
With Tasker
-Power: Any AC
-System Lock
why it isn't possible to disable it without xposed?
know this is an old thread but just curious if there is a way to not have the display turn on when it reaches 100% while charging?
evildog1 said:
why it isn't possible to disable it without xposed?
Click to expand...
Click to collapse
Old thread again but in Nougat, it's Settings/Display/Wake on plug, Disable.
Well now this thread is even older :*)
There is a app named "All My..." it contains no wake on charge. It should be a former xposed app that work on most phones so feel free to try.
Hey download.snoozy charger from play store
xpvuol said:
Option 1:
Install Xposed or other, I don't remember clearly...
Option 2:
With Tasker
-Power: Any AC
-System Lock
Click to expand...
Click to collapse
Option 2 worked for me on current up to date Samsung Note 9. Thank you so much. Tasker is great, I can't wait to see how many other issues I can use to resolve.
thinglowping said:
Option 2 worked for me on current up to date Samsung Note 9. Thank you so much. Tasker is great, I can't wait to see how many other issues I can use to resolve.
Click to expand...
Click to collapse
Nothing is great! This app is Bullxxit.
Option 2:
With Tasker
-Power: Any AC
-System Lock
LOL This settings doesnt exist in the app
2021! Still looking for this.
2022 and it's ongoing. Who would want the screen to turn on when plugged in. On an LG phone you even get an annoying buzz which cannot be disabled even if in silent mode.

How do i make the display not turn off?

From what i know, the max is 10mins?
You're correct, 10 minutes is the maximum. I imagine you could modify a system file in order to hack your way around this, but I'm afraid I don't know which one - also you'd need to be rooted.
You could have smart stay on and keep looking at it, then it wont switch off
No need for root or shady tools.
Install the app 'Keep Screen on' and done
Apps can use the permission to keep your screen on even if they are not in active usage.
I usually set it to "Until I turn it off" so it won't stay on when plugging it into a charger.
Very handy app when keeping it for Skype communications next to the computer.
You can also use Power Widget Lite to create toggles on your homescreen to keep the screen awake.

How to know if aggressive doze is functioning?

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

Does Android Doze work differently on the S9+?

With my Note 4, it would wake up from Android Doze, or simply not enter that state if there was movement of the phone. I felt stupid needing to pick up my phone every 10 min to give it a small shake, but at least it seemed to work. I keep my phone in my pocket when I'm working outside and that always kept the Note 4 from falling into Doze mode. Not so with the S9+. It drops into Doze even in my pocket. Anyway to stop that from happening? Like others here, I feel frustrated needing to activate my screen to find out if there are notifications.
Brokk said:
With my Note 4, it would wake up from Android Doze, or simply not enter that state if there was movement of the phone. I felt stupid needing to pick up my phone every 10 min to give it a small shake, but at least it seemed to work. I keep my phone in my pocket when I'm working outside and that always kept the Note 4 from falling into Doze mode. Not so with the S9+. It drops into Doze even in my pocket. Anyway to stop that from happening? Like others here, I feel frustrated needing to activate my screen to find out if there are notifications.
Click to expand...
Click to collapse
That's not Doze mode. Doze is when Android puts apps to sleep that are in memory not being used. This is done to save battery (and processing time?).
So what is happening here, if I understand, is that your phone display is going blank when you pull it from your pocket?
Scott said:
That's not Doze mode. Doze is when Android puts apps to sleep that are in memory not being used. This is done to save battery (and processing time?).
Click to expand...
Click to collapse
Doze was originally described as putting your phone into a power saving sleep mode after 20 min of "inactivity". The issue that caused me problems back then was not about the apps, but that notifications pushed to the device were queued up by the system until your phone "woke up", then the notifications would come rolling through. This happened at the system level regardless of app.
Perhaps in the latest version of Android they have changed the definition of Doze, but another poster was having a lot of issues with notifications (mostly email) and the culprit was deemed to be Doze.
Scott said:
So what is happening here, if I understand, is that your phone display is going blank when you pull it from your pocket?
Click to expand...
Click to collapse
No. My display is blank (as it should be) when I put it into my pocket, as well as when I pull it out. I always shut the screen off before putting my phone down, or in my pocket.
If I put my phone in my pocket, and 5-10 min later I get a notification, it comes through loud and clear and I pull my phone out and check it. If 20+ min has gone by without me having a reason to turn the screen on, then I stop getting notifications. When I pull it out to check the time or send a message, suddenly the notifications come rolling through.
Again, I was used to this if the Note 4 was put down, but this behavior is new to me if the phone is moving about.
Brokk said:
Doze was originally described as putting your phone into a power saving sleep mode after 20 min of "inactivity". The issue that caused me problems back then was not about the apps, but that notifications pushed to the device were queued up by the system until your phone "woke up", then the notifications would come rolling through. This happened at the system level regardless of app.
Perhaps in the latest version of Android they have changed the definition of Doze, but another poster was having a lot of issues with notifications (mostly email) and the culprit was deemed to be Doze.
No. My display is blank (as it should be) when I put it into my pocket, as well as when I pull it out. I always shut the screen off before putting my phone down, or in my pocket.
If I put my phone in my pocket, and 5-10 min later I get a notification, it comes through loud and clear and I pull my phone out and check it. If 20+ min has gone by without me having a reason to turn the screen on, then I stop getting notifications. When I pull it out to check the time or send a message, suddenly the notifications come rolling through.
Again, I was used to this if the Note 4 was put down, but this behavior is new to me if the phone is moving about.
Click to expand...
Click to collapse
I concur. Same happens to me.
I don't have this issue at all. I have my phone in my pocket most of the day and don't need to "wake" the phone up for notifications. I can leave my phone unattended for hour or 3 and it still receives the notifications without issues. I don't know if I have turned on a setting that mine works different, but I must say that my battery life isn't that great....as if the phone never sleeps/doze at all
termdj said:
I don't have this issue at all. I have my phone in my pocket most of the day and don't need to "wake" the phone up for notifications. I can leave my phone unattended for hour or 3 and it still receives the notifications without issues. I don't know if I have turned on a setting that mine works different, but I must say that my battery life isn't that great....as if the phone never sleeps/doze at all
Click to expand...
Click to collapse
I'm curious. Do you have any of the power saving modes turned on? Do you use "always on display"?
I never use the power save modes. Aod is on from 5 in the morning till 8 at night
termdj said:
I never use the power save modes. Aod is on from 5 in the morning till 8 at night
Click to expand...
Click to collapse
AoD could be keeping your phone awake, preventing Doze. The power saving features talks about putting apps to sleep, so unless you use them, that could also be disabling Doze. I could try changing the power saving settings, though it seems like a shame. I have zero interesting in AoD for multiple reasons, so it's not worth it for me to use that to solve my problems.
Thanks for the information!
Doze changed in Nougat, I believe, so that motion no longer prevented Doze from working. Since most men, at least, carry their phone in their pocket Doze hardly ever kicked in, greatly limiting its power saving capability.
You can exempt specific apps from Doze if you want to get notifications from them even when dozing.
Settings / Apps / 3 dot menu / special access / Optimize battery usage. Select All Apps from the drop down. Turn off the toggle for any apps you don't want to Doze.
Brokk said:
Doze was originally described as putting your phone into a power saving sleep mode after 20 min of "inactivity". The issue that caused me problems back then was not about the apps, but that notifications pushed to the device were queued up by the system until your phone "woke up", then the notifications would come rolling through. This happened at the system level regardless of app.
Perhaps in the latest version of Android they have changed the definition of Doze, but another poster was having a lot of issues with notifications (mostly email) and the culprit was deemed to be Doze.
No. My display is blank (as it should be) when I put it into my pocket, as well as when I pull it out. I always shut the screen off before putting my phone down, or in my pocket.
If I put my phone in my pocket, and 5-10 min later I get a notification, it comes through loud and clear and I pull my phone out and check it. If 20+ min has gone by without me having a reason to turn the screen on, then I stop getting notifications. When I pull it out to check the time or send a message, suddenly the notifications come rolling through.
Again, I was used to this if the Note 4 was put down, but this behavior is new to me if the phone is moving about.
Click to expand...
Click to collapse
Yes, I am confusing Doze with the Samsung power saving options. Blah!
I know the battery life will decrease with aod, but I have noticed that even without aod on my battery drop 2% per hour, so I leave it on...There are days that I can go 1 day and 8 hours before charging, but then my sot is only 2 hours....In general I'm happy with the battery life
meyerweb said:
You can exempt specific apps from Doze if you want to get notifications from them even when dozing.
Settings / Apps / 3 dot menu / special access / Optimize battery usage. Select All Apps from the drop down. Turn off the toggle for any apps you don't want to Doze.
Click to expand...
Click to collapse
Thanks!
It seems oddly redundant needing to do essentially the same thing in two places. One well advertised under the battery settings, and the other one hidden under settings/apps/special access.
Hopefully this will fix my problems. Glad to know there is a work around.
Brokk said:
Thanks!
It seems oddly redundant needing to do essentially the same thing in two places. One well advertised under the battery settings, and the other one hidden under settings/apps/special access.
Hopefully this will fix my problems. Glad to know there is a work around.
Click to expand...
Click to collapse
The two settings really are doing different things. Samsung's (in the battery settings), puts apps to sleep after 3 to 7 days (depending on your settings). The won't wake up again until you use them. Doze (the pretty much hidden option in Apps), lets the apps wake up on their own, when you start using the phone, even if you don't access those particular apps.
I'm not sure why the Doze setup is buried so deep in settings, though. I guess Google (or Samsung?) really doesn't want you interfering with it.
meyerweb said:
The two settings really are doing different things. Samsung's (in the battery settings), puts apps to sleep after 3 to 7 days (depending on your settings). The won't wake up again until you use them.
Click to expand...
Click to collapse
I made a mistake of putting an app to sleep that I use to keep my screen awake. It uses a widget to toggle it on/off, but will shut off along with the screen if you intentionally shut your screen off. After putting that app to sleep, the widget stopped working. I had to go find the actual app, start it, then quickly flip back to my home screen and click on the widget. I couldn't undo my "sleep" action on that app. I changed it to "unmonitored", so that the S9+ would never put it to sleep. I rebooted. I shut off the power saving options. Nothing worked. Everytime I would go to the widget (unless I just started the actual app), it wouldn't react to clicking on the widget.
I finally gave up and uninstalled the app from my phone. Rebooted. Reinstalled it and now it works fine. So I'm not sure I agree with "puts the app to sleep in 3 to 7 days". Maybe 3-7 minutes...
Well, 3 to 7 days is what Samsung says, and the optional range you can set in the app. Don't know what specifically happened with that widget, though.
meyerweb said:
Well, 3 to 7 days is what Samsung says, and the optional range you can set in the app. Don't know what specifically happened with that widget, though.
Click to expand...
Click to collapse
Where is the setting(s) for optimal range? I don't remember specifying that. I thought it was more of an on/off thing. White listed (unmonitored resource consumption) or black listed (never let it run in the background). Then apps in neither list it reports to you and you can force them to sleep or not.
Brokk said:
Where is the setting(s) for optimal range? I don't remember specifying that. I thought it was more of an on/off thing. White listed (unmonitored resource consumption) or black listed (never let it run in the background). Then apps in neither list it reports to you and you can force them to sleep or not.
Click to expand...
Click to collapse
Samsung does bury things....
Settings / Device maintenance, click Battery at the bottom.
Then click the 3 dot menu at the top, and Advanced Settings.
Tap App power monitor (the text, not the toggle).
Tap Put unused apps to sleep (again, the text).
You can set the slider anywhere between 3 days and 7.
I spent several days just wandering through every settings option I could find after I setup the phone. Discovered all kinds of hidden things. Sometimes I can even remember where I saw them.

Tips to For Increasing Battery Life on the Galaxy Note 10

Sooner or later you will find yourself looking to save some battery life. here are a few ways.
5 Tricks to save battery life:
1: Change to a Dark screen or theme: 0:22
2: Put apps to sleep: 1:39
3: Turn-down display resolution and Screen timeout: 3:07
4: Turn off unnecessary features: 4:36
- Wifi
- GPS
- Bluetooth
5: Switch off Vibration and Animations: 5:25
6: Ultimate Battery saver: 7:00
The video shows how to do these if you're not familiar with the settings on the phone. Feel free to add to the list.
If you have anyways of saving battery ( not turning the phone off...) then share it.
Debloating could potentially save some battery. Turning off Wellbeing as well
agreed with other poster, you are crippling the phone with those features disable. Although, I have been testing dark theme and it does help with battery.
I also went into Settings and search for Usage data and disable most app usage data for apps and it gives a performance boost. I also scaled down animation from 1x to 0.5x in dev option.
#8. Do not your phone
I use Nap Time by Francisco Franco which helps especially when you're not using the phone, just need two adb commands to work. Have also debloated quite a bit and not having any troubles with battery life.
For me, an overnight charge gets me through a full day of normal usage, so I don't bother with many power-saving sacrifices. I use AOD and maximum screen resolution, with GPS, BT, & NFC enabled; I don't engage general power-saving, or debloat or disable apps or services. But I do avoid keeping the screen brighter than necessary, I use Night Mode (dark theme), and I enable automatic control of WiFi (turns on when I'm near a network I use, otherwise turns off).
If I'm traveling & sightseeing, constantly using the phone for navigation, photography, and web browsing, and running through a VPN when on WiFi, then the battery only lasts half a day, so I carry a charging brick to supplement it.
I work where I have a lot of free time but no way to charge my phone so haveing a few ways to save battery helps. I do have a battery pack but sometimes I just don't feel like carrying it and a wire.
When you are out of the house and will not be around wifi for a while, turn it off. It constantly searches.
It's not just a couple things... it's many.
Depending on the user and the variant, what works for some will not work for all. Dependencies... know what they are or learn.
If you're still on Pie DO NOT upgrade as it will make optimizing harder.
My SOT on my 10+ is 7-11% @hr 7% for web browsing and 11% for vid streaming. It rarely goes above that... if so I go looking for the cause.
Google play Services is disabled unless I need it running.
Wifi, always disabled.
Bluetooth as needed.
Manual brightness and syncing except for text.
All power management is disabled except fast charging is toggle off. CPU/display power mode set to optimize.
Google Backup Transport and Framework always disabled.
All cloud crap and carrier, Google, app, Samsung feedback disabled.
Google Firebase, Assistant and Quick Search always disabled.
All emergency services junk disabled.
As much of Knox as possible.
All MS crap.
All AT&T junk except texting.
Much of the Samsung bloatware is package blocked but some Samsung apks are useful.
Package Disabler and Karma Firewall lock it down along with a custom settings configuration. About 86 packages are always disabled with about 7 that are toggled on/off with the PD MDM widget.

Categories

Resources