If this has already been addressed, I do apologize. I did quite a bit of searching in all GS4 variant forums and couldn't find a straight answer.
After a bit of tinkering I FINALLY figured out how to disable those pesky capacative buttons on the GS4. This should work for all variants.
It's quite simple actually. I first tried going into /system/usr/keylayout and editing the Generic.kl file using Root Explorer. Just find these lines and add # in front of each so:
Code:
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
becomes
Code:
# key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
That works for most phones, but not the GS4. Reason being is because Samsung has it's own key layout file in the same directory labeled: sec_touchkey.kl
Follow the same procedure for this file, and your capacative keys will finally be disabled. It is a bit easier to find the lines you need to edit in this file as there are only 4 lines in it. I assume you can also disable the home button (key 102 HOME) using the same procedure, but I didn't try it as I like to have the button working.
Sorry for the crudity of this post. This is literally my first post that has to do with any kind of "development"/"modding".:laugh:
When you disable those buttons, do you get a Nexus-like on screen button bar?
kxmas said:
When you disable those buttons, do you get a Nexus-like on screen button bar?
Click to expand...
Click to collapse
Not with just these modifications. This just disables the touch buttons. To enable the on screen nav bar (if there is not already an option in your rom controlls) all you have to do is add the line "qemu.hw.mainkeys=0" to your build.prop and reboot. That should activate on screen keys.
comoc85 said:
If this has already been addressed, I do apologize. I did quite a bit of searching in all GS4 variant forums and couldn't find a straight answer.
After a bit of tinkering I FINALLY figured out how to disable those pesky capacative buttons on the GS4. This should work for all variants.
It's quite simple actually. I first tried going into /system/usr/keylayout and editing the Generic.kl file using Root Explorer. Just find these lines and add # in front of each so:
Code:
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
becomes
Code:
# key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
That works for most phones, but not the GS4. Reason being is because Samsung has it's own key layout file in the same directory labeled: sec_touchkey.kl
Follow the same procedure for this file, and your capacative keys will finally be disabled. It is a bit easier to find the lines you need to edit in this file as there are only 4 lines in it. I assume you can also disable the home button (key 102 HOME) using the same procedure, but I didn't try it as I like to have the button working.
Sorry for the crudity of this post. This is literally my first post that has to do with any kind of "development"/"modding".:laugh:
Click to expand...
Click to collapse
I don't have the sec_touchkey.kl file. i do have the Generic.kl but can not get my modifications to save. hmmmmm
Related
It seems that the s-pen does not trigger the capacitive buttons on the Note 2. Does anyone know of a fix, or if one is even possible?
I was thinking the same thing. It would be nice not to have to switch to finger every time you want to hit back button.
Sent from my SPH-L900 using xda premium
While using the S-Pen, hold down the button and draw on the screen...
"^" to simulate menu
"<" to simulate back
Sent from my SPH-D710 using xda app-developers app
Jcossack88 said:
While using the S-Pen, hold down the button and draw on the screen...
"^" to simulate menu
"<" to simulate back
Sent from my SPH-D710 using xda app-developers app
Click to expand...
Click to collapse
Yes, good suggestion & I do use these sometimes, but like smark I'd like to have the option of a simple tap. I suspect, though, that the technologies are incompatible; hence the reason for those two shortcuts in the first place...
Seems like an oversight in an otherwise excellent device.
The s-pen uses induction to register on the screen. The the capacitive buttons to not have the inductive sensors in them. No, it cannot and will never work.
you can also enable the onscreen soft keys via this
Navigate to system/build.prop
go to the bottom of the page ( document )
add this line
qemu.hw.mainkeys=0
save
reboot
check
Disable the capacitive buttons via this
navigate to /system/usr/keylayout/Generic.kl
put a hash tag in front of the lines
key 139 menu
key 158 back
so they will look like
#key 139 menu
#key 158 back
save and reboot
disable button lights
settings - display - touch key light duration and set it to always off.
http://forum.xda-developers.com/showpost.php?p=33382561&postcount=1
Unable to edit the text file
skyjedi said:
you can also enable the onscreen soft keys via this
Navigate to system/build.prop
go to the bottom of the page ( document )
add this line
qemu.hw.mainkeys=0
save
reboot
check
Disable the capacitive buttons via this
navigate to /system/usr/keylayout/Generic.kl
put a hash tag in front of the lines
key 139 menu
key 158 back
so they will look like
#key 139 menu
#key 158 back
save and reboot
disable button lights
settings - display - touch key light duration and set it to always off.
http://forum.xda-developers.com/showpost.php?p=33382561&postcount=1
Click to expand...
Click to collapse
Unable to edit the text file
this is a mod to enable on screen keys like a tablet and disable harware touch keys for those who prefer it I discovered it in my new note 2 and was surprised when it worked on my old e4gt. the process is different on the note, here are the steps for the e4gt:
you need to do this with a root capable explorer such as root explorer or root browser.
here is how to enable the screen keys:
and8res said:
navigate to system/build.prop
go to the bottom of the page ( document )
add this line
qemu.hw.mainkeys=0
save
reboot
check
Peace
Click to expand...
Click to collapse
ENSURE THE SCREEN KEYS WORK BEFORE CONTINUING
here is how to disable hardware capacitive keys:
navigate to system/usr/keylayout/sec_touchkey.kl
add a # and a space before each line as such:
Code:
# key 158 BACK WAKE
# key 139 MENU WAKE
# key 102 HOME WAKE
# key 217 SEARCH WAKE_DROPPED
reboot again
then disable touch key lighting by going to settings/display/touch key light duration/always off
to revert just undo the steps above... take out the # and spaces in sec touchkey and erase the qemu line in build.prop
Sent from my SPH-L900 using xda app-developers app
Video?
reinaldistic said:
this is a mod to enable on screen keys like a tablet and disable harware touch keys for those who prefer it I discovered it in my new note 2 and was surprised when it worked on my old e4gt. the process is different on the note, here are the steps for the e4gt:
you need to do this with a root capable explorer such as root explorer or root browser.
here is how to enable the screen keys:
ENSURE THE SCREEN KEYS WORK BEFORE CONTINUING
here is how to disable hardware capacitive keys:
navigate to system/usr/keylayout/sec_touchkey.kl
add a # and a space before each line as such:
Code:
# key 158 BACK WAKE
# key 139 MENU WAKE
# key 102 HOME WAKE
# key 217 SEARCH WAKE_DROPPED
reboot again
then disable touch key lighting by going to settings/display/touch key light duration/always off
to revert just undo the steps above... take out the # and spaces in sec touchkey and erase the qemu line in build.prop
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
Is that for GB, ICS, OR JELLY? I don't have the same system/usr/keylayout/sec_touchkey.kl file in my fk23 jelly.
I can use the generic.kl to disable them.
Thanks for searching the forum....
http://forum.xda-developers.com/showthread.php?t=2026508
Sent from my SPH-D710 using xda premium
I'm doing a few tweaks on my phone, mainly not using the capacitive keys as menu and back, and using the home key as the app switcher, and using the nav bar for those three tasks. Here's what I've got so far.
I edited a few files under system/usr/keylayout
The Menu and Search key layouts were found under sec_touchkey.kl(Home was also found under this, but I had to also edit sec_keys.kl and sec_key.kl to get the home key as the app switcher)
Here's the default settings.
key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
key 102 HOME
key 217 SEARCH
Here's what I set them to.
key 139 CALL VIRTUAL
key 158 CAMERA VIRTUAL
key 102 APP_SWITCH
key 217 SEARCH
Changing the roles of keys 139 and 102 worked, but Camera does not open the camera. I've tried assigning different roles to key 158 and they've worked except for the camera role. So I'm thinking CAMERA is not the correct event name to open the camera up....
http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CAMERA
That's where I got the keyEvent listings from.
Rom is in my signature.
Bump!
Help me out here guys!
I'm just gonna keep bumping every day.
Is it possible to get this settings to CM 11 (S4 Mini LTE)?
Enable On-Screen button & Disable HW button.
The screenshot is from Oneplus one settings.
EDIT: I found a manual solution.
First of all, root is required to edit these files.
Basically, all you have to enable the software buttons, is add 'qemu.hw.mainkeys=0' to the build.prop in /system and reboot.
Deactivate the hardware keys.
Go to /system/usr/keylayout and open 'Generic.kl' in a text editor and find the lines that say 'key 139 MENU WAKE_DROPPED', 'key 158 BACK WAKE_DROPPED', and 'key 172 HOME' and place a # at the start of each line like:
#139 MENU WAKE_DROPPED
#158 BACK WAKE_DROPPED
key 172 HOME (I would not recommend and disable home)
Take care here because if you add a # to the wrong line, you won
And last, navigate to system>usr>keylayout. We will be looking for a file called "sec_touchkey.kl".
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 158 BACK
key 102 HOME
key 217 SEARCH
For Customize Navbar Go to Settings-->Interface
//dong2007
HereĀ“s a demonstrated video from Oneplus One
https://www.youtube.com/watch?v=cp-3jChf3DU#t=362
I found a solution - look at the first post...
The tricks to do the above seems to applied only to 4.3. Since my P607T is stock but rooted, how do i go by doing the above?
This capacitive keys are driving me mad when holding the tablet in portrait node.
lanwarrior said:
The tricks to do the above seems to applied only to 4.3. Since my P607T is stock but rooted, how do i go by doing the above?
This capacitive keys are driving me mad when holding the tablet in portrait node.
Click to expand...
Click to collapse
Try this:
Comment out lines in the 2 below .kl files:
/system/usr/keylayout/Generic.kl and gpio-keys.kl
Open Generic.kl file with text editor and put a '#' in the beginning of the line like below
Code:
# key 158 BACK
# key 172 HOME
# key 139 MENU
Editing the line on gpio-keys.kl (same directory as above)...
Code:
# key 172 HOME WAKE
** Then turn off lights via settings/display/touchkey light duration.
buhohitr said:
Try this:
Comment out lines in the 2 below .kl files:
/system/usr/keylayout/Generic.kl and gpio-keys.kl
Open Generic.kl file with text editor and put a '#' in the beginning of the line like below
Code:
# key 158 BACK
# key 172 HOME
# key 139 MENU
Editing the line on gpio-keys.kl (same directory as above)...
Code:
# key 172 HOME WAKE
** Then turn off lights via settings/display/touchkey light duration.
Click to expand...
Click to collapse
Thank you for this! I'll try it tonight.
Err...What app do you recommend to replace the back and menu key?
lanwarrior said:
Thank you for this! I'll try it tonight.
Err...What app do you recommend to replace the back and menu key?
Click to expand...
Click to collapse
The best is button savior from the market. You will need a pay version if you want to keep these customize buttons. Let try the free version and see. High lights:
1) create multiple buttons - like menu,home,recent,back etc..
2) cutom icons - nexus look a like and a bunch of others (theme)
3) buttons can be move and place anywhere on the screen
4) short cut key, button resize, color, transparent, hide button support.
Ultimate Dynamic Navbar has an Overlay Mode and can hide when unneeded.