relocate power button? - Mogul, XV6800 ROM Development

is there a way to relocate the power button? my button is broken and cannot be pressed to wake up device. i have to keep using the microsd card to wake up device. its quite annoying.

if you go to settings/ system/ keylock you can choose to not lock any buttons when the screen is off so any button will wake it up.

thanks!! i didnt realize i could do that. worked perfect.

Related

[Q] Looking for SGS4 App with button mapping functions

Issue: I have a galaxy S4 that has a bad LCD. The LCD itself functions. However when the phone is locked and the screen is off, when I click the power button, the screen doesn't come back on. But if I click the power button again to lock it and click the power button again to unlock it, the screen will come back on after the second time.
So what I'm looking for is an app or mod that will allow me to map either the power button or even double clicking menu button to have the action of clicking the power button 3 times. Any advice? Thanks!

Possible work around for broken/failing power button (at least Verizon, possibly all)

Hello all... long time XDA user, not enough time poster... Ok I had the (now to me) infamous power button issue this past weekend. I was able to get my phone going after beating the bejeezus out of it. With that said, I figured I would keep to using the power button to a minimal dosage. What I have is the following- S4 rooted, with ES File explorer installed with the root option enabled, quick boot, wanam, and mylock. The easiest stuff- I set a quick boot widget for power off and one for reboot (so no power buttons for that), I use mylock for locking the phone, wanam- added screenshot to power menu (among other mods that don't pertain to this), and home button for turning phone on (or Volume button- details coming).
I am going to attach a couple of screenshots too...
With ES File Explorer (going for forward, will be labeled ES) go to Device level / scroll down to system, go to usr, and then keylayout, in there go to Generic.kl. Once in there, scroll down to Key 116. Tap the little pencil in the upper screen of ES. Copy the contents of Key 116 - POWER WAKE (I recommend copying so you have all the spaces needed), delete out the key 114 option (I chose Volume Down) and paste that in there. Now you can leave both at POWER WAKE, or you can change 116 to the VOLUME_DOWN if you want to use the power button to turn down the audio. If you blank it out or add other characters it seems to kill the back button and menu button- SO I RECOMMEND TO HAVE SOMETHING THERE. OK good... so moving on-
Hit the back button and click to save the file.
Next-
in the same level as the Generic file, go to gpio-keys.kl).. Scroll down to Key 114 and replace the VOLUME_DOWN with the POWER WAKE that you should still have on your clipboard. Hit the back button and save text.
Final, you will have to reboot your phone in order for the changes to take effect.
Going forward, if you chose to use the power button for volume down, you will no longer be able able to use the power button while the phone is on for power purposes... it will be a volume down button now. Your volume down button will act like the power, so you can bring up the power menu for shut down/screenshots/etc.
To turn the phone one (if it is off), you have a few options... if the power button still works it will power the phone on (it doesn't matter that you have made this mod, it will not allow the volume down to turn a phone on from power off. If the button is shot shot, you can use the micro usb trick to turn it on ( hold down volume down and power, plug it in, then when download comes on put volume down to restart). Or you can use a jig...
Anyway, I hope this helps someone out. Thank you for checking this out.
https://www.flickr.com/photos/[email protected]/shares/2i5mPz

[QESTION] change power button function

Hello. On every phone, if i hold the powrr button long inought, it will pop up a power menu. But on meizu, there is only 2 options (power off, reatart) and i found app, that have more options (recovery, turn off sounds, etc). So is possible to somehowe stop the menu function and replace it with open app function? I know that it sounds like an idiot idea, but for me it would be great. Thanks for your time and answers.
P.S.: i was thinnking about macrodroid, but it have only power button toggle (3-5 times) but every device i know lock screen after 1 time pushing power button. Sr for my english

Remap power button?

I haven't been able to figure out a way to remap the physical power button. There was an xposed module that worked great long ago, but hasn't been updated to work with oreo. I want to be able to press/long press/double tap/whatever the power key to take me to the home screen. I've used the fingerprint sensor apps, but they're hit or miss at different times, which is more frustrating than not having it. The other button mapper programs seem to work for volume keys only. Rooted/Running LOS ROM
Remapping the power button seems like such a bad idea to me. What happens if you need to reboot?
nola mike said:
I want to be able to press/long press/double tap/whatever the power key to take me to the home screen.
Click to expand...
Click to collapse
Why? What does your "home" button do? On my Nova launcher, home button takes me immediately to home screen and much easier/faster than trying to double tap fingerprint sensor, which currently turns off/on display.
Or long tapping, which currently gives you reboot options.
Remapping power button seems like an answer in search of a problem, which would cause more problems?
ChazzMatt said:
Why? What does your "home" button do? On my Nova launcher, home button takes me immediately to home screen and much easier/faster than trying to double tap fingerprint sensor, which currently turns off/on display.
Or long tapping, which currently gives you reboot options.
Remapping power button seems like an answer in search of a problem, which would cause more problems.
Click to expand...
Click to collapse
Home button takes me to home screen as well, which is usually where I want to go. If I'm holding the phone it's much easier to press a physical button to get back. I rarely reboot, so could do away with that. On my G3, I had all the buttons on the back mapped to pull up assistant, go back, go to home screen using single/double/short/long taps. It was MUCH faster to do that. Anyway, I like it, it existed before, I want to know if I can get it back.
nola mike said:
Home button takes me to home screen as well, which is usually where I want to go. If I'm holding the phone it's much easier to press a physical button to get back. I rarely reboot, so could do away with that. On my G3, I had all the buttons on the back mapped to pull up assistant, go back, go to home screen using single/double/short/long taps. It was MUCH faster to do that. Anyway, I like it, it existed before, I want to know if I can get it back.
Click to expand...
Click to collapse
So found a program called "powy". It can intercept the power button keypress and then trigger tasker. It can't distinguish long v. short press, but you can program power button to trigger by pressing 1x/2x/3x/etc. Not as good as xposed additions (which hasn't been updated since MM), but functional and better than nothing.

[SM-G935] How do I remap my power button?

I want to remap the power button so it toggles NFC when I long press it (only when the screen is on). So far every app I've found is unable to do anything with the power button. I'm using a rooted Lineage OS 18.1.
task_manager said:
I want to remap the power button so it toggles NFC when I long press it (only when the screen is on). So far every app I've found is unable to do anything with the power button. I'm using a rooted Lineage OS 18.1.
Click to expand...
Click to collapse
Try this
Button Mapper: Remap your keys - Apps on Google Play
Remap hardware buttons to launch any app, shortcut or action
play.google.com
Keno_I said:
Try this
Button Mapper: Remap your keys - Apps on Google Play
Remap hardware buttons to launch any app, shortcut or action
play.google.com
Click to expand...
Click to collapse
Thanks, but that app doesn't work either. It says it can't modify the power button on the splash screen.
Would you want any other buttons, power button turns off the display so im not sure about NFC activating?
Keno_I said:
Would you want any other buttons, power button turns off the display so im not sure about NFC activating?
Click to expand...
Click to collapse
Lol, I know it sounds silly, but hear me out.
When you hold the power button the phone shows you a menu with the Power menu and, most importantly, card payment. As I don't want to keep NFC on all the time to avoid battery drain, I had an idea to turn on NFC every time I opened my Google Pay card payment menu (power button hold).
Ahh then you try finding an Xposed module?
You’ll find more chances of success in that way

Categories

Resources