[Q] Button remaping - Huawei Ideos X6

anyway i can remap my search button as back button?

No reply! Why ppl why! anyway found the way in dr rush cm 10 v2. Editing one file helped

Hi,
This is for people who are having a problem with keys remapping.
Edit qwerty.kl in system-usr-keylayout
Then change the values as below:
158 BACK
139 MENU
217 SEARCH
102 HOME
Check out the link below for an update/patch.
http://forum.xda-developers.com/showpost.php?p=41876923&postcount=18

Related

[Q] NOVA-could it wake up by pressing G or volume key

Hello,
I am using NOVA V8 and flash the huexxx fix
could I use any script to use the G button or the volume button to wake up my phone?
I tried to read the script and tutorial...but i wonder there is no key 95 which correspond to G button. I tried to make a new script for key 95...but it doesn't work at all.
it doesn;t matter to use G button to wake up, but i really want to use other key besides power key to wake up.
sorry for my poor english
In /system/usr/keylayout edit this file: TWL4030_Keypad.kl (I user root explorer, dont forget to backup!) and change this entry (it is in the bottom for me):
key 95 POWER WAKE_DROPPED
It worked for me.
dcop7 said:
In /system/usr/keylayout edit this file: TWL4030_Keypad.kl (I user root explorer, dont forget to backup!) and change this entry (it is in the bottom for me):
key 95 POWER WAKE_DROPPED
It worked for me.
Click to expand...
Click to collapse
I sorry to tell you that there is NO LINE with key 95 for me.
I tried to add this line "key 95", but it doesn't work at all. any other means?
how about volume key to wake up the phone?
Try this: http://forum.xda-developers.com/showthread.php?t=1210341
more specifically:
# Phone will wake up from hitting the volume rocker
ro.config.hwfeature_wakeupkey=1
dcop7 said:
Try this: http://forum.xda-developers.com/showthread.php?t=1210341
more specifically:
# Phone will wake up from hitting the volume rocker
ro.config.hwfeature_wakeupkey=1
Click to expand...
Click to collapse
i sorry to tell you that i don;t know how to do so...
Are there any tutorial to change this value?
Besides, I would like to ask whether we can have 2 or more function on one key, such as G button for both camera and power.
THANKS
Thanks
sonicpeter said:
i sorry to tell you that i don;t know how to do so...
Are there any tutorial to change this value?
Besides, I would like to ask whether we can have 2 or more function on one key, such as G button for both camera and power.
THANKS
Thanks
Click to expand...
Click to collapse
try the link I gave on the last post... it is there
Nova V10D?
Can I flash Nova on V10D?
dcop7 said:
In /system/usr/keylayout edit this file: TWL4030_Keypad.kl (I user root explorer, dont forget to backup!) and change this entry (it is in the bottom for me):
key 95 POWER WAKE_DROPPED
It worked for me.
Click to expand...
Click to collapse
This didn't work for me. I don't get it at all. I updated the key 95 line but still no waking up with g key... Suggestions would be very appreciated. Thx.
Paracetamol100 said:
This didn't work for me. I don't get it at all. I updated the key 95 line but still no waking up with g key... Suggestions would be very appreciated. Thx.
Click to expand...
Click to collapse
Check the permissions of the file,maybe it changed, and check the tabs in the file,maybe the spaces cause some type of conflict

