You can use a wakelock to turn on the screen but to turn it off will require system app access using the system keys to build your app.
Loads of stuff here about what you are trying to do but the system app is the only real way.
https://stackoverflow.com/questions/956 ... mmatically