Is there any way to set display timeout when screen is locked (say 10secs) and a different longer time when it is…
Is there any way to set display timeout when screen is locked (say 10secs) and a different longer time when it is unlocked?
I’ve tried tasker but it seems to me that it does not detect the unlock …
Thx,
]]>« V12.7B4 (Previous Post)
< ![CDATA[
Can you post your Tasker profiles?
]]>
< ![CDATA[
Display Off (setting shorter time for the next time it lights up):
210
812
]]>
< ![CDATA[
Display Unlocked (when I want to restore longer time: 23secs):
1000
812
]]>
< ![CDATA[
Theses task should work.. You are using LL as screen locker?
Note: to share tasker profils/task you should do Export > Description to clipboard
It is easier to read a description than a xml file!
]]>
< ![CDATA[
yes, I’m using LL (Clean theme) as locker.
Sorry for the xml file: I thought description would not be detailed enough … and did not try it …
]]>
< ![CDATA[
I agree, I have the same kind of tasker system (but more restrictive when screen locked : 5sec max, even if you are touching the screen ^^)
My task starts on Screen On (but still locked), and is disabled with On Screen Unlocked event.
As you say, when I use the LL Screen Locker, the On Screen Unlock event is never triggered…
Pierre Hébert problem here?
A workaround would be to use a script from LL to trigger a tasker task on screen unlocked.. Or even directly change the timeout through the Tasker API !
]]>
< ![CDATA[
Any ‘tutorial’ pointer on how to do this kind of things?
]]>
< ![CDATA[
Hey ! Here is a little working script to change display timeout using Tasker API ! You can change the time on top of the script 😉
=======================
// Change Display Timeout using Tasker from LL
var dispTimeout = {
secs: 42,
mins: 0,
hours: 0,
}
var synchronous = true
var ti = new TaskerIntent()
ti.addAction(ActionCodes.SCREEN_OFF_TIMEOUT)
ti.addArg(dispTimeout.secs)
ti.addArg(dispTimeout.mins)
ti.addArg(dispTimeout.hours)
LL.sendTaskerIntent(ti, synchronous)
Android.makeNewToast(“Display Timeout set to ” + dispTimeout.secs + “s ” + dispTimeout.mins + “m ” + dispTimeout.hours + “h”, true).show()
]]>
< ![CDATA[
So the strategy would be to add this script to the unlocking of LL, right?
Thanks a lot!
]]>
< ![CDATA[
Yes exactly!
]]>
< ![CDATA[
I (sadly) admit my total noobiness 🙁 could you please point me to how to do this (youtube, etc)?
Thanks again for your help!
]]>