I had the same problem. Nothing really helped until I simply removed the button from the board with a soldering iron.
Removing the button is pretty easy, follow any tutorial to reach the power button on the board, then heat up the area and gently pull the button out. Watch out not to overheat the close by components as you might damage them.
Replacing the button is possible, but these buttons are TINY You need a good (hot) soldering iron, flux, and preferably low-temp solder for removing the button properly (And/or a hot-air supply of some sort, if you have one). So this is a bit beyond basic soldering skills.
Anyway, when I removed the button on my phone one of the soldering pads came out with it, so I just left the phone without a button.
You can reboot the phone without the power button using fastboot by:
1. Pressing volume-down when connecting the micro-USB to the computer
2. Using the fastboot.exe tool from the Android SDK ('fastboot.exe reboot')
Then install an app like "Volume Power" which unlocks the Nexus when you press the volume buttons.
https://play.google.com/store/apps/detai...
Good luck!
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
0
crwdns2944067:021crwdne2944067:0
http://protyposis.net/blog/replacing-the...
Done some research, only way to fix it completely is to replace the power button, the link is to a guide to replace it. I personally went to a repair shop and have them do it for me. Smacking the button does seems to work short-term but you risk further damage to other component.
crwdns2934271:0crwdnd2934271:0 Siu Ting Chan crwdne2934271:0
oh thank you this is done and my phone is back to normal.
crwdns2934271:0crwdnd2934271:0 piretesyog crwdne2934271:0
how much the cost for replacement?
crwdns2934271:0crwdnd2934271:0 Zulhilmi Saleeh crwdne2934271:0
Same problem but my phone is not switching on. Its showing Google logo then again turning off. Is it just the problem of power button or is it mother not working properly?
crwdns2934271:0crwdnd2934271:0 Omer Farooq crwdne2934271:0
The power button is getting stuck, whats worked for me on at least 4 occasions of this happening, is taking your nexus 5 and hitting it on a blunt surface (corner would be best or pole) directly on the power button, this should dislodge the power button and fix the issue, has worked for me more than once.
crwdns2934271:0crwdnd2934271:0 jay crwdne2934271:0
crwdns2934275:016crwdne2934275:0