[FIX]Home Button Haptic Fix - Universal, Actually Much Easier Than I Thought... - AT&T Samsung Galaxy S II SGH-I777

Hi everyone. We were all doing the framework tweak for i9100 ROMs on i777 in order to get haptic feedback working on Home button. However that was specific to ROMs and totally a mess when dealing with ROMs incorporate JKay themes.
I accidentally found this method that is so simple and universal to all i9100 Hellraised ROMs...
Already tried myself and works with everything, including Sensation, XXKI3, XXKI4....
Here is the way to fix the haptic feedback:
Find /system/usr/keylayout/sec_touchkey.kl
Change the content of if to:
Code:
key 139 MENU VIRTUAL
key 28 HOME VIRTUAL
key 158 BACK VIRTUAL
key 107 SEARCH VIRTUAL
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 212 CAMERA WAKE_DROPPED
key 231 SEND WAKE_DROPPED
The original file in Entropy512's Hellraiser pack is:
Code:
key 158 BACK WAKE
key 139 MENU WAKE
key 107 SEARCH WAKE
key 28 HOME WAKE
Known bug:
Not really a problem but vibration on home is a little bit shorter than menu and back
Let me know how this works with your ROM
The CWM package is fixed.

now what exactly do you mean by universal? universal to just i9100 roms?

Just tried with checkrom revolutionhd 3.1.1 and it did not work with the download link
Sent from my GT-I9100 using XDA App

afrojoc said:
now what exactly do you mean by universal? universal to just i9100 roms?
Click to expand...
Click to collapse
It should be universal to i9100 ROMs
Don't know why you said just, only i9100 ROMs need this fix.

moustro said:
Just tried with checkrom revolutionhd 3.1.1 and it did not work with the download link
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Make sure /system is writeable. You could just manually dump the file or edit it yourself as well.

moustro said:
Just tried with checkrom revolutionhd 3.1.1 and it did not work with the download link
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
I'll try checkROM

Worked fine on checkrom for me
Sent from my GT-I9100 using xda premium

works on sensation 1.9 if you manually add the file. seems like vibration is shorter than back button and menu button though

amtrakcn said:
It should be universal to i9100 ROMs
Don't know why you said just, only i9100 ROMs need this fix.
Click to expand...
Click to collapse
Incase I was going to try to port another rom from a different phone. That's why I said that.......

Can this file be flashed using CWM?
Sent from my SAMSUNG-SGH-I777 using XDA Premium App

wrenchmonkey26 said:
Can this file be flashed using CWM?
Sent from my SAMSUNG-SGH-I777 using XDA Premium App
Click to expand...
Click to collapse
I'm still working on a working CWM package

Thanks for the quick reply. After I flash a 9100 ROM on my i777, where does this file go?
Sent from my SAMSUNG-SGH-I777 using XDA Premium App

wrenchmonkey26 said:
Thanks for the quick reply. After I flash a 9100 ROM on my i777, where does this file go?
Sent from my SAMSUNG-SGH-I777 using XDA Premium App
Click to expand...
Click to collapse
/system/usr/keylayout/sec_touchkey.kl
It's path of the file.
The working CWM package is up

Wow! That was fast! Thanks for your contribution! w00t
Sent from my SAMSUNG-SGH-I777 using XDA Premium App

akira02rex said:
Make sure /system is writeable. You could just manually dump the file or edit it yourself as well.
Click to expand...
Click to collapse
How do I make my system writeable? When I go through root explorer to manually make the changes they don't stick.
Edit: fixed, works thank you
Sent from my GT-I9100 using XDA App

just tested on omega 5.1 and it worked perfectly

Sorry for being a noob but what exactly is the home button haptic fix? Is it where your phone vibrates when you push the home button? Mine does that already or is there something I'm missing here?

haru3173 said:
Sorry for being a noob but what exactly is the home button haptic fix? Is it where your phone vibrates when you push the home button? Mine does that already or is there something I'm missing here?
Click to expand...
Click to collapse
If you flash an i9100 ROM, your Home button will not lead to vibration when pressed, that's why it needs a fix.

amtrakcn said:
Hi everyone. We were all doing the framework tweak for i9100 ROMs on i777 in order to get haptic feedback working on Home button. However that was specific to ROMs and totally a mess when dealing with ROMs incorporate JKay themes.
I accidentally found this method that is so simple and universal to all i9100 Hellraised ROMs...
Already tried myself and works with everything, including Sensation, XXKI3, XXKI4....
Here is the way to fix the haptic feedback:
Find /system/usr/keylayout/sec_touchkey.kl
Change the content of if to:
Code:
key 139 MENU VIRTUAL
key 28 HOME VIRTUAL
key 158 BACK VIRTUAL
key 107 SEARCH VIRTUAL
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 212 CAMERA WAKE_DROPPED
key 231 SEND WAKE_DROPPED
The original file in Entropy512's Hellraiser pack is:
Code:
key 158 BACK WAKE
key 139 MENU WAKE
key 107 SEARCH WAKE
key 28 HOME WAKE
Known bug:
Not really a problem but vibration on home is a little bit shorter than menu and back
Let me know how this works with your ROM
The CWM package is fixed.
Click to expand...
Click to collapse
Nice job... How the hell did you stumble on that?

Probably found it in LinuxBozo's git repo... I never thought to try that for I777 Hellraiser. Been too busy.
https://github.com/LinuxBozo/hellraiser/commit/4cce2f4738cb9adaf8e0f635177c635ac9fae29c
If it works without negative consequences I'll integrate it into Hellraiser later this week along with a few other things.

Related

Remap capacitive buttons

Is there a free button remapper app, or is there anything I can flash to remap my capacitive buttons?
I just want a direct dial button since I can't change the home screen buttons on nero 5.
Sent from Samsung Vibrant rooted with Nero V5
I honestly think that ability has to be built into a rom not just by adding an app. I could be wrong though.
Sent from my SGH-T959 using XDA App
Psyphin-X said:
Is there a free button remapper app, or is there anything I can flash to remap my capacitive buttons?
I just want a direct dial button since I can't change the home screen buttons on nero 5.
Sent from Samsung Vibrant rooted with Nero V5
Click to expand...
Click to collapse
try a app called buttonremapper? lol
Yeah, I saw the button remapper app but I literally have no money right now not even the dollar for the app.
Sent from Samsung Vibrant rooted with Nero V5

[MOD] Force Navigation bar and disable HW keys like Nexus 4

This is a mod how to enable navigation bar(on screen buttons) , its very simple and easy...
Add the following line at the end of buid.prop file
qemu.hw.mainkeys=0
now on reboot we will have nav-bar like on nexus 4
To disable hardware keys, I used root explorer go to system/usr/keylayout click and hold on kaypad.nl and choose from menu open in text editor and 139,158,172 edit the home to hom and do the same on all 3 lines and hit save and reboot,
Plus I went and deleted all the 139, 158, 172 lines from external_kbd.kl, Generic.kl, MHLRCP.kl, osp3-input.kl and qwerty.kl. I dont know if that helps because I deleted them first then edited the lines in kaypad.nl.
Thanx to accentuer he made a zip that works also and might be easier for some people
Here is the link
http://forum.xda-developers.com/showthread.php?p=36420028
Sent from my LG-E970 using xda premium
Do the keys on the phone still light up
Sent from my LG-E970 using xda premium
Dsmforlife92 said:
Do the keys on the phone still light up
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
Yes. Working on Nocturnal Limited Edition v 1.1.
Nice mod.
Dsmforlife92 said:
Do the keys on the phone still light up
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
If you would prefer they didn't you could always turn them off in settings>display>front key light.
As having both seems redundant.
Does this mod disable the hardware keys, I'll do it but no point in having on screen keys and hardware keys.
Sent from my Optimus G
Pony Express said:
Yes. Working on Nocturnal Limited Edition v 1.1.
Nice mod.
Click to expand...
Click to collapse
Thanks. If possible could you provide a screen shot? Also, what are your thoughts/benefits of this mod?
Sent from my LG-E970
did the mod worked great thanks:good:
TangoXray said:
Thanks. If possible could you provide a screen shot? Also, what are your thoughts/benefits of this mod?
Sent from my LG-E970
Click to expand...
Click to collapse
Sent from my LG-E970 using xda premium
TangoXray said:
Thanks. If possible could you provide a screen shot? Also, what are your thoughts/benefits of this mod?
Sent from my LG-E970
Click to expand...
Click to collapse
samomamo said:
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
Screenshot above ^^^
Many like this from what I have read. It can come in very handy should hardkeys stop functioning.
With all due respect, for me it takes up screen space I would prefer not to give up. It is a matter of personal preference and options are always a good thing.
Edit: Inverted screenshot= nice.
Pony Express said:
Screenshot above ^^^
Many like this from what I have read. It can come in very handy should hardkeys stop functioning.
With all due respect, for me it takes up screen space I would prefer not to give up. It is a matter of personal preference and options are always a good thing.
Click to expand...
Click to collapse
I would have to agree. It doesn't make too much sense to do this on our device, but I for sure appreciate the know how and option to do it.
Pony Express said:
Screenshot above ^^^
Many like this from what I have read. It can come in very handy should hardkeys stop functioning.
With all due respect, for me it takes up screen space I would prefer not to give up. It is a matter of personal preference and options are always a good thing.
Edit: Inverted screenshot= nice.
Click to expand...
Click to collapse
Appreciate the feedback.
Sent from my LG-E970
I assume all your apps will automatically reconfigure to account for the different screen dimentions?
Hmm, tough choice: give up some screen real estate to gain a dedicated task switcher button and context menu button.
Nastybutler said:
I assume all your apps will automatically reconfigure to account for the different screen dimentions?
Hmm, tough choice: give up some screen real estate to gain a dedicated task switcher button and context menu button.
Click to expand...
Click to collapse
Yes, you are correct.
I can get the virtual keys, but unable to disable the hardware keys
Well till I can get the hardware keys disabled I removed the virtual keys
Sent from my Optimus G
REDFOCZ said:
I can get the virtual keys, but unable to disable the hardware keys
Well till I can get the hardware keys disabled I removed the virtual keys
Sent from my Optimus G
Click to expand...
Click to collapse
If you don't mind trying something, you could open /system/usr/keylayout/keypad_8064.kl in a text editor and put a "#" (without the quotes) at the beginning of the last 3 lines.
Change:
Code:
key 158 BACK VIRTUAL
key 172 HOME VIRTUAL
key 139 MENU VIRTUAL
To
Code:
#key 158 BACK VIRTUAL
#key 172 HOME VIRTUAL
#key 139 MENU VIRTUAL
I have not tried this as I don't have any plans to use this mod... may want to do a quick backup first in case it renders your phone unnavigable.
You may also still have to turn off the backlights in settings>display>front key light.
Nice to know we can do this if our hw keys end up not working in the future
Updated read if anyone having trouble disabling the hw key's
Sent from my SGH-T999 using xda premium
samomamo said:
Updated read if anyone having trouble disabling the hw key's
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Ok, so something like that would work for disabling the hw keys.
Good to know.
Did you by any chance try it the way I suggested? It may be a little cleaner, though I don't think it makes a difference.
bleached45 said:
Ok, so something like that would work for disabling the hw keys.
Good to know.
Did you by any chance try it the way I suggested? It may be a little cleaner, though I don't think it makes a difference.
Click to expand...
Click to collapse
No I didnt try because its already disabled and im lazy to do the whole thing again.
Sent from my SGH-T999 using xda premium
samomamo said:
No I didnt try because its already disabled and im lazy to do the whole thing again.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
HAHA!
np, I hear you and completely understand.

[Q] since I use the nav bar

