You know how iPhone has a standby mode when when you Lock the phone, it will go to sleep. Is it possible to develop and app similar to this but it won't put it to sleep, it will only turn off the display?

The reason of this app is, my iphone has hardware damage (most likely due to water), so everytime it goes to Stand By Mode, it just starts rebooting endlessly.