- 08-18-2010, 07:33 PM #1
Developer
- Join Date
- Apr 2010
- Posts
- 407
- Thanks
- 20
- Thanked 236 Times in 59 Posts
- Downloads
- 7
- Uploads
- 0
[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.Last edited by dext3r; 08-19-2010 at 04:48 AM.
-
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)
- 08-19-2010, 12:49 AM #2
Of Mice and Modders
- Join Date
- Mar 2010
- Posts
- 54
- Thanks
- 7
- Thanked 1 Time in 1 Post
- Downloads
- 1
- Uploads
- 0
Last edited by kniffo80; 08-19-2010 at 01:42 AM.
- 08-19-2010, 02:00 AM #3
Developer
- Join Date
- Apr 2010
- Posts
- 407
- Thanks
- 20
- Thanked 236 Times in 59 Posts
- Downloads
- 7
- Uploads
- 0
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.
- 08-19-2010, 02:14 AM #4
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.
-
The Following User Says Thank You to nadlabak For This Useful Post:
kniffo80 (08-19-2010)
- 08-19-2010, 03:01 AM #5
Of Mice and Modders
- Join Date
- Mar 2010
- Posts
- 54
- Thanks
- 7
- Thanked 1 Time in 1 Post
- Downloads
- 1
- Uploads
- 0
Last edited by kniffo80; 08-19-2010 at 05:30 AM.
- 08-19-2010, 04:50 AM #6
Developer
- Join Date
- Apr 2010
- Posts
- 407
- Thanks
- 20
- Thanked 236 Times in 59 Posts
- Downloads
- 7
- Uploads
- 0
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.
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
- 08-19-2010, 05:24 PM #7
Itty Bitty Modder
- Join Date
- Mar 2010
- Posts
- 4
- Thanks
- 6
- Thanked 0 Times in 0 Posts
- Downloads
- 1
- Uploads
- 0
- 08-22-2010, 07:10 PM #8
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 ?
- 09-13-2010, 05:14 PM #9
Itty Bitty Modder
- Join Date
- Sep 2010
- Posts
- 2
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Downloads
- 0
- Uploads
- 0
- 09-23-2010, 03:12 AM #10
Itty Bitty Modder
- Join Date
- Sep 2010
- Posts
- 6
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Downloads
- 1
- Uploads
- 0
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
- 09-23-2010, 04:33 AM #11
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.
- 09-24-2010, 03:00 AM #12
Itty Bitty Modder
- Join Date
- Sep 2010
- Posts
- 6
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Downloads
- 1
- Uploads
- 0
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.
- 09-25-2010, 08:54 AM #13
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)
-
The Following User Says Thank You to adlx For This Useful Post:
Skrilax_CZ (09-27-2010)
- 09-27-2010, 01:11 AM #14
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.
- 10-06-2010, 06:56 AM #15
Itty Bitty Modder
- Join Date
- Sep 2010
- Posts
- 6
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Downloads
- 1
- Uploads
- 0
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
LinkBacks (?)
- 10-10-2010, 08:36 AM


LinkBack URL
About LinkBacks
Reply With Quote
i took the keyboard layout from my old rom 


