I want to use tasker to turn the screen off. Secure Settings > Lock Device
forces me to use pin, which is not what I want, as I use a finger print scanner to wake my device. Shell > Input keyevent 26
does not work either, as I am not rooted (Huawei Mate 9 pro, doesn't seem to have a reliable root yet).
I have tried doing it with System > Send intent
, but that seems to have no effect. I dont know if I am doing it wrong. I have also tried
, with a code like this (and some variants of it), without success:
am start --user 0 -a android.intent.extra.KEY_EVENT --es KEYCODE_POWER ACTION_DOWN
I have also tinkered with
...but with even less success.
Any ideas as how how I can get this to work? Either with terminal emulator or tasker send intent task?