Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    offline Developer
    Join Date
    Apr 2010
    Posts
    407
    Thanks
    20
    Thanked 236 Times in 59 Posts
    Downloads
    7
    Uploads
    0

    Solution [HOWTO] Switch keyboard layout (azerty/qwerty etc..)

    If you are using any custom rom, and it does not match your current hardware keyboard, please find the original rom , and extract the file "/system/etc/motorola/12m/key_code_map.txt" from your original firmware, this file maps the keys to your original keyboard layout.

    copy the "key_code_map.txt" to the new firmware into the exact same location, and you're good to go with a correct hardware keyboard layout.

    Maybe some nice people will attach the keyboard layouts of non-qwerty layouts to this thread, so you dont have to dig up the old roms.
    as example i have attached the QWERTY layout text file here.

    update,
    please add the file into the /data/local/12m folder as well, if you experience mapping not to work.
    create folders as needed.

    if you need additional national mapping,
    please update the "/system/usr/keychars/sholes-keypad.kcm.bin" file as well, using the same procedure copying it from the original stock firmware you had before.
    Attached Files Attached Files
    Last edited by dext3r; 08-19-2010 at 04:48 AM.

  2. 4 Users Say Thank You to dext3r For This Useful Post

    mtvdeo (08-19-2010), sublime1184 (08-18-2010), SuperJoker (08-21-2010), ZduneX25 (08-19-2010)

  3. #2
    offline Of Mice and Modders
    Join Date
    Mar 2010
    Posts
    54
    Thanks
    7
    Thanked 1 Time in 1 Post
    Downloads
    1
    Uploads
    0
    Quote Originally Posted by dext3r View Post
    If you are using any custom rom, and it does not match your current hardware keyboard, please find the original rom , and extract the file "/system/etc/motorola/12m/key_code_map.txt" from your original firmware, this file maps the keys to your original keyboard layout.

    copy the "key_code_map.txt" to the new firmware into the exact same location, and you're good to go with a correct hardware keyboard layout.

    Maybe some nice people will attach the keyboard layouts of non-qwerty layouts to this thread, so you dont have to dig up the old roms.
    as example i have attached the QWERTY layout text file here.
    it's not working for me. still have QWERTY as original is QWERTZ i took the keyboard layout from my old rom
    EDIT: also, after applying from GOT modding qwertz, it's not working perhaps, it has something to do with your used ramdisk?
    Last edited by kniffo80; 08-19-2010 at 01:42 AM.

  4. #3
    offline Developer
    Join Date
    Apr 2010
    Posts
    407
    Thanks
    20
    Thanked 236 Times in 59 Posts
    Downloads
    7
    Uploads
    0
    Quote Originally Posted by kniffo80 View Post
    it's not working for me. still have QWERTY as original is QWERTZ i took the keyboard layout from my old rom
    EDIT: also, after applying from GOT modding qwertz, it's not working perhaps, it has something to do with your used ramdisk?
    no no...

    this is the keyboard solution(98% sure)... i used the same solution on droid2 build im testing.. power button uses different value than our milestone sends..

    ok, try this then as well put it into /data/local/12m/
    create folders if needed.. the library also checks this location.

  5. #4
    nadlabak's Avatar
    offline Developer
    Join Date
    Feb 2010
    Location
    Praha
    Posts
    86
    Thanks
    3
    Thanked 79 Times in 34 Posts
    Downloads
    14
    Uploads
    0
    On Milestone, the /system/usr/keychars/sholes-keypad.kcm.bin is not a file, but only a symlink to sholesp2a-keypad.kcm.bin, which is the actual keychar file. The keyboard layout change script for OpenRecovery replaces the sholesp2a-keypad.kcm.bin.
    On Droid, the actual keychar file is the sholes-keypad.kcm.bin.
    Unfortunately, Dext3r left it in MotoFrenzy the Droid way, therefore the OR script does not work there.
    If you edit the OpenRecovery/bin/change_keyboard_layout.sh script and replace every occurrence of sholesp2a with sholes, then the script will work for MotoFrenzy too.
    Last edited by nadlabak; 08-19-2010 at 03:23 AM.

  6. The Following User Says Thank You to nadlabak For This Useful Post:

    kniffo80 (08-19-2010)

  7. #5
    offline Of Mice and Modders
    Join Date
    Mar 2010
    Posts
    54
    Thanks
    7
    Thanked 1 Time in 1 Post
    Downloads
    1
    Uploads
    0
    Quote Originally Posted by nadlabak View Post
    On Milestone, the /system/usr/keychars/sholes-keypad.kcm.bin is not a file, but only a simlink to sholesp2a-keypad.kcm.bin, which is the actual keychar file. The keyboard layout change script for OpenRecovery replaces the sholesp2a-keypad.kcm.bin.
    On Droid, the actual keychar file is the sholes-keypad.kcm.bin.
    Unfortunately, Dext3r left it in MotoFrenzy the Droid way, therefore the OR script does not work there.
    If you edit the OpenRecovery/bin/change_keyboard_layout.sh script and replace every occurrence of sholesp2a with sholes, then the script will work for MotoFrenzy too.
    thanks nadlabak. the replace in the OpenRecovery Script worked. i copied the key char txt also to data/local/12m, checking now, if this is necessary. but now, i've got qwertz

    thanks!

    EDIT: copy the txt to the data/local/12m is not necessary!
    Last edited by kniffo80; 08-19-2010 at 05:30 AM.

  8. #6
    offline Developer
    Join Date
    Apr 2010
    Posts
    407
    Thanks
    20
    Thanked 236 Times in 59 Posts
    Downloads
    7
    Uploads
    0
    Quote Originally Posted by nadlabak View Post
    On Milestone, the /system/usr/keychars/sholes-keypad.kcm.bin is not a file, but only a symlink to sholesp2a-keypad.kcm.bin, which is the actual keychar file. The keyboard layout change script for OpenRecovery replaces the sholesp2a-keypad.kcm.bin.
    On Droid, the actual keychar file is the sholes-keypad.kcm.bin.
    Unfortunately, Dext3r left it in MotoFrenzy the Droid way, therefore the OR script does not work there.
    If you edit the OpenRecovery/bin/change_keyboard_layout.sh script and replace every occurrence of sholesp2a with sholes, then the script will work for MotoFrenzy too.
    but heres the but.

    The mapping tables you refer to is the keyboard event key reported back referring to the 12m table.
    So if you solve the table in the 12m folder, you would be well on your way to a good solution.
    at least thats what i saw with the "power" button event code.

    Quote Originally Posted by nadlabak View Post
    OOn Droid, the actual keychar file is the sholes-keypad.kcm.bin.
    Unfortunately, Dext3r left it in MotoFrenzy the Droid way, therefore the OR script does not work there.
    if will make the link back to a physical file in next frenzy update and in my MotoBlur remake.
    You are correct, that is was easier this way but might not be compatible with a simple cp.
    Last edited by dext3r; 08-19-2010 at 04:50 AM. Reason: Automerged Doublepost

  9. #7
    offline Itty Bitty Modder
    Join Date
    Mar 2010
    Posts
    4
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Downloads
    1
    Uploads
    0
    Quote Originally Posted by kniffo80 View Post
    thanks nadlabak. the replace in the OpenRecovery Script worked. i copied the key char txt also to data/local/12m, checking now, if this is necessary. but now, i've got qwertz

    thanks!

    EDIT: copy the txt to the data/local/12m is not necessary!
    The same! It doesn't work for me just with the replace of "key_char_txt". I've got to edit "change_keyboard_layout" file.
    It work like a charm.
    Thanks

  10. #8
    offline Maybe Modder
    Join Date
    Mar 2009
    Posts
    20
    Thanks
    5
    Thanked 3 Times in 3 Posts
    Downloads
    76
    Uploads
    0
    why the button "m" writ ";" a solution ?

  11. #9
    offline Itty Bitty Modder
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by floofloo44 View Post
    why the button "m" writ ";" a solution ?
    Hi everybody, I have the same issue. (for a french azerty mapping)...
    It's kinda frustrating

    Great work anyway !

  12. #10
    offline Itty Bitty Modder
    Join Date
    Sep 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    1
    Uploads
    0
    Quote Originally Posted by ElioHoHo View Post
    Hi everybody, I have the same issue. (for a french azerty mapping)...
    It's kinda frustrating

    Great work anyway !
    I also need the french azerty mapping! But I am going to make it myself seeing as I can't find one to download. It's a lil bit of work but who cares.

    The only problem I have is that I have no clue how to acces the directory that's stated here.

    So how to I acces /system/etc/motorola/12m/key_code_map.txt.

    I would very much appreciate it if someone helped me with this small question so I can stop the frustration of different mapping.

    Thanks!!!!

    PS: I rooted my phone using nandroid, followed the how to on theunlockr.com

  13. #11
    offline Of Mice and Modders
    Join Date
    May 2010
    Posts
    62
    Thanks
    11
    Thanked 10 Times in 9 Posts
    Downloads
    52
    Uploads
    0
    If you actually rooted the phone you can access the directory that's stated here with Root Explorer program. This is just an example - there are another ways to access. But Root Explorer is very simple.

  14. #12
    offline Itty Bitty Modder
    Join Date
    Sep 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    1
    Uploads
    0
    Quote Originally Posted by Alex469 View Post
    If you actually rooted the phone you can access the directory that's stated here with Root Explorer program. This is just an example - there are another ways to access. But Root Explorer is very simple.
    I just tried to overwrite the key_code_map.txt file with it's new version using andexplorer. It said it wasn't able to copy, wich would be logical as the file is in use when the phone is powered on.

    Anyone have a clue how to fix this please ?
    I'm kinda desperate because this is the only place I could find some information on this subject.

  15. #13
    adlx's Avatar
    online Maker of adlxmod
    Join Date
    Jan 2010
    Location
    Madrid, Spain
    Posts
    1,034
    Thanks
    610
    Thanked 1,485 Times in 366 Posts
    Downloads
    30
    Uploads
    0
    I was browsing randomly on M3 and found that thread. Don't know if it can help for Milestone, but this is how we manage to have Cliq rom's (made for qwerty hw kbd) to recognize the azerty French hw kbd: adding keypad=azerty to the kernel parameter line.

    See http://modmymobile.com/forums/403-mo...=azerty+keypad .

    Hope it helps :-)
    Download my 1-click Recovery Flasher to flash a custom or stock recovery to your phone: Cliq, CliqXT, Backflip, ...

    Like my work? Support me: & visit my adlxmod site and follow me on Twitter
    Tambien me puedes encontrar en Movilzona (Esp)

  16. The Following User Says Thank You to adlx For This Useful Post:

    Skrilax_CZ (09-27-2010)

  17. #14
    Skrilax_CZ's Avatar
    offline Retired Moderator
    Join Date
    Feb 2007
    Location
    Prague
    Posts
    5,243
    Thanks
    1,881
    Thanked 3,118 Times in 1,338 Posts
    Downloads
    28
    Uploads
    29
    Milestone has it's own specific way. Actually there is some change in 02.38.1 French firmware as [MENTION=3114265]Alex469[/MENTION] reported:
    /system/usr/keychars/sholesp2a-keypad.kcm.bin and /system/usr/keylayout/sholesp2a-keypad.kl

    Thanks Semseddin for the signature and avatar.

  18. #15
    offline Itty Bitty Modder
    Join Date
    Sep 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    1
    Uploads
    0
    Quote Originally Posted by Skrilax_CZ View Post
    Milestone has it's own specific way. Actually there is some change in 02.38.1 French firmware as [MENTION=3114265]Alex469[/MENTION] reported:
    /system/usr/keychars/sholesp2a-keypad.kcm.bin and /system/usr/keylayout/sholesp2a-keypad.kl
    But when the device is powered on there is no way to change or overwrite all these files as they are in use. And when the device is powered down you obvisiously can't acces the data on the phone itself.

    Isn't there any mod for motorola milestone that:
    - Uses froyo but still with a working camera (and everything else)
    - Has a Dutch language (so my apps won't be all strictly in English)
    - Has root, this isn't a real necessity as the is the 'androot' app now a days.
    - Has a French hardware keyboard lay out.

    ??

    I'm really desperate on this one, especially the keyboard part. I bought a phone specifically with a hardware keyboard but I haven't been able to use it as the QWERTY configuration drives me mad every time I try to use it.
    Also putting the original version back in place and use 'androot' for root capabilities isn't a real option as I need my apps (and preferably the OS itself also) in Dutch.

    Will donate like a few euro's to someone who can help me fix my issues. Using paypal ofcourse

Page 1 of 2 12 LastLast

LinkBacks (?)

  1. 10-10-2010, 08:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •