autoinput to put screen to sleep

Discussion in 'Tasker' started by Derek, Mar 18, 2016.

  1. Derek

    Derek New Member

    Joined:
    Mar 6, 2016
    Messages:
    15
    Likes Received:
    0
    is there a way? the screen timeout function doesnt work the way i want it to. is there a way to have autoinput simulate a 'power button click'?
     
  2. darkamikaze

    darkamikaze New Member

    Joined:
    Mar 2, 2016
    Messages:
    10
    Likes Received:
    1
    You actually just need Tasker to do this as long as you have root.

    Run Shell
    input keyevent 26
    [Check] Use Root
     
  3. Derek

    Derek New Member

    Joined:
    Mar 6, 2016
    Messages:
    15
    Likes Received:
    0
    thanks, but no root
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,339
    Likes Received:
    784
    You don't need root. :) Just use the "System Lock" action
     
    darkamikaze likes this.

Share This Page