i have a nexus 5 with lolipop v6 in it, for the last day, i've been struggling with the power button, as it acts awkwardly causing the entire phone to crash and restart itself.
Sometimes it fulfills its purpose and locks and unlocks the screen, and sometimes it would appear as the lock mechanism has crashed: it would lock, and then immediately return to the main page(a quick transition from black screen to main menu screen), sometimes it would engage the "power off" menu, as if i pressed the power button for couple of seconds.
Steps i've taken to try and fix the issue:
- I've removed suspecious programs
- Engaged the safe mode
- Reset device factory settings
none of those helped, saying that, each power button press does something, so i'd not say it's a "hardware" issue