Turn off screen on boot How can I have my device automatically turn off its screen after booting?


booting as in having turned off the device, finished charging and turning it back on
turn off screen as in the function after single-pressing power button


At night, I turn off my device to charge it overnight. In the morning, I turn it on. Since the boot process takes a long time, I usually leave it on the counter for it to &nbsp; s l o w l y &nbsp; boot up. During this time, I get ready for my morning (which takes longer than for the device to boot). Taking the device with me to manually turn off the screen once it is finished booting is not good enough for me.

Short of building my own app that runs itself once on boot or having it turn off the screen after n seconds of inactivity, how can I have my device automatically turn off its screen after booting?

The device in question is not rooted, but answers requiring root privileges are acceptable
(I plan on rooting the device... eventually...)
For this, I suggest you use an app called Tasker with this app, - among other things - you can set it that when you are not using any app, the screen should timeout after x amount of time, but while you are using an app, it will time out at a different amount if time.


download Tasker. (it is a paid app, but it has so much to it that it's worth the money)
Open the app and press on the '+' symbol on the bottom right of the screen. And press 'application'
Now select the apps in which you want the display to stay on for a long time. For example your ebooks app, or any other app. Select as many apps as you want for this action.
Press on the back button on your phone. Now it will ask you what you want to happen when you open those apps. 
Press on 'new tasks' 
Type a name for this task something like 'screen timeout 5 min' 
In this new window, press on the plus symbol, and in the search bar type 'display timeout' 
Press 'display timeout', and now under where it  says 'mins' choose the amount of time you want the screen to stay on for, while using the apps.
Press on the back button twice, and you should be brought back to the main page.
Long press on 'screen timeout 5 min' (or whatever you named this task) and press on 'add exit task' -> 'new task' 
Give the new task a name something like 'screen timeout x seconds.' 
Here, do the same as steps 7 and 8 just when setting the time, set it to the amount of time you want the screen to stay on while you're not using the selected apps.
Now, go back all the way to the main screen of Tasker and press on the check mark symbol on the top right. (If you don't see a check mark symbol, then don't worry about it, just doing this step)
Test to see that all is working by going to your home screen and see how long it takes for the screen to go to 'sleep' it should be the amount of time selected in step 12, then go into the selected apps and see how long the screen stays on.