Hi THX for this great idea ! I am on S10 with Pie
6.2. it works from within your app.
1 In tasker the command is only executed when I reenter the tasker action and go into the config/edit screen... after about 1s on the edit screen .. the screen goes dark from the "input keyevent POWER"
2...