Hi,
i am previously a Moto G (2013) user.. got used to onscreen buttons like pie and gesture control.
Most of the guides available out there wont work with Le 1s.. so here it is
HTML:
do at your own risk. make sure you know about the consequences of things you are going to do.
i always recommend a back up while messing with system partition
Open this file
system>>usr>>keylayout>>ssynaptics_dsx_i2c.kl
look for below lines
Code:
key 158 BACK VIRTUAL
key 172 HOME VIRTUAL
key 580 APP_SWITCH VIRTUAL
change it to (put "#" before all lines)
Code:
#key 158 BACK VIRTUAL
#key 172 HOME VIRTUAL
#key 580 APP_SWITCH VIRTUAL
This disables the respective action of capacitive buttons.
To enable on screen navigation button(enabling this makes your screen looks awkward) though i would prefer to use Pie controls or LMT launcher etc..
go to build.prop
search for this line
Code:
#qemu.he.mainkeys=0
change it to
Code:
qemu.he.mainkeys=0
Reboot.
PS. i am also trying to disable backlight of disabled capacitive buttons, anyone knows can help me
reversegear said:
PS. i am also trying to disable backlight of disabled capacitive buttons, anyone knows can help me
Click to expand...
Click to collapse
You can download an app called keyboard backlight controller.
naparajito said:
You can download an app called keyboard backlight controller.
Click to expand...
Click to collapse
Yeah..
Thank you
I ve come across many apps which does that.. I'm exploring system level hack
For ex modifying this file(check screenshot) disables but it gets reverted back on reboot
That will have to fixed in kernel. Easy stuff though.
reversegear said:
Hi,
i am previously a Moto G (2013) user.. got used to onscreen buttons like pie and gesture control.
Most of the guides available out there wont work with Le 1s.. so here it is
HTML:
do at your own risk. make sure you know about the consequences of things you are going to do.
i always recommend a back up while messing with system partition
Open this file
system>>usr>>keylayout>>ssynaptics_dsx_i2c.kl
look for below lines
Code:
key 158 BACK VIRTUAL
key 172 HOME VIRTUAL
key 580 APP_SWITCH VIRTUAL
change it to (put "#" before all lines)
Code:
#key 158 BACK VIRTUAL
#key 172 HOME VIRTUAL
#key 580 APP_SWITCH VIRTUAL
This disables the respective action of capacitive buttons.
To enable on screen navigation button(enabling this makes your screen looks awkward) though i would prefer to use Pie controls or LMT launcher etc..
go to build.prop
search for this line
Code:
#qemu.he.mainkeys=0
change it to
Code:
qemu.he.mainkeys=0
Reboot.
PS. i am also trying to disable backlight of disabled capacitive buttons, anyone knows can help me
Click to expand...
Click to collapse
Thank you so much for this!!
I cracked my screen pretty badly. So I cannot use the capacitive buttons, and what is worse, they are activated randomly by themselves
I had previously found out how to activate the virtual buttons, which helped. But I did not know how to de-activate the capacitive buttons. This was a great help!!
However the app "Keyboard backlight controller" does not seem to work for me, it does not ask for root permission and it does not turn off the backlight.... but this is a very minor issue compared to my previous issues
While editing keys putting # , to disable capacitive buttons , it is showing a message "error occurred while saving the file, it will not be saved" what to do now I want to disable capacitive buttons
---------- Post added at 10:23 AM ---------- Previous post was at 10:14 AM ----------
Due to crack on display and improper function of capacitive buttons I want to disable that and I want to enable VIRTUAL navigation keys , while following mr.botze steps using codes while editing I mean after putting # and saving, it is showing a message " error while saving the file ,it will not be saved" what to do , anybody can help me out from this
Letvaffu said:
While editing keys putting # , to disable capacitive buttons , it is showing a message "error occurred while saving the file, it will not be saved" what to do now I want to disable capacitive buttons
---------- Post added at 10:23 AM ---------- Previous post was at 10:14 AM ----------
Due to crack on display and improper function of capacitive buttons I want to disable that and I want to enable VIRTUAL navigation keys , while following mr.botze steps using codes while editing I mean after putting # and saving, it is showing a message " error while saving the file ,it will not be saved" what to do , anybody can help me out from this
Click to expand...
Click to collapse
seems to be you dont have root previlages
reversegear said:
seems to be you dont have root previlages
Click to expand...
Click to collapse
...either that, or that you forgot to mount in R/W. What app are you using to view the files? In Root exporer, there is a button on the top that says "mount R/W" (read-write). If you don't press that you can only VIEW the files, not edit.
Is rooting needed?
botze said:
...either that, or that you forgot to mount in R/W. What app are you using to view the files? In Root exporer, there is a button on the top that says "mount R/W" (read-write). If you don't press that you can only VIEW the files, not edit.
Click to expand...
Click to collapse
I opened in edit mode but receive the error.. I have not rooted my mobile, is that the reason?
Related
I was wondering if there is a way to change key functions on note 3, for example: by pressing menu key we can see recent apps instead of menu
I would be thankful if anyone can suggest a solution to do this:good::laugh:
arash2901 said:
I was wondering if there is a way to change key functions on note 3, for example: by pressing menu key we can see recent apps instead of menu
I would be thankful if anyone can suggest a solution to do this:good::laugh:
Click to expand...
Click to collapse
There are actually a couple different ways to do it...
You can used Xposed mod, with either Xposed Additions or MenuBeGone
(I've never used either of these methods...)
or, the way that I do it, manually edit the \system\usr\keylayout\Generic.kl file.
When I do it, I make the following two changes:
Change key 139 from MENU to BACK
Change key 158 from BACK to APP_SWITCH
Then I use button savior to add the menu for those things that need it...
(I'm coming from Nexus devices, so having the keys with back on the left, and app switch on the right is how I'm used to it...)
Ever wondered to use Google search ? Just saying.
Sent from my N9005
carnagecjb said:
There are actually a couple different ways to do it...
You can used Xposed mod, with either Xposed Additions or MenuBeGone
(I've never used either of these methods...)
or, the way that I do it, manually edit the \system\usr\keylayout\Generic.kl file.
When I do it, I make the following two changes:
Change key 139 from MENU to BACK
Change key 158 from BACK to APP_SWITCH
Then I use button savior to add the menu for those things that need it...
(I'm coming from Nexus devices, so having the keys with back on the left, and app switch on the right is how I'm used to it...)
Click to expand...
Click to collapse
thanks
that's helpful (kind of!)
I was able to change function of key like starting camera by pressing menu key, but still don't know how to put recent app instead of menu?
--------------------------------------------
[problem solved,found it]
thanks a million man
big help
arash2901 said:
thanks
that's helpful (kind of!)
I was able to change function of key like starting camera by pressing menu key, but still don't know how to put recent app instead of menu?
Click to expand...
Click to collapse
Quick and easy answer:
Change key 139 from MENU to APP_SWITCH
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.
.
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
[TIP] How to disable hardware key and enable soft key in mi5s/mi5s plus
Mi5S and Mi5S plus has hardware key
When you play a game horizontally, the game might turn off by mistake.
You need to deactivate the hardware button to prevent this.
A necessary thing
- a rooted phone
- root explorer (you need to modify system file)
1. Go to /system/build.prop and add qemu.hw.mainkeys=0
2. Go to /system/usr/synaptics_dsx.kl and add # on last lines like
[before]
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VITRUAL
key 143 WAKEUP
[after]
#key 139 MENU VIRTUAL
#key 102 HOME VIRTUAL
#key 158 BACK VITRUAL
key 143 WAKEUP
You can make #key 143 WAKEUP and home button can be completely disabled.
(Only the power button can light the screen. not home button)
(mi5s plus doesn't has key 143 WAKEUP because mi5s plus doesn't have home button to light the screen)
3. Reboot!
You can revert these steps to enable hardware key again
and you can find hardware key light settings at Settings - Additioal Settings - Button
jpg3927 said:
[TIP] How to disable hardware key and enable soft key in mi5s/mi5s plus
Mi5S and Mi5S plus has hardware key
When you play a game horizontally, the game might turn off by mistake.
You need to deactivate the hardware button to prevent this.
A necessary thing
- a rooted phone
- root explorer (you need to modify system file)
1. Go to /system/build.prop and add qemu.hw.mainkeys=0
2. Go to /system/usr/synaptics_dsx.kl and add # on last lines like
[before]
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VITRUAL
key 143 WAKEUP
[after]
#key 139 MENU VIRTUAL
#key 102 HOME VIRTUAL
#key 158 BACK VITRUAL
key 143 WAKEUP
You can make #key 143 WAKEUP and home button can be completely disabled.
(Only the power button can light the screen. not home button)
(mi5s plus doesn't has key 143 WAKEUP because mi5s plus doesn't have home button to light the screen)
3. Reboot!
You can revert these steps to enable hardware key again
and you can find hardware key light settings at Settings - Additioal Settings - Button
Click to expand...
Click to collapse
Thank you for this. Any news from miui when they release the source? I miss Cyanogenmod
v0ne said:
Thank you for this. Any news from miui when they release the source? I miss Cyanogenmod
Click to expand...
Click to collapse
i need cyanogenmod too.. i think can get some custom rom at least 2017
thank you man.thanks alot :*
You can also do this with Magisk. I will try to upload a module.
Try this module. It works on my Mi 5S running xiaomi.eu 9.5.2.0 ROM.
What this module does is it replaces the file /system/usr/synaptics_dsx.kl, commenting out this line:
Code:
key 143 WAKEUP
wpyh said:
Try this module. It works on my Mi 5S running xiaomi.eu 9.5.2.0 ROM.
What this module does is it replaces the file /system/usr/synaptics_dsx.kl, commenting out this line:
Click to expand...
Click to collapse
This only disables waking up the screen with the home button?
Chaninoza said:
This only disables waking up the screen with the home button?
Click to expand...
Click to collapse
Yes. Should I also make modules for other functions? Like disabling all the buttons like the OP said?
wpyh said:
Yes. Should I also make modules for other functions? Like disabling all the buttons like the OP said?
Click to expand...
Click to collapse
If u want to, im just interested in the one u posted
Chaninoza said:
If u want to, im just interested in the one u posted
Click to expand...
Click to collapse
Well, someday I might submit this to the Magisk repo. Actually I don't think we need to switch the Menu and Back buttons, because they can be switched via the Settings app -> System & Device / Additional Settings -> Button and gesture shortcuts -> Button Positions / Navigation buttons, at least on Xiaomi.eu ROM it's available. I think it's also available on the original ROMs (China and Global) as well.
These modules actually implement the original post.
wpyh how I can install it on phone?
Hey guys,
So I used ZUI 2.3 for a bit and using DEVELOPER MODE you can enable the hardware keys to be used. But the left hardware key which was used as RECENT APPS key in the COS/CM/AOSP is used as MENU which is really not useful to me. Does anybody have an idea as to how to change the hardware key binding? I heard there is a file in which values can be changed once you have rooted the phone. I wish to know the details.
SarthakSL said:
Hey guys,
So I used ZUI 2.3 for a bit and using DEVELOPER MODE you can enable the hardware keys to be used. But the left hardware key which was used as RECENT APPS key in the COS/CM/AOSP is used as MENU which is really not useful to me. Does anybody have an idea as to how to change the hardware key binding? I heard there is a file in which values can be changed once you have rooted the phone. I wish to know the details.
Click to expand...
Click to collapse
Don't have ZUI installed, if you have "Settings->Buttons" you can change the HW keys from this option.
aaswar said:
Don't have ZUI installed, if you have "Settings->Buttons" you can change the HW keys from this option.
Click to expand...
Click to collapse
But all I could do was reassign to HOME button in the UTOUCH settings of ZUI. I want the solution for ZUI 2.3.
I am going to try this: (Button Remapper No Root)
https://play.google.com/store/apps/details?id=com.irishin.buttonsremapper&hl=en
EDIT:
Tried the app. RECENT working perfectly on the left hardware button. HOME soft touch to actually working like HOME isn't working flawlessly. But will do. So people who want the capacitive buttons like COS on the ZUI 2.3 should install that app and configure it like that. I am still looking for a better solution. Cheers!
aaswar said:
Don't have ZUI installed, if you have "Settings->Buttons" you can change the HW keys from this option.
Click to expand...
Click to collapse
There is no button option under setting... Menu and back key option is in developer settings.. I do enabled it.. But how to enable soft touch home by just a single tap...
ADDICTED777 said:
There is no button option under setting... Menu and back key option is in developer settings.. I do enabled it.. But how to enable soft touch home by just a single tap...
Click to expand...
Click to collapse
Two files specifically generic.kl and fpc1020tp.kl located in system /usr/keylayout are needed to be edited.
With the help of any root browser, simply open the generic.kl with a text editor and scroll to the 'key 158' and change the attribute from default 'BACK' TO 'HOME'. Similarly, open the fpc1020tp.kl and do the same modification.
Save both files and reboot to notice the change.
Bingo
QuazIqbal said:
Two files specifically generic.kl and fpc1020tp.kl located in system /usr/keylayout are needed to be edited.
With the help of any root browser, simply open the generic.kl with a text editor and scroll to the 'key 158' and change the attribute from default 'BACK' TO 'HOME'. Similarly, open the fpc1020tp.kl and do the same modification.
Save both files and reboot to notice the change.
Bingo
Click to expand...
Click to collapse
Then back key won't work... It'll always work as the home..
ADDICTED777 said:
Then back key won't work... It'll always work as the home..
Click to expand...
Click to collapse
Exactly
QuazIqbal said:
Exactly
Click to expand...
Click to collapse
Then what is the advantage of enabling the menu and back button... If the back button work no more... Cz after tweaking those two files back button will also work as the home button... So whats the point??
ADDICTED777 said:
Then what is the advantage of enabling the menu and back button... If the back button work no more... Cz after tweaking those two files back button will also work as the home button... So whats the point??
Click to expand...
Click to collapse
Dedicated Menu and Back key work as usual. Only the home button touch will not act as back key (as present in default zui)
QuazIqbal said:
Dedicated Menu and Back key work as usual. Only the home button touch will not act as back key (as present in default zui)
Click to expand...
Click to collapse
Thanks mate it worked.. By the way is there any way to screen search of google replace the menu button with recent app switch?? On ZUI
What about APP_SWITCH?
QuazIqbal said:
Two files specifically generic.kl and fpc1020tp.kl located in system /usr/keylayout are needed to be edited.
With the help of any root browser, simply open the generic.kl with a text editor and scroll to the 'key 158' and change the attribute from default 'BACK' TO 'HOME'. Similarly, open the fpc1020tp.kl and do the same modification.
Save both files and reboot to notice the change.
Bingo
Click to expand...
Click to collapse
Can i set the menu button to open Recent Apps/App Switch screen?
may I ask if the 2 capacitive buttons back and menu do light up or wont light even enable on ZUI 2.3?
also only blue notification light on all app notifications? mine only emit blue light even with other led apps, but charging red and full charge green,
thanks for any comments