I know how to shut off the lights but can I actually disable the hardware keys?
Sent from my SCH-I605 using Tapatalk 4 Beta
JustusIV said:
I know how to shut off the lights but can I actually disable the hardware keys?
Sent from my SCH-I605 using Tapatalk 4 Beta
Click to expand...
Click to collapse
as far as i know it's not possible.
Sent from my SCH-I605 using xda premium
Buy a nexus lol
Sent from my SCH-I605 using xda app-developers app
depends on what rom you are on.
I cannot speak for other rom's, but you can do this on Carbon, but I would assume most CM10 based rom's would have a similar setting. There is an option to change their mapping, and that can be set to none. For Carbon, it is under system > carbon > interface near the bottom under hardware keys.
You can also disable the home key from waking the phone by going to /system/usr/keylayout/ and editing gpio-keys.kl. On the line that says key 172 home wake, simply change it to # key 172 home wake and that will stop the home key from turning on the screen.
rjyoung00 said:
I cannot speak for other rom's, but you can do this on Carbon, but I would assume most CM10 based rom's would have a similar setting. There is an option to change their mapping, and that can be set to none. For Carbon, it is under system > carbon > interface near the bottom under hardware keys.
You can also disable the home key from waking the phone by going to /system/usr/keylayout/ and editing gpio-keys.kl. On the line that says key 172 home wake, simply change it to # key 172 home wake and that will stop the home key from turning on the screen.
Click to expand...
Click to collapse
I want to say there is an option in VRB to do it as well, I just can't seem to find it at the moment.
Sent from my SCH-I605 using XDA Premium HD app
shangrila500 said:
I want to say there is an option in VRB to do it as well, I just can't seem to find it at the moment.
Sent from my SCH-I605 using XDA Premium HD app
Click to expand...
Click to collapse
Yes. It's the same. Settings-->root box settings... At the bottom under hardware keys.
Sent from my SCH-I605 using xda app-developers app
This is the method I used:
1. go to /system/usr/keylayout
2. open sec_touchkey.kl with text editor
3. Put a # before both lines for key 158 and key 139 so it looks like
# key 158 BACK VIRTUAL
# key 139 MENU VIRTUAL
4. Save and reboot
This usually works for me without issue, but sometimes the file doesn't save properly so the commented lines don't stay commented. There is also another file in that folder generic.kl that has the lines for keys 158 and 139 that you can comment out as well, but I'm not sure if it actually does anything. The sec_touchkey file is always the one that worked for me on a few different roms.
Hope that helps
hong90 said:
This is the method I used:
1. go to /system/usr/keylayout
2. open sec_touchkey.kl with text editor
3. Put a # before both lines for key 158 and key 139 so it looks like
# key 158 BACK VIRTUAL
# key 139 MENU VIRTUAL
4. Save and reboot
This usually works for me without issue, but sometimes the file doesn't save properly so the commented lines don't stay commented. There is also another file in that folder generic.kl that has the lines for keys 158 and 139 that you can comment out as well, but I'm not sure if it actually does anything. The sec_touchkey file is always the one that worked for me on a few different roms.
Hope that helps
Click to expand...
Click to collapse
Theoretically can these two lines be swapped? Like use the menu button as a back button and the back button as menu? Tempted to try this on tw
Sent from my SCH-I605 using Tapatalk 2
---------- Post added at 07:30 PM ---------- Previous post was at 07:10 PM ----------
Didn't work at first but when I tried reverting to the original file it stuck with them reversed! Yay my back key is menu and my menu is back. This is awesome
Sent from my SCH-I605 using Tapatalk 2
Silly me knew about that setting just didn't know I could set it to no action. Under device setting I changed no backlight and no vibration. They are gone! lol
Sent from my SCH-I605 using Tapatalk 4 Beta

Remap on stock?

is anyone know if you can remap the hard buttons on stock rom. I like to be able to press the home button and bring up the Google now menu
You can press and hold and it will bring up 3 options one of them being google.
Sent from my SCH-I545 using Tapatalk 2
hexitnow said:
You can press and hold and it will bring up 3 options one of them being google.
Sent from my SCH-I545 using Tapatalk 2
Click to expand...
Click to collapse
HA! never saw those 3 options in the months of using that button to bring up the task manager
thanks.
No problem :thumbup:
Sent from my SCH-I545 using Tapatalk 2
You can also get "home2 shortcut" which will allow you to use double tap to open any app. I use it to make google now my voice search
Sent from my SCH-I545 using xda app-developers app
you can also edit what the buttons do if you are rooted just edit /system/urs/keylayout/generic.kl AND /system/usr/keylayout/gpiokeys.kl to have the buttons be whatever you like the main buttons are 139 menu 158 back and 172 home. Make sure you dont erase the wake or wake_dropped if you want them to work like before. You can erase it if you want the home button to not wake up the phone.
You can also bring up the on screen keys like a tablet with one line to build.prop if you want. Just add "qemu.hw.mainkeys=0" to the end of build.prop and the on screen keys will appear on reboot
Sent from my SCH-I545 using xda app-developers app

Is it possible to disable wakeup with home button?

Hi,
Is it possible to disable wakeup with home button? I am on rooted stock V20H.
maludroid said:
Hi,
Is it possible to disable wakeup with home button? I am on rooted stock V20H.
Click to expand...
Click to collapse
Change key 172 HOME WAKE
To:
key 172 HOME
In /system/usr/keylayout/Generic.kl,
Reboot and enjoy
Sent from my LG-P760 using xda app-developers app
N00BY0815 said:
Change key 172 HOME WAKE
To:
key 172 HOME
In /system/usr/keylayout/Generic.kl,
Reboot and enjoy
Sent from my LG-P760 using xda app-developers app
Click to expand...
Click to collapse
Thanks, but it doesn't work. key 172 HOME is exactly how it looks on stock rooted V20H.
I tried to combine:
key 172 HOME WAKE_DROPPED
but it resulted in home button not working.
Regards.

Categories

Resources