1 |
I thought I'd report my experience getting my German keyboard on |
2 |
my ibook2 to work in X-Windows; maybe the following is useful |
3 |
for others, maybe someone who actually understands xkb can come up |
4 |
with a cleaner solution (patch to the xkb stuff distributed with |
5 |
the xfree86 package). I should add that I'm running xfree 4.2.99.4. |
6 |
[I want to thank Vincent Strubel, who sent me a French keymap, |
7 |
but the solution below works best for me.] |
8 |
|
9 |
Most of the solutions found on the web (including ready made |
10 |
working keymaps) are problematic because one has to fit the |
11 |
respective file(s) into the xkb file structure, which -- despite |
12 |
Doug Palmer's guide (http://www.charvolant.org/~doug/xkb/) I fail |
13 |
to understand. E.g., http://www.pl-berichte.de/t_system/ibook-debian/ |
14 |
comes with "everything", but even if you replace the 4.2.99.4 xkb |
15 |
file tree with that of the authors, you end up with a pre-xkb US |
16 |
keyboard :-( [BTW, that link may be useful for those running older |
17 |
xfree versions] |
18 |
|
19 |
In the end, my "knowledge" comes from a search on groups.google.com |
20 |
with searchwords "book keymap german" I basically followed |
21 |
|
22 |
http://www.yellowdoglinux.com/support/solutions/ydl_general/keyboard_german.shtml |
23 |
|
24 |
which involves editing /etc/X11/xkb/keycodes/xfree86 by |
25 |
replacing <RALT> = 113 with <RALT> = 115 and commenting out |
26 |
the line <LWIN> = 115. If you do this, and add to your XF86Config |
27 |
|
28 |
Option "XkbModel" "pc102" # to get <>| (!!!), otherwise the key is |
29 |
# dead!! |
30 |
Option "XkbLayout" "de" |
31 |
Option "XkbVariant" "nodeadkeys" |
32 |
|
33 |
then you get a German keyboard reminiscent of a PC keyboard, where |
34 |
the AltGr (right Alt button) is mapped to *both* "Apple" keys. |
35 |
|
36 |
Words of caution: (1) The method described does not respect the Mac |
37 |
OS way of getting extra keys, which for me is good as I "live" in |
38 |
Linux and use PC keyboards most of the time anyways. (2) Going |
39 |
directly to /etc/X11/xkb/keycodes/xfree86 affects all of xkb, but |
40 |
so far I have not noted any problems, neither with the german nor |
41 |
with the US keyboard layout. (3) You loose the "numeric keypad"; |
42 |
i.e. hitting numlock does not any more activate the little gray |
43 |
numeric keypad keys, can't say that this is a problem for me (4) |
44 |
The Debian people had some detailed discussion about this, but most |
45 |
of me is too xkb-intensive; I guess anyone interested in doing it |
46 |
"right" should probably look at |
47 |
|
48 |
http://groups.google.at/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&threadm=1011141829.21934.3768.camel%40pismo&rnum=9&prev=/groups%3Fq%3Dibook%2Bkeymap%2Bgerman%26hl%3Dde%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26sa%3DG%26scoring%3Dd |
49 |
|
50 |
The main complaint against "my" solution seems that you loose the |
51 |
Meta-L key (which I haven't missed so far ;-); and it would seem |
52 |
to me that one could always map that key to the strange Apple |
53 |
specific key next to the right "Apple" key ... |
54 |
|
55 |
As I said, I hope that helps others! |
56 |
|
57 |
Stefan |
58 |
|
59 |
-- |
60 |
Stefan Boresch |
61 |
Institute for Theoretical Chemistry and Structural Molecular Biology |
62 |
University of Vienna, Waehringerstr. 17 A-1090 Vienna, Austria |
63 |
Phone: -43-1-427752715 Fax: -43-1-427752790 |
64 |
|
65 |
-- |
66 |
gentoo-ppc-dev@g.o mailing list |