Related
How do a widget what will be enable and disable tasker? Or how with widget to enable or disable profile what i have in tasker?
I'm searching the same question. If I find anything, I'll report back.
To disable, sure. But if it's disabled of course, any widget created to enable it would never run....Because Tasker is disabled.
Sent from my iPhone using Tapatalk
Just an idea:
Theoretically you can enable Tasker by:
- automatic tapping: record the keystrokes/taps and than have it done for you when you use the widget.
- or by first killing Tasker to disable it, than when you need, run Tasker again.
For that to work, you can use Tasker to create an app with a widget, this way that function does not depend on Tasker running or not.
I do hope that with coming updates, there will eventually be a way to do this officially from Tasker.
alienyd said:
For that to work, you can use Tasker to create an app with a widget, this way that function does not depend on Tasker running or not.
Click to expand...
Click to collapse
That's a good idea.
Sent from my iPhone using Tapatalk
Create a new task (not profile) and set a variable to 1 for on and 0 for off. Use a variable name that makes sense. Add a condition to the profile that requires the new variable to be set to 1. Assign an icon to the task (button in bottom right corner of task window) and then go to the home screen and add a new widget. Scroll down to tasker in the widget list and point it to your new task. The task simply changes the variable to its opposite value when it runs. You can also set the name of the widget and change the on screen icons with tasker actions.
So you tried AOD (Always On Display) on your favorite Port ROM, you like it but you don't use it anymore because of battery issue.
A way to avoid this would be, like application bases AOD do, to enable this feature only if the phone is on charge. Unfortunatly, this settings is not available. I found a way (somewhere, by somebody else, all credit to him) using Tasker to do it:
Once you have Tasker and Secure Settings (paid apps, but in my opinion, really worth it if you like customizing your device), open Tasker and do the following :
1. On the Tasks tab, create a new task called for example ‘AOD On’
2. In that new task, add an action (Category = Plugin, then Secure Settings)
3. Edit the configuration in the new screen and select Actions => Device Setting
4. In that screen, the Setting Table should stay at ‘system’, and the Setting Name should be ‘aod_mode’. The Setting Value should be set to ’1′.
5. Save the task and create another task with the same steps but call it ‘AOD Off’ and set the Setting Value to ’0′.
6. Once both tasks have been created, go to the Profiles Tab and create a new profile and select ‘State’.
7. Select state category => Power => Power
8. Leave Source as Any, and Invert unchecked.
9. Save the profile, choose the correct task (‘AOD On’), call it ‘Charging’ for example
10. Create a second profile called ‘Not Charging’ exactly the same way but with the ‘Invert’ of step 8 checked, and select the task ‘AOD Off’.
UPDATE : Solution No2 (+ disable AOD when battery is low)
1. Download this app (paid),
2. Don't forget to select the features you want to enable,
3. Thanks @erghetto in post #2 !
4. Voila !
Both solutions works fine on my S8 port. AOD becomes useful again !!!
Or simply use this:
https://play.google.com/store/apps/details?id=com.roei.aodplus
erghetto said:
Or simply use this:
https://play.google.com/store/apps/details?id=com.roei.aodplus
Click to expand...
Click to collapse
Well honestly I tried all app based AOD and it's like lock screen app : more features, nice looking but not so well implemented that stock (security, look and feel, Speed...).
But if you are ok with it...
nmeuret said:
Well honestly I tried all app based AOD and it's like lock screen app : more features, nice looking but not so well implemented that stock (security, look and feel, Speed...).
But if you are ok with it...
Click to expand...
Click to collapse
Maybe you didn't even open that link.
It is an app that simply activates aod only when phone is in charge (plus another feature)
So no need to download tasker or any other app.
It is paid, but also one app you suggests need be payed, so this one is simpler and doesn't require any configuration with tasker or similar
erghetto said:
Maybe you didn't even open that link.
It is an app that simply activates aod only when phone is in charge (plus another feature)
So no need to download tasker or any other app.
It is paid, but also one app you suggests need be payed, so this one is simpler and doesn't require any configuration with tasker or similar
Click to expand...
Click to collapse
Ok, ok, I see, you're right, it's a good alternative. Now it depends if you already use Tasker or not, but for people who don't and don't want to bother with all Tasker settings, that's a nice app I didn't know !
nmeuret said:
Ok, ok, I see, you're right, it's a good alternative. Now it depends if you already use Tasker or not, but for people who don't and don't want to bother with all Tasker settings, that's a nice app I didn't know !
Click to expand...
Click to collapse
Happy of having helped ^^
And thanks also to you, because you however provided a guide which i'm sure is interesting for many users
macrodroid is better
How launch app when screen is off and security lock? (I want the radio to wake me up) I try: 1. Secure settings --> Configuration:Screen & Keyboard Light On (10sek) 2. Wait 1sek 3. Show Scene --> Name: Popup ,Display As: Activity 4. launch App: "(in my case is "eskaGO" This task try launch this app but can't launch to the end. When Task is end nothing happened. But when I manually unlock screen and see what app work in background I see this app. It's look like this task try launche app but can't launch it to the end.
I try too with AutoLunch but is this same.
Can anybody help??
Can you use Smartlock to prevent your device from locking at home?
lauralbaby said:
Can you use Smartlock to prevent your device from locking at home?
Click to expand...
Click to collapse
This not solves the problem. I don't need this only in home. I a lot travelling.
I try with secureTask plugin with off and on keyguard but this disable all securelock.
Well it sounds like the app just can't launch over the keyguard, so the task can't complete till the phone is unlocked. If you're comfortable with it, you can change the timeout (time it takes for the lock to be activated) to a really high number before you go to sleep, then after the app wakes you up, have it changed back to normal.
Thanks for solution but this not solve the problem. In Your idea every day before I go to sleep (when I activate alarm) I should count how many time screen should be unlock. I not everyday wake on this same time or it's time when I stay 1-2 weeks in this same place and wake up every day in this same time.
Every time when I set alarm I must count and set unlock screen Is not good idea.
Maybe somone else have Idea how to launch it?
gonzolex said:
Thanks for solution but this not solve the problem. In Your idea every day before I go to sleep (when I activate alarm) I should count how many time screen should be unlock. I not everyday wake on this same time or it's time when I stay 1-2 weeks in this same place and wake up every day in this same time.
Every time when I set alarm I must count and set unlock screen Is not good idea.
Maybe somone else have Idea how to launch it?
Click to expand...
Click to collapse
which counting are you talking about? I think he meant setting the grace time of lock screen to something like 7*24 hours, that way even if screen is off, you don't really engage the lock.
This could be a security drawback and might affect your Moto display/Samsung Always screen on function if you have them.
OK maybe I something wrong understand.
Maybe You can write how I should configure this task? It will be very helpful to me
Now in task profile I set time to start and end my alarm task.
alienyd said:
which counting are you talking about? I think he meant setting the grace time of lock screen to something like 7*24 hours, that way even if screen is off, you don't really engage the lock.
This could be a security drawback and might affect your Moto display/Samsung Always screen on function if you have them.
Click to expand...
Click to collapse
lauralbaby said:
Well it sounds like the app just can't launch over the keyguard, so the task can't complete till the phone is unlocked. If you're comfortable with it, you can change the timeout (time it takes for the lock to be activated) to a really high number before you go to sleep, then after the app wakes you up, have it changed back to normal.
Click to expand...
Click to collapse
Can You help me understand this and write how should look like this task?
gonzolex said:
OK maybe I something wrong understand.
Maybe You can write how I should configure this task? It will be very helpful to me
Now in task profile I set time to start and end my alarm task.
Click to expand...
Click to collapse
When the screen is turned off, it takes time to activate the keyguard/lock. Usually it's set to 1 second or less, so as soon as the display is off, the lockscreen is on. This can be changed (and in fact this is what Smart Lock does) so it won't activate as fast. Smart lock won't work in your conditions, so we can use Tasker plugins.
You need to get the plugin Secure Task if you are not rooted, Secure Settings if you are. Secure Task needs permissions granted in ADB, but the Help will explain the process.
Once you have it working, you can add the "secure settings" action for lockscreen timeout (see screenshots, it may be called something different on your device.)
There's a read action as well as write, you should read the initial value before changing it, save it, and restore it after the alarm goes off.
(In the Secure Settings plugin it's called Device Settings but other than that similar.)
Thanks for this
Now I undarstand that:
I have other profile where is task what will launch my app and where I set time to start this profile.
If I want that profile work - app launch correctly - I must before I go sleep launch other task (this what You wrote) what don't secure lock my screen.
Right? Did I understood correctly?
Yes, if you have a sleep profile, or if not, set it to activate at 2230 or whenever your bedtime is. The task will simply be Secure Task - secure settings - Read secure lockscreen_timeout (or whatever your device shows), so you can have a global variable of the typical timeout. Then Write secure lockscreen_timeout 99999999, as I posted in the screen shots.
And then have your wake up task activate at 7 or whenever, and then redo the lock timeout to the saved variable.
Ok,
But for example:
1. If I set this task to start 23:30 but since 23:10 i will not touch my phone this not work because screen still wil be secure lock ?
2. If I set this task to start earlier for ex. 21:00. On this time my phone is not protect if some one stole it and any one who get my phone will be have full access. Not always in this same time I will in the home.
Idea to solve my problem is good maybe someone else will need it.
For me is not good
It's not solve my problem
Maybe somone else have any idea how I can launch app when screen is secure lock
+ wifi condition
+ cell location
alienyd said:
+ wifi condition
+ cell location
Click to expand...
Click to collapse
yes, yes
+ anti theft application
I don't know what happened because to March everything working in my phone. In March I musted do factory reset and launch app in secure screen stoped working ;/
Earlier I use to tasker autoinput plugin and was working , now it write that autoinput can't unlock screen :|
So maybe something was changed/app had update and to launch app in secure screen now is other plugin
hmm that's weird. You must have done/changed something. I don't think any app, especially Tasker has changed anything since then.
alienyd said:
hmm that's weird. You must have done/changed something. I don't think any app, especially Tasker has changed anything since then.
Click to expand...
Click to collapse
I know that that is weird. But I don't know what happened because I done nothing special. Just made a task and profile and that was working. Earlier when I changed Rom and restore task everthing work good. Now stop working and I dont know why :|
Better... When this stop working I had try allone and try searching solution.
I made task like this:
1. Secure Settings - Configuration: Screen & Keyboard Light 10sek
2. Status Bar Set Expanded
3. Launch App: eskaGO
4. Wait 10 sek
5. Autoinput Action - Configuration Type: Text Value: Tasker
6. Autoinput Global Action - Configuration Action: Home
And this WORKED! it worked but every second time. Exactly the second time.
Because I thinked that is problem with my phone I made factory reset one more time and this it stopped working completely.
So I don't want belive that so powerful app like Tasker where is so much plugin and a lot of people who very good know this aplication that no one find solution for this.
Sorry I still don't understand your explanation...
If I have it right, you are trying to make an alarm clock out of the radio app.
Here is what I did to implement this idea:
trigger:
- display off
task:
launch app: notepad
alert: beep
result:
as soon as the screen turns off, I heard the beep. When I turned on the screen, I saw notepad app in the foreground.
requirement:
you will need to add something to trigger this during screen off. That extra condition should not turn on the screen. If it does, you should re-consider this whole condition.
The fact that notepad is running in foreground after unlocking means that the task was carried out as intended. If you can run the radio app, the playing should be turned on automatically the moment the app starts, or error you will have radio app running without actually doing anything.
if all these fail, please post a screenshot of your profile, task and log.
good luck!
How about using Appcloner for this? You clone the app and give it the capability to run on to of the lock screen. That's it. Good luck.
jdelcaribe said:
How about using Appcloner for this? You clone the app and give it the capability to run on to of the lock screen. That's it. Good luck.
Click to expand...
Click to collapse
I will try It
Can You tell me where in this app is this setting?
gonzolex said:
I will try It
Can You tell me where in this app is this setting?
Click to expand...
Click to collapse
Sure. Under display options, then choose " show app on lock screen".
Hello, I've just started to learn to use tasker and I can't set the task I'd like.
The idea is the same as this tutorial:
https://forum.xda-developers.com/lg-g6/how-to/alwaysondisplay-aod-substitue-missing-t3698336
So when you receive a notificacion of the selected apps, AOD turns on, and when you delete the notificacion, AOD turns off. So it wil save a lot of battery compared to AOD always active
I hope some more experienced user can make it work, as I'm totally lost right now.
Thanks!
Anyone, please? Thanks in advance
I manage to make it worked, so where do you want to start ?
sanctitude888 said:
I manage to make it worked, so where do you want to start ?
Click to expand...
Click to collapse
Mainly I don't know how to set the task "turn aod on/off"
Well, all you need is to download the two xml files to your device. I'm using Opera, so I chose download link option, that ended up downloading the xml file. Grant tasker all necessary permissions in 3 dots, more, Android settings. Otherwise, Tasker won't work properly. Tap on 'tasks' tab twice, and select import. Do this for the two attached files. Then create a profile according to guide in given link, choose one or multiple apps at once, when you press back Tasker will ask you associated task, select correct task. Repeat another profile. Toggles both profiles if it has not already, then tap check mark on top of Tasker app. You are then, good to go. I'm not an expert by any mean, just one step from labelled a complete noob, I just love to try new things so in case any further things to clear up just keep this conversation going.
---------- Post added at 02:41 PM ---------- Previous post was at 02:25 PM ----------
There is an app mentioned in the post, which is AOD edge https://play.google.com/store/apps/details?id=com.used.aoe, I also gave it a try and it also worked nicely and beautifully when properly configured. You might wanna give it a try to avoid all the complication. Just remember to scroll all the way down to save your settings. It's free.
sanctitude888 said:
I manage to make it worked, so where do you want to start ?
Click to expand...
Click to collapse
Actually what doesn't work for me is the tasks to turn on AOD. I've followed the steps and they just don't work. I previously had a LG G6 in which it worked flawlessly, and I thought that they need to be adapted to Galaxy note 8 firmware. But since you said it's working for you, I am confused.
Everything on my side is correctly set (permissions and so) but the tasks doesn't work, not even turning them on manually
I'm going to send you screenshots of profiles and tasks later on. In the meantime, try the following :
1. Exclude tasker from battery optimization
2. Turn AOD on, go to lock screen, check if aod works. Then turn it off, it should be off for this profiles to work. Remember aod will disappear if unread notif has been read.
sanctitude888 said:
I'm going to send you screenshots of profiles and tasks later on. In the meantime, try the following :
1. Exclude tasker from battery optimization
2. Turn AOD on, go to lock screen, check if aod works. Then turn it off, it should be off for this profiles to work. Remember aod will disappear if unread notif has been read.
Click to expand...
Click to collapse
The problem seems to be with the task itself, as you can see in this screen recording.
blackhawk_LA said:
The problem seems to be with the task itself, as you can see in this screen recording.
Click to expand...
Click to collapse
To my understanding, the task is basically similar which differentiate by value, '1' for aod_on and '0' for aod_off.
You can find the screenshot of my profile below, with a few chosen apps corresponding to aod task. The two profile seems to be identical visually but they actually cover different event as mentioned in above guide.
sanctitude888 said:
To my understanding, the task is basically similar which differentiate by value, '1' for aod_on and '0' for aod_off.
Click to expand...
Click to collapse
Yes, I knew that. But the task seems to do nothing on Samsung devices. Maybe it needs to be rewritten.
Can you confirm you have a Samsung Galaxy and it's working for you?
Hi,
I have set up the display timeout option with the settings below but it doesn't seem to work. I am using an oppo phone on Android 12.
Create a new task. Select the “+” button. Select “Display” followed by “Display timeout” Select the time span you want to set and then save. Now select “Profile” and click “+” and then “Applications” Mark the applications for which you want to activate this Tasker profile.
Then I open the app but after 15 seconds the screen turns off which is the default device screen timeout.
Is there no way to override this? Maybe get tasker to somehow keep interacting with the screen to keep it on?
I've tried this on a few apps and have got two different messages..
One says screen will stay on for 15 seconds which is the system screen time out.
Other says tasker will keep screen on but still times out after 15 seconds.
Really want this to work as some apps like games I don't want timing out after 15 seconds and I don't want to increase the system time to couple of mins for every app.
Hi,
I have the same problem on my OPPO A74 with Android 11 ((ColorOS Version V11.1). It seems impossible to create a task to change the screen time out; not in connection with a profile, shortcut or widget. The amazing thing, though - when you test the task in Tasker it works perfectly fine.
Media Volume, I think, also doesn't work. Other app connected profiles like autorotate or display brightness work well. I wanted to test more but I can't find the time.
I really miss the screen timeout though. It drains the battery too much to set it constantly to 15 minutes or so, but for some apps less simply is annoying.
The developer created some apk to help with some OPPO related problems, unfortunately, it didn't help with this one (sorry, I can't remember exactly what it was).
A kind of workaround: Once you've activated the Developer Options an your phone you can enable "Keep screen on while charging". When you need longer screen time, just plug into a charger.
But using a Tasker Profile would be much nicer.
Hope somebody knows a better trick.
Not sure if following could help your situation ( only for your gaming situation )
Create a new Profile, choose > apps > add your game apps in it. click left top arrow when finisning add gaming apps.
Tasker will pops-up task list > creat new task > Screen > Turn on.
** when above profile is complete , click the task when you are still in Profile list. Hold the task, it should pops-up with option exit task. Choose this as exit task.
Play around to see if this profile is working when gaming apps in foreground, screen never turn off.
EDIT: Try first not move the task as exit task. ( make the task as normal entry task )
eeeemc said:
Not sure if following could help your situation ( only for your gaming situation )
Create a new Profile, choose > apps > add your game apps in it. click left top arrow when finisning add gaming apps.
Tasker will pops-up task list > creat new task > Screen > Turn on.
** when above profile is complete , click the task when you are still in Profile list. Hold the task, it should pops-up with option exit task. Choose this as exit task.
Play around to see if this profile is working when gaming apps in foreground, screen never turn off.
Click to expand...
Click to collapse
Thanks for your reply.
Creating the profile is not the problem. It just seems that Tasker cannot change the system's setting. As mentioned, there is no problem when you create a profile allowing the screen to rotate using a speciffic app (and others as well ) I have no idea, why it does not work for the screen timeout.
Dreamcatcher0664 said:
Thanks for your reply.
Creating the profile is not the problem. It just seems that Tasker cannot change the system's setting. As mentioned, there is no problem when you create a profile allowing the screen to rotate using a speciffic app (and others as well ) I have no idea, why it does not work for the screen timeout.
Click to expand...
Click to collapse
I use no screen timeout, I use "screen turn on" in your situation as my op., enough I've not tried it on my Samsung A71.
eeeemc said:
I use no screen timeout, I use "screen turn on" in your situation as my op., enough I've not tried it on my Samsung A71.
Click to expand...
Click to collapse
"Display / turn on" works fine when I want the screen to turn on with a notification. But the screen turns dark after the system timeout has passed. I've also tried "Display / Stay On / with Wireless, AC or USB Power" and with the AutoInput Plugin "Screen Off Or On: Turn On / Timeout Never" but the screen always turns dark.
Those Profiles always worked on my other Smartphones (LG -D405, LG-K10 and Moto G6). I believe, it's the ColorOs that's causing the trouble.
Dreamcatcher0664 said:
"Display / turn on" works fine when I want the screen to turn on with a notification. But the screen turns dark after the system timeout has passed. I've also tried "Display / Stay On / with Wireless, AC or USB Power" and with the AutoInput Plugin "Screen Off Or On: Turn On / Timeout Never" but the screen always turns dark.
Those Profiles always worked on my other Smartphones (LG -D405, LG-K10 and Moto G6). I believe, it's the ColorOs that's causing the trouble.
Click to expand...
Click to collapse
below is a task ONLY FOR ROOTED DEVICE., no harm to try even if your's not root.
New task , run shell command , in the command input
there is a button 'use root' , check that button also.
settings put system screen_off_timeout 200000
** 200000 I'm not sure sure equals to how many second., just give it a try and if you get a longer screen on time from your issue it means it is working.
also, make another separate task, search for 'custom setting'. look up from there I thingk it is in system something about screen timeout.
EDIT: run shell command task suggest you run it manually., than see if it works. if not, restart device to check if it requires a restart in order to accept new timeout settings.
eeeemc said:
below is a task ONLY FOR ROOTED DEVICE., no harm to try even if your's not root.
New task , run shell command , in the command input
there is a button 'use root' , check that button also.
settings put system screen_off_timeout 200000
** 200000 I'm not sure sure equals to how many second., just give it a try and if you get a longer screen on time from your issue it means it is working.
also, make another separate task, search for 'custom setting'. look up from there I thingk it is in system something about screen timeout.
EDIT: run shell command task suggest you run it manually., than see if it works. if not, restart device to check if it requires a restart in order to accept new timeout settings.
Click to expand...
Click to collapse
I feel like I'm in Star Trek - "To boldly go, where no one has gone before" XD
When I try your suggestion, I only receive the message that my device isn't rooted.
Btw, for some tasks it is necessary to enable the Write Secure Setting Permission (f.e. Set Assistant), where xou have to setup ADB on your PC. Would such a procedure be registered by the phone as rooting? Anyway, I don't think I would dare to do something I know so little of.
Another solution I was thinking of, is it possible to create a tasker quick tile/ quick setting to change the system screen timeout.
So instead of having it change for certain apps which isn't working at the moment.
Maybe if we can change it from the system so will be for all apps. You can create two separate quick tiles to toggle between different screen timeout settings.
The newest version of Tasker (6.0.9) comes with Tasky.
Tasky offers the possibility to activate premade profiles. One of them is "Keep Display Awake For Apps". And that one works with my OPPO Phone.
I also tried "Auto-Mute Apps", another profile I couldn't get working. It also works fine.
To switch between Tasker and Tasky you just have to click on the "Three-Dots-Button" in the right top corner. It's not like switching apps but using different user interfaces.
Good luck!
- Sorry to say, but this seems to work for some apps and not for others. But at least sometimes it does work.
Thanks for replying back to this thread to inform me. I tried it and it works for the app I was trying to make it work for which is good! Makes it so much easier now.