I was having issues with the home button not working, and the power button not locking the device. Eventually figured out it was happening when the device was hot.
And then I figured out it was getting hot because of the case I had bought. Removed the case, and it went away.