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,

]]>

11 Commentsto Is there any way to set display timeout when screen is locked (say 10secs) and a different longer time when it is…

  1. Anonymous says:

    < ![CDATA[

    Can you post your Tasker profiles?

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Display Off (setting shorter time for the next time it lights up):





    1447085480893


    1447085886304


    43


    38


    DispOff



    210





    1426788704061


    1441110417577


    38


    ScreenOffTimeLocked


    100



    812







    ]]>

  3. Anonymous says:

    < ![CDATA[

    Display Unlocked (when I want to restore longer time: 23secs):




    1447085502639


    true


    1447085933991


    44


    35


    DispUnlocked



    1000





    1426788704061


    1441201897702


    35


    ScreenOffTime


    100



    812







    ]]>

  4. Anonymous says:

    < ![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!

    ]]>

  5. Anonymous says:

    < ![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 …

    ]]>

  6. Anonymous says:

    < ![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 ! 

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Any ‘tutorial’ pointer on how to do this kind of things?

    ]]>

  8. Anonymous says:

    < ![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()

    ]]>

  9. Anonymous says:

    < ![CDATA[

    So the strategy would be to add this script to the unlocking of LL, right?


    Thanks a lot!

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Yes exactly!

    ]]>

  11. Anonymous says:

    < ![CDATA[

    I (sadly) admit my total noobiness 🙁 could you please point me to how to do this (youtube, etc)?


    Thanks again for your help!

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *