April 16, 2014, 06:15:44 PM

collapse

* Sponsors


* Hot Topics


* Facebook Like


* Sponsors


* Board Stats

  • stats Total Members: 1215
  • stats Total Posts: 6353
  • stats Total Topics: 980
  • stats Total Categories: 3
  • stats Total Boards: 17
  • stats Most Online: 164

Author Topic: German Keyboard Folio problem solved!  (Read 1895 times)

biday

  • Newbie
  • *
  • Posts: 19
    • View Profile
German Keyboard Folio problem solved!
« on: February 27, 2012, 06:22:11 PM »
Hi guys, after I read GodfatherIP's topic about remapping hardware button, I have an idea of remapping the Keyboard Folio with German layout. The problem was Honeycomb regconised the keyboard as English layout in almost every input method, exept Flex T9, which is so annoying and laggy and Lenovo have no intention in fixing it.

Resource:

- my "original" Generic.kl file
- The keychar map file Generic.kcm I got from Riffer in XDA-Dev through his solution for XOOM: http://forum.xda-developers.com/showthread.php?t=1196776

thank you Riffer

Im not sure Riffer's update.zip could be modified with Lenovo original Generic.kl because I have not enough knowledge about how an undate.zip created. So that I used the method that GodfatherIP did to remap the hardware buttons. http://www.thinkpadtabletforums.com/thinkpad-tablet-root-hacks-mods-and-development/remapping-hardware-buttons/

thank you GodfatherIP

Steps:

- Reboot the TPT in CWM, plug it in your PC with USB
- in CWM choose "Mounts and storage" then "mount /system"
- execute cmd.exe on your PC, check if your device correctly connected with "adb devices" and then put the commands in:

adb remount
adb pull /system/usr/keylayout/Generic.kl
adb pull /system/usr/keychars/Generic.kcm

move this two files to another place for backup, copy and overwrite the files I provide into your adb's default folder and then continue with the commands:

adb push Generic.kl /system/usr/keylayout/
adb push Generic.kcm /system/usr/keychars/
adb shell
chmod 644 /system/usr/keylayout/Generic.kl
chown system.system /system/usr/keylayout/Generic.kl
chmod 644 /system/usr/keychars/Generic.kcm
chown system.system /system/usr/keychars/Generic.kcm
exit
adb reboot

- Now your TPT is rebooted, go into Settings/Language & Input/ and choose Android's default German keyboard as your input method and the Keyboard Folio responses exactly as a QWERTZ layout. I've tried it with some other input methods, for example Go Tieng Viet, an Vietnamese-input keyboard app and it recognise the correct keychar too.

Hope you german members can do it too and report if smt wrong appears.

http://dl.dropbox.com/u/36540576/Generic.kcm
http://dl.dropbox.com/u/36540576/Generic.kl
« Last Edit: February 27, 2012, 06:24:43 PM by biday »

mvcube

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: German Keyboard Folio problem solved! Made Ctrl key (sort of) work!
« Reply #1 on: March 27, 2012, 06:15:19 AM »
Hi,

I had some trouble with the German Folio keyboard, too, but it was unrelated to the German mapping. This simply works for me with the German Android keyboard driver active. I had a problem with the Menu/Ctrl key. The cut&paste keyboard shortcuts Ctrl+X/C/V simply didn't work. Some applications deal with them and some others don't, notably WPS Office. In any case, the menu is triggered when the key is released. A standard PC USB keyboard works fine so it must have to do with the Folio keyboard.

After reading the Android documentation about keyboard layout files at http://source.android.com/tech/input/key-layout-files.html, it occurred to me that there is no need to modify Generic.kl because Android has a certain search order for these files. I created a copy of Generic.kl under the name Vendor_1241_Product_0003.kl which is only used when the Folio keyboard is detected. You can learn about which files are in use with help of the Android dumpsys command (see the url above for details).

My first attempt at changing the behavior of Menu/Ctrl was to replace all occurrences of MENU by CTRL_LEFT in the file, but I was unsuccessful. :( Playing around with the Android getevent command (see same link above) revealed a strange peculiarity of the Folio keyboard: The Menu key is part of the trackpoint device, not of the keyboard. This makes it impossible to use the key as a modifier for the keyboard because this seemingly only works as long as modifier and modified keys come from the same device.

I (sort of) solved the problem by sacrificing the left Alt key (which is hopefully not used by any application.) This is key # 56 which now produces CTRL_LEFT. The position of Alt just left of the space bar matches the position of the command key on my Macs so this feels quite natural. I left Menu (# 139) alone but you are free to assign any other function, except any of the modifiers, to it.

All this hadn't been possible without the yareftpt root exploit which saved me because Don's original exploit didn't work on my updated device. Thanks again!
« Last Edit: March 27, 2012, 06:17:42 AM by mvcube »

mathiasp

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: German Keyboard Folio problem solved! Made Ctrl key (sort of) work!
« Reply #2 on: April 17, 2012, 05:41:38 AM »
[snip]
I (sort of) solved the problem by sacrificing the left Alt key (which is hopefully not used by any application.) This is key # 56 which now produces CTRL_LEFT. The position of Alt just left of the space bar matches the position of the command key on my Macs so this feels quite natural. I left Menu (# 139) alone but you are free to assign any other function, except any of the modifiers, to it.

All this hadn't been possible without the yareftpt root exploit which saved me because Don's original exploit didn't work on my updated device. Thanks again!

Great tip, thanks!

I remapped the Caps Lock key, since emacs (vnc) uses alt quite a lot, and who uses caps lock? ;)

Again, thanks for making my remote desktop much more usable!

Mathias

 




SimplePortal 2.3.3 © 2008-2010, SimplePortal