That's not very easy when the feature isn't built in your phone. There are different ways to lock or put your phone to sleep without using the power button, but waking up is not so straightforward. Most reports say that those apps will use a lot of battery. You could try a different solution. Take a look here.