PDA

View Full Version : ThinkOutside Stowaway DE German Key Layout


loki
03-09-2006, 07:53 AM
hey guys ...

i decided to bring the german layout for the stowaway bluetooth layout on my own. so, here i am and i hope i am nearly finished.

the most recent layout can always be found here:
http://lancode.de/nokia770/stowaway-de/

to install: simply download one of the map files copy it to your n770 and
launch /var/lib/install/usr/bin/xmodmap <path to your map-file>
but of course, there are some problems and i hope U know how to fix them ;)

my concept was to reflect the original storaway keys (in quertz layout) as they are printed on the keyboard!

known bugs are:
- the "#" key, wont create a " ' " if used with shift
- for that reason the " ' " has moved to the key "ß" when pressed with FN
- some of the keys (°, €, §, Yen-Sym, Pound-Sym, Ä, Ü, Ö, etc ...) wont wont work in Nokia's Texteditor but all these signs work in X Terminal
- to get @ and \ on the keyboard, u have to press FN and a or s, NOT FN
- {,}, and [,] are currently (in v3) not mapped, cause the keys on my stowaway produce no usable codes when pressed with FN or FN

So, my first conclusion is that my layout is with my keyboard the by far most usable ...

I can live with every error except the last 2!

- to get @ and \ on the keyboard, u have to press FN and a or s, NOT FN
- {,}, and [,] are currently (in v3) not mapped, cause the keys on my stowaway produce no usable codes when pressed with FN or FN


So, and now its up to you, to help me a bit ...

the keys a,s,d,f,g,h,j will produce the following keys if they become pressed normally! => 38,39,40,...,44

the problem is, that they produce the same keycodes if i am pressing them together with FN! xev reports that they make NO difference .. so i decided to try to bind them with blue FN

the keys a,s,d,f,g,h,j will produce the following keys if they become
pressed with FN! => 67,68,69,...,73 , but these keys are partly used from the n770 for maximize, minimize, toggle between fullscreen, so we cannot use them all :(
we can only use those which are not needed by the n770!


original:

keycode 67 = F1 F11
keycode 68 = F2 F12
keycode 69 = F3 F13
keycode 70 = F4 F14
keycode 71 = F5 F15
keycode 72 = F6 F16
keycode 73 = F7 F17
keycode 74 = F8 F18
keycode 75 = F9 F19
keycode 76 = F10 F20



modified:

keycode 67 = at
keycode 68 = backslash
keycode 69 = degree
keycode 70 = F4 F14
keycode 71 = F5 F15
keycode 72 = F6 F16
keycode 73 = F7 F17
keycode 74 = F8 F18
keycode 75 = F9 F19
keycode 76 = F10 F20


i have 2 possible solutions:

1st: somebody tells me why some keys wont work when they get pressed with FN! if we solve this problem i can simply bind the missing keys ( {,}, [,] )

2nd: we dont use the FN at all and replace it with the use of ALT! we can do this, because i tested them and i can report happly that they behave responsible :)

the problem is, i cant get the alt-key to work with any of my keys :(

loki
03-21-2006, 06:01 AM
hey guys ...
i finished the work for the german stowaway layout. its nearly finished yet and now the (qwertz) stowaway keyboard is very useable with the n770 :)

no more missing keys, (nearly) everything acts as you expect.
so have fun ;)

http://www.lancode.de/stowaway-de/

fpp
03-21-2006, 09:24 AM
Stupid question maybe, but... :-)

Once you have loaded an xmodmap layout, how do you "unload" it afterwards ? If you unplug the keyboard and want the original hardware keys to work again ?...

loki
03-21-2006, 05:44 PM
There is no real possibility to unload a key layout. Restarting the device reenables the default key layout. But there is no unload mode for xmodmap.

What u can do is:
1) restart your device to reenable the default keys
2) open xterminal and type "xmodmap -pke > xmodmap_backup" (this saves your current layout)
3) then u can load your new layout and if u dont like it u can type "xmodmap xmodmap_backup" to load your previous layout

this should work for all keycodes, but imho the modifiers (such as ALT, SHIFT, CTRL, FN ... ) wont be changed ... so restarting is the only properly method for changing the layout to its default.

greets,
loki

fpp
03-21-2006, 07:06 PM
Thanks Loki !

Simon
03-21-2006, 07:29 PM
Is there a way to change the keyboard repeat rate? I could never get my Stowaway USB keyboard to work since everytime I hit a key it would repeat forever. Other keyboards work fine with the 770 and the Stowaway worked fine on my Windows box. Just some odd combination of that keyboard and the 770 which is bad.

loki
03-22-2006, 06:08 AM
Yes there is a possibility.

But u have to know which keycode is assigned with every key because i only know how to change this for every key individually. So, u can disable the repeat function for the key "x" (keycode 53) with typing "xset770 -r 53 0" and reenable with "xset770 -r 53 2". As u can see, u have to do this for every key. So, i made a small script called "xsetrepreat" which can also be found here http://www.lancode.de/stowaway-de/

So u can enable your key repeating with "xsetrepreat 2" and disable it with "xsetrepreat 0".

greets
loki

vidioten
03-26-2006, 10:43 AM
An (almost) unrelated question. Is it possible to use the BT keyboard at the same time N770 is communcating to a phone (via BT)

/ Vidioten

Simon
03-26-2006, 04:11 PM
Thank you Loki! I am at work now and the keyboard is at home and my little USB power box needs some work (one of my rechargeable batteries died) but I shall try out your script later tonight.

Simon

Simon
03-27-2006, 03:47 PM
Well, I tried it. Still no good. The keys don't repeat now but you can only hit each key once! So typing 'Google' say you only get one 'o'. You have to hit a different key before trying to use a key twice. Very weird. It is like the key up codes never get received or something.

loki
03-28-2006, 04:08 AM
hey simon,

very weird. i can type normally 'google.de' ... no problem. every key fires only once after each hit ... so that u really have to press 'g' 'o' 'o' 'g' 'l' 'e'. there isnt anymore trouble of getting doubled chars after hitting a key. so, i cant complain about that ...

u can try other modes, perhaps usb keyboards behave on another way than bluetooth or especially my keyboard type. u can try : "xsetrepreat 1" or "xsetrepreat 3" ... at own risk ;). but even if there is some trouble after using the commands, simply restart the device.

i made a small video (http://www.lancode.de/stowaway-de/videos/video-0007.mp4) (poor quality, cause its only the cam of a cellphone) but i hope u can see, that its working fine at me.

greetz,
loki

Gourmet
03-28-2006, 06:49 AM
BTW, i'd like to mention that I worked on a french layout of the Stowaway Think Outside keyboard 2 months ago.
It's not complete but you'll find the current revision, starting tonight, at the following URL : http://770.blas.net/stowaway-french.map.
If you have the excellent btkeyboard plugin you simply install it in the
/var/lib/install/usr/share/kb-maps
directory and select it through the keyboard-settings menu.
db