Modifying keyboard SYM key behavior? []{}\|~`

In my opinion, the one shortcoming of the otherwise excellent Droid 4 keyboard is the SYM key. Having an on-screen popup is just plain silly; I really wish they'd added alternate symbols to the letter keys of the keyboard and let us simply press SYM+[key] to produce a symbol. I'm guessing this was deemed to be too confusing and/or ugly, but it would have been a heck of a lot more functional.
The problem is especially apparent in terminal emulator programs. Only Better Terminal Emulator Pro seems to deal with the SYM key appropriately. Terminal IDE, Jack Palevich's emulator (the one which comes standard with most ROMs), and ConnectBot can't deal with it.
The only critical missing symbol characters are:
[ ] { } \ | ~ `
I'd love to assign the curly braces and brackets to SYM+O, P, K, and L. Backslash and pipe would probably go on I and J. And then the tilde and back-single-quote could go on Q and W.
Any suggestions on how I might go about doing this / what level it will need to be done at? E.g., are there keyboard configuration files, or is this going to require a modified kernel?
My only complaint, and it is minor...is:
You used to be able to press ALT + Backspace on previous QWERTY androids and it would clear the entire line of text. I haven't figured out how to do this on the Droid 4. Shift + Backspace doesn't do it.
Code3VW said:
My only complaint, and it is minor...is:
You used to be able to press ALT + Backspace on previous QWERTY androids and it would clear the entire line of text. I haven't figured out how to do this on the Droid 4. Shift + Backspace doesn't do it.
Click to expand...
Click to collapse
Yep, likewise with use ALT+arrow keys for home/end (horizontal and vertical). This was extremely useful functionality, I really want it back.
Just received the following from new XDA user "moah909" (who can't post here yet)...wanted to repost it here:
moah909 said:
I was trying to do the exact same thing as you with adding <> etc. I figured out how to do it but because I am a new member I can't post on the dev thread. Follow this guide but remap a62 to ALT_LEFT on the omap-keypad.kl key layout file http://forum.xda-developers.com/showthread.php?t=695936 (I had to download File Expert and use the system remount read write functionality with it because adb remount wasnt working). After doing that I had to go in with File Expert and change the permissions of the omap-keypad.kl (long hold and press permissions) to Owner - Read Write, Group - Read, Other - Read. That should remap the SYM key to the alt key. Next pull the file /system/usr/keychar/omap-keypad.kcm.bin to a computer. Then follow this guide http://forum.xda-developers.com/showthread.php?t=504710 to change the keys you want.(I used notepad ++ and changed the stuff in between the nulls to the keys I wanted. You need to change the second and 5th character to the character you want. Then transfer the file back and make the permissions correct and restart! Hopefully this wasn't too unclear, I was in a rush to write it, Ill be making a better guide with pictures etc later, and ill post it in the General Forum. If you post this id like it if you noted me
Click to expand...
Click to collapse
moah909 said:
I forgot to mention MAKE A BACKUP OF THE FILES BEFORE EDITING THEM
Click to expand...
Click to collapse
Thanks again!
Haven't tried it yet but will give it a shot soon.
+1
It would be awesome to enable some keyboard hacks on the Droid 4. So is the hack to change the "sym" to the "alt" key working for people? Has anybody found any references for physical keyboard hacks on other forums that might work for our Droid 4?
Check out the eclipse rom thread. Xredjokerx remapped the sym key on there for better functionality. I don't know if the remap will work outside the rom but I don't see why not.
Sent from my DROID4 using XDA
azrael293 said:
Check out the eclipse rom thread. Xredjokerx remapped the sym key on there for better functionality. I don't know if the remap will work outside the rom but I don't see why not.
Sent from my DROID4 using XDA
Click to expand...
Click to collapse
Ok. I found it. If you click on the "paperclip" symbol of that thread, it will show as "xrjxMod.zip". I think the Mod also deletes Quickoffice apk and installs Wifi Tether. There should be no reason for this to not work on stock ROM, meaning not-deodexed, right? Or does it modify SystemUI or Frameworks in any way?
it doesn't touch the system framework.
it installs latest wifi tether
deletes quickoffice
replaces omap-keypad.kcm.bin in /system/usr/keychars and omap-keypad.kl in keylayout
sets correct permissions
Remapped SYM -> ALT_LEFT
ALT + O = {
ALT + P = }
ALT + K = [
ALT + L = ]
ALT + N = <
ALT + M = >
ALT + / = \
ALT + I = |
ALT + Q = ~
Please use it and let me know, I can also adjust it so that it is only the keyboard mod if people want it
xredjokerx said:
it doesn't touch the system framework.
it installs latest wifi tether
deletes quickoffice
replaces omap-keypad.kcm.bin in /system/usr/keychars and omap-keypad.kl in keylayout
sets correct permissions
Remapped SYM -> ALT_LEFT
ALT + O = {
ALT + P = }
ALT + K = [
ALT + L = ]
ALT + N = <
ALT + M = >
ALT + / = \
ALT + I = |
ALT + Q = ~
Please use it and let me know, I can also adjust it so that it is only the keyboard mod if people want it
Click to expand...
Click to collapse
Thank you. Is the "keys.rar" folder that is posted under "eclipse ROM" the one that gets it back to stock?
So this works well and I really like it. Any chance we can map a button to make it a control key

Allow or Disallow the Home key from waking up the Phone [Galaxy Note]

PREVENT - ALLOW GALAXY NOTE HOME KEY FROM ACCIDENTALLY WAKE UP DEVICE:
Some people complained about the Home keys of Galaxy Note sometime is touched and turned on accidentally when taking it in-out of the pocket.
After studying some articles on-line for Droid X phone (not same as the Galaxy Note), I digged around in the directory system/usr/ keylayout. Finally, I have found a way to do it. I can disable the HOME key from wake up the phone in off-screen state, but still let it to move from apps drawer to standby screen as usual. And I think it works!!
- Goal: Modify 2 file related to wake up function of the Home key (code 102).
- How to:
+ Using Root Explorer go to the folder: system/usr/keylayout, set permission to Mount R/W;
+ Click to select the 2 files: gpio-key.kl and sec_key.kl to modify them. When the menu appears, select: Text Editor to modify the files.
+ Move to the line: "key 102 HOME WAKE" in the 2 files above and put the cursor on the position of "WAKE" to erase the word "WAKE".
+ Press Menu hard button, select Save Changes, the phone will save the backup file and save the current files.
+ Set permission to Mount R/O for the folder: system/usr/ keylayout.
+ Shut down and then restart, Ahh, it worked!
Note: If you want to use Home key to wake up Galaxy Note again, go to delete two above modified files and rename the two backup files to gpio-key.kl and sec_key.
For people don't want to do it manually, I make the 2 flashable files for Allow and Disallow the Home key for Note and tested for working, at least on my Galaxy Note.
The 2 flashable files to do that is attached below. Copy to SDCard/ExternalCard and flash them in CWM Recovery, then reboot:
works for me. thx.
Sent from my GT-N7000 using XDA
kui425 said:
works for me. thx.
Sent from my GT-N7000 using XDA
Click to expand...
Click to collapse
OK. Hope that help.
Thanks for reply.
flashable zip
Could you make a flashable zip file for this?
Would be great!
Thanks in advance...
bunique said:
Could you make a flashable zip file for this?
Would be great!
Thanks in advance...
Click to expand...
Click to collapse
Yes..please.
+1
GT-N7000-LiquidSmooth-V [2.2] .
Wish I could give u more thanks for this. Works like a charm. Very very annoying that the home button would wake the phone up by default.
Flashable files to Allow or Disallow the wake-up function of Home key for Note
Flashable file for Allow and Disallow the Home key for Note
Phew! I tried my best to make the flashable file and tested for working, at least on my Galaxy Note.
Here is the link for Allow and Disallow the Home key for Note.
Copy to your SDCard and flash them with CWM Recovery.
Hope them could help.
bunique said:
Could you make a flashable zip file for this?
Would be great!
Thanks in advance...
Click to expand...
Click to collapse
firasusman said:
Yes..please.
+1
GT-N7000-LiquidSmooth-V [2.2] .
Click to expand...
Click to collapse
a big THANKS for the flashable files!
will give it a try....
Works perfectly, thanks
Cassie's xtra lite v2.9
Good Job
AWESOME. thanks!
Do not work on JB SLIM BEAN
Sent from my GT-N7000 using Xparent ICS Blue Tapatalk 2
I can not thank you enough for this as I have struggled with this issue for the past 12 months and as my job is a dirty one I can feel my phone getting hot in my pocket but cannot take it out as by hands are black. Thanks.
looks like this is not working in Jelly Bean / Cyanogen 10.1
vasiaeva said:
Do not work on JB SLIM BEAN
Sent from my GT-N7000 using Xparent ICS Blue Tapatalk 2
Click to expand...
Click to collapse
does somebody know whitch file(s) to edit for this to work in Jelly Bean or Cyanogenmod 10.1.
I'm on asylum 4.2.2.this is a cyanogen 10.1 mod , like slim bean .
It looks like we need to change more/other files for this to work , wile when i canche the here adviced ones , nothing seems to change ,, the volume buttens still behave the same.
/system/usr/keylayout/sec_key.kl is changed to..
key 115 POWER WAKE
key 114 POWER WAKE
key 102 HOME WAKE
key 107 ENDCALL
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 232 DPAD_CENTER
key 116 POWER WAKE
key 212 CAMERA WAKE
look at line 115 and 114 this would change te volume button function in the power funtion , i suspect , AM I RIGHT ????
in fact this does not change the behavior of the volume buttons at all it still changes te volume , btw i did restart after changing te sec_key.kl file
please advice manny thanks in advance
Is it possible to add long press action to Home key or other capacitive keys like in CM roms ? How to make it turn on flash light ?
Any idea if this works on the s4 too?
StuartTheFish said:
Any idea if this works on the s4 too?
Click to expand...
Click to collapse
Just tried, and yes it does work on the s4. We only have the one file though, gpio-key.kl. Same location though. Find the line that says home, and delete the word wake. Save changes and reboot, job done!

[Guide How-to] Replace Recents with Menu

This guide is for the Samsung Tab S 8.4 and should work on all variants.
Keylayout edits:
system/usr/keylayout/Generic.kl
Change key 254 from APP_SWITCH to MENU
key 254 MENU
Then reboot the Tab to take effect.
To regain recent apps I use Nova Launcher, Gestures and Buttons and program my second menu key push to recent apps.
As soon as we have a custom recovery I will have a mod to program long press menu to recent apps.
Thanks tdumham for your help.
Enjoy!!!
EMSpilot said:
This guide is for the Samsung Tab S 8.4 and should work on all variants.
Keylayout edits:
system/usr/keylayout/Generic.kl
Change key 254 from APP_SWITCH to MENU
key 254 MENU
To regain recent apps I use Nova Launcher, Gestures and Buttons and program my second menu key push to recent apps.
As soon as we have a custom recovery I will have a mod to program long press menu to recent apps.
Thanks tdumham for your help.
Enjoy!!!
Click to expand...
Click to collapse
confirmed to work with 10.5, had to reboot after edit to take effect.
Thanks!
I noticed with the last firmware update a LONG press on recents will bring up the Menu.
LMT pie apk
Nexus 5 via Tapatalk
Now that there's twrp is there a zip for this yet?
Sorry for reviving an old thread but this helped me immensely and is a much better solution than the stock behavior but does anyone know what can be changed so that I can put the Recents on the Menu key via a long press? Right now long press brings up Search which I have no use for. With the solution above I can access app options like I want to but bring up recents requires a trip back to the Home screen to take advantage of Nova Launcher's gestures.
Thanks in advance for anyone who can assist or point me to a thread with the answer. The search brought me to this thread to begin with.

How to remap hardware button on Ivan lollipop?

Hello, I'm running Ivan lollipop on my phone.. But I wanted the menu button to act as APP_SWITCH button..
I tried to play with the file generic.kl but I'm not expert..
Someone can help me please?
erto90 said:
Hello, I'm running Ivan lollipop on my phone.. But I wanted the menu button to act as APP_SWITCH button..
I tried to play with the file generic.kl but I'm not expert..
Someone can help me please?
Click to expand...
Click to collapse
of course you know that long-pressing it show up recent apps right? you want the recents with single tap only?
moly82 said:
of course you know that long-pressing it show up recent apps right? you want the recents with single tap only?
Click to expand...
Click to collapse
yes, want recents with a single tap!
Do you know how to do?
However i'm italian like oyu, if you got a solution, hit me on hangout ([email protected])
erto90 said:
yes, want recents with a single tap!
Do you know how to do?
However i'm italian like oyu, if you got a solution, hit me on hangout ([email protected])
Click to expand...
Click to collapse
don't know sorry. but maybe @deepesh.tickoo (author of this nice how-to http://forum.xda-developers.com/xiaomi-mi-3/general/guide-how-to-enable-screen-nav-bar-t2968850) could help you? maybe you just need to change somehow the /usr/keylayout/atmel-maxtouch.kl file?
It's a kernel feature. So your out of luck.
Also you might want to post in his thread as that rom is not here
Alternative method:-
Install xposed framework.
soft reboot.
download gravity box module.(KitKat version).
Activate it.
soft reboot.
open gravity box,
goto navigation key actions
remap keys.
Done.
on phone now,
will upload ss later.
Xposed and lollipop... No way
erto90 said:
Hello, I'm running Ivan lollipop on my phone.. But I wanted the menu button to act as APP_SWITCH button..
I tried to play with the file generic.kl but I'm not expert..
Someone can help me please?
Click to expand...
Click to collapse
Hi, try go to system/usr/keylayout and open atmel-maxtouch.kl
From there, rename "key 139 MENU VIRTUAL" to "key 139 APP_SWITCH VIRTUAL"
Then save and reboot. Worked for me.
reddygun2848 said:
Hi, try go to system/usr/keylayout and open atmel-maxtouch.kl
From there, rename "key 139 MENU VIRTUAL" to "key 139 APP_SWITCH VIRTUAL"
Then save and reboot. Worked for me.
Click to expand...
Click to collapse
How can I excess menu...? Is 3 dot menu option appears........
reddygun2848 said:
Hi, try go to system/usr/keylayout and open atmel-maxtouch.kl
From there, rename "key 139 MENU VIRTUAL" to "key 139 APP_SWITCH VIRTUAL"
Then save and reboot. Worked for me.
Click to expand...
Click to collapse
It works but I lost vibration and button backlight..
reddygun2848 said:
Hi, try go to system/usr/keylayout and open atmel-maxtouch.kl
From there, rename "key 139 MENU VIRTUAL" to "key 139 APP_SWITCH VIRTUAL"
Then save and reboot. Worked for me.
Click to expand...
Click to collapse
After doing this 3dot menu option is not showing in Chrome... I am not able to access menu in Chrome... ?

Categories

Resources