Swap back and recent buttons... - Galaxy S6 General

Goto system/usr/keylayout and then click on generic.kl and use text editor...
change 158 to APP_SWITCH
change 254 to BACK.
save and exit. reboot.
still trying to figure out how to turn off capacitive backlight. i am guessing build.prop?

There's apps for both those mods. Galaxy Button Lights and All in One Gestures.

Mod Edit
Please continue this discussion here:
http://forum.xda-developers.com/gal...nt-buttons-t3126671/post61149819#post61149819
Thread closed
malybru
Forum Moderator

Related

[GUIDE] Change logo2menu to logo2recents

I don't recall seeing any roms having logo2recents by default, and my current setup did not allow for it either. (I use Android Revolution + Elemental), so I decided to look for a solution.
What you do is this:
-You must have a kernel that enables logo2menu, it'll enable the logo as a button (duh )
-Navigate to /system/usr/keylayout
-Backup the synaptics-rmi-touchscreen.kl file
-Open with the text editor
-Change this line:
key 139 MENU VIRTUAL
To:
key 139 APP_SWITCH WAKE_DROPPED
Save, exit, restart.
Your logo will now load up the recents window.
To me this is much more useful than menu, since most apps have integrated the menu button into their menu bars, so I'd be wasting the use of one capacitive button. I tend to switch between apps much more often, so the quick recents window access is totally worth it.
Side benefit (an odd one that didn't exist before I changed that file). When you go into settings/display&gestures&buttons, there will be a new setting under "buttons." It'll allow you to set tap or long press for recents/menu. Weird how it didn't exist before editing the .kl file above.
Thanks to danny 92 and wednesday13 for pointers from another thread.
*Note, just figured this out. When using this method it breaks the lockscreen shortcuts. No idea how to fix that part, sorry.
great.
this is what Im looking for long time
xposed module "MenuBeGone" could also do the same
I tried changing it to:
key 102 APP_SWITCH WAKE_DROPPED
key 158 BACK
key 139 HOME
So that the setup would be similar to onscreen keys in stock android ie left button: back ; middle button: home ; right button: recent apps.
Now my home button doesn't work even after changing settings to:
key 102 HOME
key 158 BACK
key 139 APP_SWITCH WAKE_DROPPED
Also tried changing settings to:
key 102 HOME
key 158 BACK
key 139 MENU VIRTUAL
and still my home button doesn't do anything.
Had to do a restore from TWRP
I'm running android 5.1 GPE with ElementalX kernal.
Any idea how to make this work, or why the home button doesn't work even after reverting the file?
After restoring I tried just changing the Key 139 line to APP_SWITCH WAKE_DROPPED and leaving everything else as is, and it works as intended. Guess I'll just have to get used to home and recent apps being in the wrong position (and then get used to them being in the right position when I get me new phone)

How to exchange the function of left&right key?

left key = go back
right key = menu
system/usr/keylayout/Generic.kl
Open Generic.kl in a text editor.
Scroll down to find key 139, to the right it should say MENU. Change it to BACK. Scroll down further to key 158...should say BACK. Change it to MENU.
you've now swapped functions. Save the file. Reboot. Success.
Edit: Forgot to mention you obviously need to be rooted to do this. Also, MENU and BACK need to stay capitalized.
carlz28 said:
system/usr/keylayout/Generic.kl
Open Generic.kl in a text editor.
Scroll down to find key 139, to the right it should say MENU. Change it to BACK. Scroll down further to key 158...should say BACK. Change it to MENU.
you've now swapped functions. Save the file. Reboot. Success.
Edit: Forgot to mention you obviously need to be rooted to do this. Also, MENU and BACK need to stay capitalized.
Click to expand...
Click to collapse
Seems easy for me. I will try it later. Thanks.
Get Xposed Framework and then get Xposed Additions module. You can edit any button functions. I have the menu button set to be task switcher on first press and menu on long press.
carlz28 said:
system/usr/keylayout/Generic.kl
Open Generic.kl in a text editor.
Scroll down to find key 139, to the right it should say MENU. Change it to BACK. Scroll down further to key 158...should say BACK. Change it to MENU.
you've now swapped functions. Save the file. Reboot. Success.
Edit: Forgot to mention you obviously need to be rooted to do this. Also, MENU and BACK need to stay capitalized.
Click to expand...
Click to collapse
It works. Thank you so much.
Further qustion: Can I set the volume keys to wakeup the phone?

Keylayout

Hallo, the new Recent Apps button is annoying me. So i tried to rebind the button to menu. This worked. I changed the /system/usr/keylayout/Generic.kl. (Swapped key 254 (APP_SWITCH) and key 127 (MENU). But I don't know how to rebind the APP-SWITCH key to the hold home key, wich brings me to Google Now. Google Now would be nice on hold MENU, but if I hold the changed button S Finder appears.. I don't need it. So could you tell me, how to bind APP-SWITCH to hold HOME, and Google Now to hold MENU please?
The change I made was inspired by this thread: http://forum.xda-developers.com/showthread.php?t=2337229
Thanks, Colin P
You can use the xposed framwork additions module to remap hardware keys. Or any number of other Play store apps will also endeavor to do so for you.
Or you could directly edit the the /system/usr/keylayout files. As you aren't already doing this though, I can only presume that you aren't familiar with the syntax. In which case, xposed will be your best option.
.
I have a question that involves keylayout, since this is a similar thread, I thought I should ask here. I've added on-screen navigation buttons, and want to disable the soft touch keys (I accidentally press them a lot...). I found out through a Note 2 forum that I need to put a # sign in front of keys 158 and 139, but I think it might be different for Galaxy S5. Can someone help me disable the two soft touch keys (back and recent apps keys). Thanks a lot
You should start your own thread, rather than hijack an existing one.
In short, you can either use an app like Xposed to reassign the keys or edit the keylayout files directly. Simply leave the keys in question unassigned. If you find that the keys still light up, that can be disabled in the Settings menu with the touch key duration setting = always off.
.

[guide] disable capacitive buttons

I have seen a bunch of posts regarding the capacitive buttons and on screen navigation buttons. Love them or hate them, this is how you can turn them off.
I will leave that up to you on how to get onscreen Navy buttons.
As for turning off the capacitive buttons this is how I did it.
1.To eneble onscreen buttons follow this thread http://forum.xda-developers.com/redm...mi-1s-t2950455
2. Download a root file explorer. Root Browser Lite --> http://goo.gl/b9ISW This is what I will use.
3.Load up Root Browser and navigate to system>usr>keylayout. We will be looking for a file called "atmel_mxt_ts.kl".
4. Select it and hit "Open as..." then "Text file" then "RB Text Editor"
5. Now we see this:
key 139 MENU
key 102 HOME
key 158 BACK
key 217 SEARCH
All you have to do is option out the keys you don't want to work with a #. So if you are like me and think the home button is fine, it will look like this.
#key 139 MENU
key 102 HOME
#key 158 BACK
key 217 SEARCH
6. When you have the ones you want optioned out just tap the little disk icon in the top right. It will ask for root rights, grant it, saved.
7. Now just reboot and DONE!
Tested on
1. One plus one a.k.a bacon(miui6, h2os, oxygen..you tell)
Sent from my bacon using Tapatalk
Hit thanks if this post helped you[emoji106]
Why on earth would anyone want to do that when there is a toggle to switch between On-Screen and Hardware Keys
PsyGik said:
Why on earth would anyone want to do that when there is a toggle to switch between On-Screen and Hardware Keys
Click to expand...
Click to collapse
OK give me a screen shot of that toggle in h2os,miui6
@Snapdragon815
Will this guide also turn off the HW key backlight?
Will it survive a reboot?
Mr.Ak said:
@Snapdragon815
Will this guide also turn off the HW key backlight?
Will it survive a reboot?
Click to expand...
Click to collapse
As you can see, i made this post 2 years ago, you can give it a try, do a backup on TWRP first, if everythinggoes as you expected, that good. If not you know how to restore.
Snapdragon815 said:
As you can see, i made this post 2 years ago, you can give it a try, do a backup on TWRP first, if everythinggoes as you expected, that good. If not you know how to restore.
Click to expand...
Click to collapse
Sorry for reviving the thread. ?
But I was hoping you atleast remember if this trick turn off HW key backlight or not.
Mr.Ak said:
Sorry for reviving the thread.
But I was hoping you atleast remember if this trick turn off HW key backlight or not.
Click to expand...
Click to collapse
Np mate,. Did it work? I don't rememberif it did or not

Note 4 swapping menu and back buttons in the keyboard layout

This is for Samsung Note 4 N910G models, most likely applies to other N910 models also..
Some left handed people like to swap over the buttons, in my case a faulty button forced me to swap them over so i had a usable back button.. so i got searching for ways to swap them over!
After a little while googling around, I found a lot of forum posts which advise to swap over the MENU and BACK key mappings in the generic.kl file as per below
Key 139 MENU
key 158 BACK
change to
key 139 BACK
Key 158 MENU
Note 4 is a little different, its menu button is now the "APP_SWITCH" button which switches between apps, where-as most galaxy models are a double tap of the home button to switch apps.. i accidentally broke my back button when swapping over an LCD screen, as a temporary measure while i wait for my new buttons (whole usb charging section contains the back and menu buttons) to arrive, i opted to swap over the buttons (i know you can have an on-screen back button but prefer the soft key as on-screen gets in the way)
1. Using ES Explorer on a rooted note 4, browse to \system\usr\keylayout
2. Open up Generic.kl in ES note editor
3. Go into Edit mode
4. Swap over the generic keys anyway (not sure what affect this has as my right-side soft key is broken)
key 139 BACK
Key 158 MENU
5. Find the following key under #samsung comment further in the file;
key 254 APP_SWITCH
change this to:
key 254 BACK
6. save the file, reboot your phone and voila! menu button is now the back button. :good:
hope this helps someone as this caused me a little confusion due to the number of forums which explicitly state that the soft keys are key 139 and 158...

Categories

Resources