I have a Nexus 4, and everything is OK, but I have realised that the power button is not working as well as I want. Sometimes I have to press it twice or push harder, so my question is: could I set up my phone to unlock with a different button, for example with the volume buttons? Is there any solution in case that the power button becomes inoperable?
When the power and back button failed in my rooted LG P500, I used Button savior. This app works without any restriction on rooted devices and with few limitations on unrooted.
This app creates a small overlay on the screen (which is customisable in terms of its size, visibility, position etc.) and pressing this overlay slides a virtual buttons on screen to lock, volume up and down, back, home, search, menu, camera etc.
It was indeed aptly named for as it saved my trip to service centre to shell out money on my phone to replace the keys.
Same problem occurred to my fathers Nexus 4 phone. We tried 3-4 soft best of them is Auto Screen On this soft used Proximity sensor on Left top just tap that sensor once or twice (set in setting).. and go your phone will unlock w/o power btn. actually it also support gravity sensor but may be not compatible with nexus 4.
Also works w/o rooting ..