I've my Nexus 5 randomly rebooting, going into a boot loop because the power button was stuck for more than a couple of weeks. After much research and setup, just thought I would do a quick video on the combination of apps I use to lock/unlock my Nexus 5 using proximity sensor, motion and screen-off button on notification panel. Basically to minimize the power button usage as much as possible before I get my next phone.
Blog post - http://www.richxiong.com/2014/10/work...
Gravity Screen - https://play.google.com/store/apps/de...
Screen off and lock - https://play.google.com/store/apps/de...