How to disable power button - Nexus 5 Q&A, Help & Troubleshooting

yesterday my power button died, but I was able to turn on my N5 somehow. after, I've enabled the double tap to sleep on the statusbar and on the lockscreen and volume buttons now wake the device, but I wasn't able to remap the power button and if I accidentaly press it, I don't know what will happen. So, there's any method to completely disable the power button? I've tried with gravity box but there isn't any option to do this.
someone knows how to disable the power button from the .kl files in system/usr/keylaout?
And then, can I use the volume buttons to turn on the device when it's off or I have to keep it on forever?

Here some stuff you may interest:
Nexus 5 Power Button Broken - Here's what to do
Nexus 5 power button rattle fix....
Good luck

thanks, but I don't know when I can repair it, so anyone knows a solution that temporaly disable the power button?

Related

Turn on the phone from sleep without pressing power button

Ok, the story is, my phone goes to sleep every 30 secs to save battery. And since I'm still very excited about it, I turn it on quite often, just to check . And the only way to turn on from sleep (as far as I know) is pressing the power button. Well, that means that button will be pressed a lot! I'm just worrying that it will soon have problems. It would be much cooler if we can touch some Android button down there, Home button for example, to turn on the phone. Do you know anyway to do that?
PS: I tried to google as well as search through out this forum, but the keywords are pretty common, so it's really hard though.
I wouldn't want the capacitive buttons activating my phone, think of all the butt-dialing
I think Widget Locker allows for any hardware button to wake up the device, so then you'd be able to distribute the fun between your volume rocker and the power button.
Widget locker does allow the use of the volume rocker to wake up the phone.
a short term fix or you might be to got o settings-->Applications-->Development-->Stay awake....
so as long as you are charging the screen will not sleep. dont forget to change the setting back if you walk away for a bit... or go to bed
Thanks guy. I think the volume button is good enough
Rumur said:
Widget locker does allow the use of the volume rocker to wake up the phone.
Click to expand...
Click to collapse
thanks rumur, i going to give widget locker a try.
i hate it must reach for power button to wakeup!
i like "Simply Lockscreen", it also turns on cappy with volume buttons.
give it a try
On a similar note, do you all have any app tips that will allow me to do something special with the volume button while the screen is off (maybe long press or double click, or press both volume buttons at once) that will in turn toggle silent/vibrate on and off?

Nexus S 4g - Disable broken power button?

I've already read through this thread: http://forum.xda-developers.com/showthread.php?t=1596085 and used this thread http://forum.xda-developers.com/show....php?t=1524858 for remapping my search button to my power button, along with using volume for wake. I have done both of these, and that works just fine.
But, my problem is a little different.
My original power button didn't just stop working, it is actually malfunctioning. Meaning that the power button is being hit at random times, even when I don't press it (or the search button which is now my power button). It is extremely annoying and difficult to use the phone.
Does anyone know of a way to disable the power button completely? I'll settle to using search for off and volume buttons for wake, but I need a way to disable the original power button. The button remapper app from the thread above includes a way to remap or disable every button, except the original power button.
Thanks for your help
It says it all in the second link you posted. Read it all.
Sent from my Galaxy Nexus using xda app-developers app
No.
Like I said, I want to DISABLE the power button completely, because it's malfunctioning. I have ALREADY remapped it to the search key, but the original power button keeps pressing itself, turning the screen on and off, bringing up the boot menu, etc.
The button remapper app allows you remap or disable every button EXCEPT the power button. So while you can remap search to be power, you couldn't remap power to be search (or in my case, disable power completely).
Anyone?
You would have to physically disable the button yourself.
I don't think its possible to fully power off your phone, but what you can do is map the volume up or down buttons as a wake key. I myself want to do this and am still searching for the solution, but if you want to take a crack at it:
The file buttons you want to edit should be in here. somewhere(system/user/keylayout) Root explorer can help you edit the layout without changing the format. That's as far as I can take you for now
Sent from THE JUGGERNAUT 5.0 sgh t989
Try open your nexus..using small screwdriver..
Just pinched it..make it seperate with motherboard..
Sent from my GT-I9100 using Tapatalk 2

[Q] power button issue even after remapping

hi friends:
i have an old infuse 4g which has the known power button issue so i remapped the volume_up button as power and power button as volume.
the remapping is working fine and i can see that the volume up button works like power and power button works like volume_up.
but sometimes it still power-off my phone when i touch or press power-button. during this time, i dont see an option to poweroff or reboot but the screen becomes black and i see samsung logo, basically its like somebody pulled the plug.
can somebody explain why is this?
many thanks in advance

How to turn on phone without powerbutton?

The only way I can turn on my Nexus 5 now is using adb and a computer. Is there a way to possibly turn on my phone on the road? Without the use of a computer?
You can remap with the Volume button.
Just double tap screen to wake
I didn't think the N5 had double-tap. My N6 needs an app, and be rooted, to do it.
Turning on the phone from sleep may be possible (double tap, magnetic screen case, remap button) but if it's been completely switched off...? How do you switch it on without a power button? The power button remap sounds feasible (how do you do that, by the way?) but then how do you change the volume?

Flashlight turning on constantly. All gestures turned off.

At least 5 times a day I take my phone out of my pocket and the flashlight is on. I also accidentally turn it on a lot while pressing the power button. 8 have disabled every gesture in the menu, but can't figure out how to disable the flashlight from turning on when I long press the power button.
I'm rooted on the latest update. I'm willing to remove the flashlight completely if that's the only answer, but I was hoping there was a way to remap the power button long press. I've tried a few button remapping apps, but they haven't detected power button long press.
Danksh said:
At least 5 times a day I take my phone out of my pocket and the flashlight is on. I also accidentally turn it on a lot while pressing the power button. 8 have disabled every gesture in the menu, but can't figure out how to disable the flashlight from turning on when I long press the power button.
I'm rooted on the latest update. I'm willing to remove the flashlight completely if that's the only answer, but I was hoping there was a way to remap the power button long press. I've tried a few button remapping apps, but they haven't detected power button long press.
Click to expand...
Click to collapse
Sounds like you may have the active edge magisk module installed? That is not typical behavior for the power button. What rom are you running?
Sent from my Pixel 3a using Tapatalk
Thank you very much jmtjr278. Your reply lead me to the right direction. It was the Dark Tricks Xposed module. I had installed a few modules as soon as I got the phone, but never went through their settings, and completely forgot they were even there. Much appreciated.

Categories

Resources