FORUMS
Remove All Ads from XDA

[Q] QWERTZ -> QWERTY on a Desire Z

181 posts
Thanks Meter: 34
 
By bonstio, Senior Member on 23rd February 2011, 08:01 PM
Post Reply Email Thread
I recently obtain a Desire Z and immediately rooted and installed various ROMS. All is working great.

The problem is the hardware keyboard is a qwertz one (I bought the phone in Switzerland) and not a qwerty one. I want to the switch the keymap around such that z prints y and vice versa. I've set the keyboard setting to UK and US English but it has no effect on the h/w k/b.

I'm familiar with adb but don't know which files to hack on. Please can someone point me in the right direction?

Thanks!
 
 
24th February 2011, 10:31 AM |#2  
snudel's Avatar
Senior Member
Flag Berlin
Thanks Meter: 8
 
More
the hardware keyboard layout is fixed.
the setting in menu is only changing the software keyboard.
24th February 2011, 08:07 PM |#3  
OP Senior Member
Thanks Meter: 34
 
More
Thanks for the reply.

But I don't buy it. This can be changed somehow and someone knows how. I'll keep hacking and post back with any useful results.
24th February 2011, 08:27 PM |#4  
Senior Member
Flag California, USA
Thanks Meter: 505
 
More
I have a sneaking feeling that it should be able to be cooked in. Even on Winmo, you can change your keyboard's layout, i don't see why android, a platform that is much more advanced, would not be able to do that.
24th February 2011, 09:48 PM |#5  
Senior Member
Flag UK
Thanks Meter: 6
 
More
This is just a hunch, but you probably just need to modify /system/usr/keylayout/vision-keypad.kl and possibly /system/usr/keylayout/qwerty.kl (they're both plain text files, but with unix line endings)

On a UK QWERTY Desire Z:

Key 21 is Y
Key 44 is Z

If your files have them round the other way, it should just be a simply case of swapping them and rebooting (nandroid first though!)
25th February 2011, 08:44 AM |#6  
OP Senior Member
Thanks Meter: 34
 
More
Great. I tried those files and no good so I went for the heavy handed approach after mounting system as rw and su'ing:

cd /system/usr/keylayout
sed -i s/Y/--/ *
sed -i s/Z/Y/ *
sed -i s/--/Z/ *

Job done! Thanks for your help
14th June 2011, 06:14 PM |#7  
Junior Member
Thanks Meter: 0
 
More
For the almost-beginners:
Connect your phone in sync-mode, run cmd, navigate do adb directory (search forum for adb if you didn't get it) and type:
Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/usr/keylayout
sed -i s/Y/--/ *
sed -i s/Z/Y/ *
sed -i s/--/Z/ *
Best regards to all
20th September 2011, 09:13 PM |#8  
Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by DRuMah

For the almost-beginners:
Connect your phone in sync-mode, run cmd, navigate do adb directory (search forum for adb if you didn't get it) and type:

Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/usr/keylayout
sed -i s/Y/--/ *
sed -i s/Z/Y/ *
sed -i s/--/Z/ *
Best regards to all

shall be rooted to run these?
am getting access denied!!!!!11111
21st September 2011, 03:59 AM |#9  
Senior Member
Thanks Meter: 32
 
More
Well obviously you need root to write to /system/ partition.
12th December 2011, 11:42 AM |#10  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by DRuMah

For the almost-beginners:
Connect your phone in sync-mode, run cmd, navigate do adb directory (search forum for adb if you didn't get it) and type:

Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/usr/keylayout
sed -i s/Y/--/ *
sed -i s/Z/Y/ *
sed -i s/--/Z/ *
Best regards to all

Hi, I've tried this on my Desire Z and it indeed switched the 'y' and 'z' character keys on the hardware keyboard.

The downside is that is also changes the corresponding FN symbols (i.e. number six character '6' and underscore character '_').

Do you know wether it is possible to switch the letters but not the symbols?
5th February 2012, 07:39 PM |#11  
OP Senior Member
Thanks Meter: 34
 
More
I don't know about the symbols. My guess is you have to live with it. I do. Yes, it's annoying but IMO about 10% as annoying as the original problem.

I would also add that on ICS, the above changes b0rked the keyboard (probably due to the sed script replacing stuff it ought not have). So I used this instead:

Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/usr/keylayout
sed -i s/'key 44 '/'key XX '/g *
sed -i s/'key 21 '/'key 44 '/g *
sed -i s/'key XX '/'key 21 '/g *
adb reboot
If I have to do this one more time, I'm going to make an app.....
Post Reply Subscribe to Thread

Tags
desire z, hardware keyboard, keyboard, remap

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes