[HOW-TO] Fix Mini Pro - SK17 - Physical Keyboard - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A
Hi everybody,
As a XMP user, I know how it's difficult to deal with our loved physical keyboards when we use customs roms, so I make this post to list all the known "fixs" about the physical keyboard issues.
First, you have to know that Sony was providing the "software" till ICS only, because the last OFW made by Sony is based on Android 4.0.4. So the best support you can have for HW keyboard is under ICS and GB.
GB & ICS Fix (Keyboard Layout)
A usefull guide made by DooMLoRD can be found here:
http://forum.xda-developers.com/showthread.php?t=1224511
JB and above fix (Keyboard Layout and "Auto-correct")
On most of JB Roms, you can change your keyboard Layout under :
Settings > Input & Language > Physical Keyboard (pm8058-keypad) > Configure Keyboard Layout
If it doesnt work, you can "mod" the keyboard layout:
- By HexaEdition
- By editing /system/usr/keylayout/qwerty.kl :
The files looks like this:
Code:
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 212 CAMERA
key 16 Q
key 17 W
key 18 E
key 19 R
key 20 T
key 21 Y
key 22 U
key 23 I
key 24 O
key 25 P
key 26 LEFT_BRACKET
key 27 RIGHT_BRACKET
key 43 BACKSLASH
key 30 A
key 31 S
key 32 D
key 33 F
key 34 G
key 35 H
key 36 J
key 37 K
key 38 L
key 39 SEMICOLON
key 40 APOSTROPHE
key 14 DEL
key 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 53 SLASH
key 28 ENTER
key 56 ALT_LEFT
key 100 ALT_RIGHT
key 42 SHIFT_LEFT
key 54 SHIFT_RIGHT
key 15 TAB
key 57 SPACE
key 150 EXPLORER
key 155 ENVELOPE
key 12 MINUS
key 13 EQUALS
key 215 AT
# On an AT keyboard: ESC, F10
key 1 BACK WAKE_DROPPED
key 68 MENU WAKE_DROPPED
For example, if you want to invert Q to A, replace
"key 16 Q" to "key 16 A" and "key 30 A" to "key 30 Q".
About Key Codes (Numbers), here's a pic to help :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Also, here's the layout of the default Qwerty keyboard so you can compare (image size is too big for the forums):
http://ecx.images-amazon.com/images/I/81SKnyssAfL._SL1500_.jpg
About the last part, (WAKE/WAKE_DROPPED), it simply determines if the key wake the screen:
WAKE = Wake the screen
WAKE_DROPPED= Don't wake the screen
About auto-replace, auto-capitalisation and auto-punctuate, as I said, there's no official support for our HW keyboards under JB and above, BUT there are workarounds,
by using third party keyboard apps.
Those apps were reported to work:
- SwiftKey (Trial)
- Multiling (Free)
- TouchPal (Free)
- Dodol (Free)
About Backlight & Sym key :
I know you can have issue with those, and I know fixs exists, but they are often proper to a ROM, so, I will not list those fixs here. But Note some of the provided keyboard above might fix the Sym Key issue.
NOTE: If for some reasons, you want the stock keyboard apk, you can exctract it from the stock firmwares, wich can be found here:
- http://forum.xda-developers.com/showpost.php?p=27376024&postcount=3
- http://forum.xda-developers.com/wiki/SE_Xperia_Mini_Pro
- http://forum.xda-developers.com/showthread.php?t=1477440
- http://talk.sonymobile.com/t5/Andro...n-ICS-Ice-Cream-Sandwich-and/m-p/154390#M3385
I hope I helped
Yo try read my post in the general forum i think i found a keybaord that can cure our headaches
Related
[Q] Looking for a fix-button.zip
Hi all, I have a GT-I9000 with a T959 motherboard inside, (my mistake, i bought the wrong board). The phone works fine but T959's have 4 buttons and my body is a GT-I9000 with 3 buttons. After searching the web, I came across a reference to a file called fix-button.zip thats supposted to solve my problem. I can't find this file anywhere. Is there any way to change the configration on my phone so that the three buttons are recognized? Thanks
Did you install a I9000 rom or a T959 rom? ---------- Post added at 08:57 PM ---------- Previous post was at 08:39 PM ---------- I believe the melfas_touchkey.kl file is what you need to focus on. Its located at: /system/usr/keylayout/ Here is what a T959 Froyo ROM looks like: Code: key 158 MENU WAKE_DROPPED key 139 HOME WAKE_DROPPED key 28 BACK WAKE_DROPPED key 107 SEARCH WAKE_DROPPED What a T959 Gingerbread Rom looks like: Code: key 139 MENU WAKE_DROPPED key 158 BACK WAKE_DROPPED key 217 SEARCH WAKE_DROPPED key 102 HOME 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 Here is what is in I9000 GB ROM: Code: key 139 MENU VIRTUAL key 158 BACK VIRTUAL key 217 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 hope the info helps
[Q] Compile CWM Recovery Compile Power Key Issue
I've Compiled CWM Recovery 6.0.1.2 for my Hipstreet Flare The recovery boots and the UP and DOWN for the menu works with the Vol. UP and Vol. DOWN. I can't tell you if the BACK button works because I can't SELECT anything. The device has 4 buttons: VOLUME UP VOLUME DOWN BACK POWER When I use CAT on the keylayout file sun4i-keyboard.kl I get this: Code: key 102 HOME WAKE key 1 BACK WAKE key 139 MENU WAKE_DROPPED key 115 VOLUME_UP key 114 VOLUME_DOWN When I use CAT on the keylayout file axp20-supplyer.kl.kl I get this: Code: key 116 POWER WAKE key 102 HOME WAKE key 1 BACK WAKE key 139 MENU WAKE_DROPPED key 115 VOLUME_UP key 114 VOLUME_DOWN There are other .kl files but some get rather long. What do I need to change or add to by build of CWM Recovery so the POWER button and BACK work.
[TUT] Disable Capacitive touch buttons+Home key on Xperia 2011 MDPI
[Only for those who don't like Capacitive touch buttons+Home key] 1 First of all make sure you have on-screen buttons enabled. If you don't have on-screen buttons then just go to this thread to find out how to enable them- http://forum.xda-developers.com/showthread.php?t=1940842 2 Download a root explorer or any similar explorer like that. 3 Navigate to system>usr>keylayout, and look for a file named as " cyttsp_key.kl ". 4 Select it and open it as text with Root explorer's text editor. 5 There you will find following lines- #KEY_MENU, KEY_BACK key 139 MENU VIRTUAL key 158 BACK VIRTUAL 6 Now all you have to do put # before these lines as shown below- #key 139 MENU VIRTUAL #key 158 BACK VIRTUAL And done. Now if you want to disable home key also then- 7 Again navigate to system>usr>keylayout, and look for a file named as " pm8058-keypad.kl ". 8 Select it and open it as text with Root explorer's text editor. 9 There you will find following lines- # this corresponds to kernel/arch/arm/mach-msm/keypad-hallon.c # # defines for values are in frameworks/base/include/ui/KeycodeLabels.h key 115 VOLUME_UP WAKE key 114 VOLUME_DOWN WAKE # KEY_HOME key 102 HOME WAKE_DROPPED # CAMERA Related Key key 212 CAMERA key 528 FOCUS 10 Now again all you have to do put # before the line " key 102 HOME WAKE_DROPPED" as shown below- # this corresponds to kernel/arch/arm/mach-msm/keypad-hallon.c # # defines for values are in frameworks/base/include/ui/KeycodeLabels.h key 115 VOLUME_UP WAKE key 114 VOLUME_DOWN WAKE # KEY_HOME #key 102 HOME WAKE_DROPPED # CAMERA Related Key key 212 CAMERA key 528 FOCUS 11 Now just reboot and DONE! This tutorial should be applicable to Xperia Ray users also because it has same button like our devices. Press thanks if you think this post is useful to you.
Nice guide, been searching for this while I'm using Paranoid Android ( 3 months ago ) via XDA for Timescape™
Diaz1999 said: Nice guide, been searching for this while I'm using Paranoid Android ( 3 months ago ) via XDA for Timescape™ Click to expand... Click to collapse
Mankotialovely said: Click to expand... Click to collapse Are we can disable the "big & ugly" home key with adding "#" in front of HOME_KEY via XDA for Timescape™
Diaz1999 said: Are we can disable the "big & ugly" home key with adding "#" in front of HOME_KEY via XDA for Timescape™ Click to expand... Click to collapse Yes my friend, sure.
Home key is also added in this tutorial.
Great but one question, after performing this will keys work in cwm or not ?
vivek856 said: Great but one question, after performing this will keys work in cwm or not ? Click to expand... Click to collapse Keys will definitely work in cwm.
Disable Home Thanks for the idea, and it works, But my Home key is nonfunctional , so i would like to change my home key action into my camera key . IS it possible, I mean when i press camera key i want to wake up my 4n
sesath said: Thanks for the idea, and it works, But my Home key is nonfunctional , so i would like to change my home key action into my camera key . IS it possible, I mean when i press camera key i want to wake up my 4n Click to expand... Click to collapse Yes it is possible but before that can you provide me little info about your rom and phone ?
Hello. Can make longpressing the menu button to bring tasks list? (multistak app list). Tq!
[Q] Huawei U8350 Icy Tiramisu Keyboard
I am trying to fix the Physical keyboard to have full functionality (smiley and symbol keys). From what I can tell the issue lies in QWERTY.kl which is missing a few lines from the stock ROM Code: #key 11 0 key 11 SMILE #/* < BU5D09842 weixinghai 20100513 begin */ key 163 MEDIA_NEXT WAKE key 165 MEDIA_PREVIOUS WAKE #/* BU5D09842 weixinghai 20100513 end> */ key 194 SYM Now I've tried editing the qwerty.kl that comes with Icy Tiramisu with various text editors and when I reboot it's as though the keyboard is not being recognised at all. I've even just added 1 line (key 194 SYM) with the same result. I've had a look at the fixed HuaweiIME.apk that zenaufa made for this ROM and it seems to contain all the correct elements for the smiley and symbol button to work and from what I can tell the changes to qwerty.kl should work. Can anyone give me any insight into what could be going wrong?
Enable On-Screen Btn and Disable hw Btn
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 UPDATE: For Customize Navbar Go to Settings-->Buttons
Just remember to remove the # - before you update the Cyanogenmod version to a newer.