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
Related
I'm wondering because I want to use on screen buttons like on my Gnex..
At least in my experience on screen keys are so much more responsive than capacitive keys..
Sent from my Galaxy Nexus using Tapatalk 2
Wordlywisewiz said:
I'm wondering because I want to use on screen buttons like on my Gnex..
At least in my experience on screen keys are so much more responsive than capacitive keys..
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
no you can not
Wordlywisewiz said:
I'm wondering because I want to use on screen buttons like on my Gnex..
At least in my experience on screen keys are so much more responsive than capacitive keys..
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
epicnoob66 said:
Add this line to your system/build.prop
qemu.hw.mainkeys=0
Save and reboot
Sent from my t0ltespr
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=33732776&postcount=11
Not sure about disabling the buttons. CM10 has these features built in.
Impossible..? Really what if I was to just remap them to do nothing?
Sent from my Galaxy Nexus using Tapatalk 2
Yes, a custom ROM could probably enable this.
Sent from my SPH-L900 using Tapatalk 2
Sweet! I wonder if we could do some type of gesture with the pen to go home that would be slick.. Custom pen gestures anyone?
Sent from my Galaxy Nexus using Tapatalk 2
Wordlywisewiz said:
Sweet! I wonder if we could do some type of gesture with the pen to go home that would be slick.. Custom pen gestures anyone?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
I think it would be sick to make the navbar popup when you take the pen out since you can't touch the menu and back buttons with the stylus and then go away when you dock the stylus.
Sent from my SPH-L900 using Tapatalk 2
Wordlywisewiz said:
Impossible..? Really what if I was to just remap them to do nothing?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
This would be the way to go.
some .kl file would hold the config
Now that would be sweet!
The only thing though is won't we lose most if the pen functions with aosp?
Sent from my Galaxy Nexus using Tapatalk 2
Wordlywisewiz said:
Now that would be sweet!
The only thing though is won't we lose most if the pen functions with aosp?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
No, as of ICS (I think) stylus support is natively built in.
Sent from my SPH-L900 using Tapatalk 2
mrnamster said:
http://forum.xda-developers.com/showpost.php?p=33732776&postcount=11
Not sure about disabling the buttons. CM10 has these features built in.
Click to expand...
Click to collapse
Just tried this and it works GREAT! Thank you so much for finding this; my navbar is there, my appswitch button is there (love) and the Action Overflow buttons are back! Absolutely wonderful.
Now, if I could just figure out a way to disable the hardware keys... or toggle the navbar!
So adding those lines will create the nav bar at the bottom...nothing else, correct?
Correct. The buttons are too fat for my taste though. Screenshot anyone?
Edit: Tried to take a screenshot but it didn't capture the nav buttons.
Sent from my SPH-L900 using xda app-developers app
It is possible to use the on-screen navigation and disable the capacitive buttons. You can also disable the home button though I don't think it is necessary since accidental presses are not an issue with it considering it is not capacitive.
As the previous posts have pointed out, the on-screen navigation can be enabled by adding:
Code:
qemu.hw.mainkeys=0
to the file:
Code:
/system/build.prop
To disable the capavative buttons you need to edit the file:
Code:
/system/usr/keylayout/Generic.kl
comment out the lines:
Code:
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
it should look like this once commented out:
Code:
# key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
To disable the home button you need to edit the file:
Code:
/system/usr/keylayout/gpio-keys.kl
comment out this line:
Code:
key 172 HOME WAKE
it should look like this once commented out:
Code:
# key 172 HOME WAKE
Another option is to remap the home button and use it as a power button instead:
Code:
key 172 POWER WAKE
Make sure the files are still readable otherwise none of your physical buttons will work, if they are not you have to chmod 644
Code:
adb shell chmod 644 /system/usr/keylayout/Generic.kl
adb shell chmod 644 /system/usr/keylayout/gpio-keys.kl
Kailee do you know how to route the home button to the camera?
FrameCityJackal said:
Kailee do you know how to route the home button to the camera?
Click to expand...
Click to collapse
Yes, in the gpio-keys.kl file, use CAMERA for key 172, like this:
Code:
key 172 CAMERA
Do note that you will have to hold the home button for a few seconds for the camera to start.
Kailee said:
Yes, in the gpio-keys.kl file, use CAMERA for key 172, like this:
Code:
key 172 CAMERA
Do note that you will have to hold the home button for a few seconds for the camera to start.
Click to expand...
Click to collapse
That you very much my team has been trying to figure this out for the S3 we'll see if it functions the same :highfive:
Kailee said:
It is possible to use the on-screen navigation and disable the capacitive buttons. You can also disable the home button though I don't think it is necessary since accidental presses are not an issue with it considering it is not capacitive.
As the previous posts have pointed out, the on-screen navigation can be enabled by adding:
Code:
qemu.hw.mainkeys=0
to the file:
Code:
/system/build.prop
To disable the capavative buttons you need to edit the file:
Code:
/system/usr/keylayout/Generic.kl
comment out the lines:
Code:
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
it should look like this once commented out:
Code:
# key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
To disable the home button you need to edit the file:
Code:
/system/usr/keylayout/gpio-keys.kl
comment out this line:
Code:
key 172 HOME WAKE
it should look like this once commented out:
Code:
# key 172 HOME WAKE
Another option is to remap the home button and use it as a power button instead:
Code:
key 172 POWER WAKE
Make sure the files are still readable otherwise none of your physical buttons will work, if they are not you have to chmod 644
Code:
adb shell chmod 644 /system/usr/keylayout/Generic.kl
adb shell chmod 644 /system/usr/keylayout/gpio-keys.kl
Click to expand...
Click to collapse
Can this be done using a filer explorer on the phone? Sorry I've just never done anything like this before. Worst case scenario, I go back to a nandroid. Oh and can this be done on an international Note 2?
3bs11 said:
Can this be done using a filer explorer on the phone? Sorry I've just never done anything like this before. Worst case scenario, I go back to a nandroid. Oh and can this be done on an international Note 2?
Click to expand...
Click to collapse
Yeah you can do this with es file explorer and it should work for the international version as well
Sent from my SPH-L900 using xda app-developers app
I just hope modding any of this doesn't disable the power or volume keys... so anyone doesn't end up bricking their device..
I can't wait to get my hands on one im sick of this nexus..
And to be honest now that I'm a little older (almost 18 ) I'm not flashing as many Roms and customizing as much as I was a few years ago. Partly because I need my phone to be stable and keep my text messages.. so having a non nexus wouldn't be much of an issue..
Sent from my Galaxy Nexus using Tapatalk 2
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
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
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.