German keyboard layout
Hi folks
I have a small problem switching to the german keyboard layout. Usually I use the polish layout as default, but from time to time I need to use the german keyboard. I have Debian Lenny installed. I have everything set up to work in xorg.conf, here is a snippet: Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "pl,de" Option "XkbOptions" "grp:alt_shift_toggle" EndSection The problem is, that when I switch to german, I get all the umlauts, ö, ä etc., but when I press for example r, I get this: ¶. With d: ð. That is, I get symbols instead of latin letters. What could be wrong here? Best regards Szymon |
What's happening is that the computer is behaving as if AltGr is held down, but it's difficult to see why!
The simplest solution may be to type German from your Polish keyboard. If you enable the Compose key (using the Windows Menu or anything convenient), then you have the sequences Compose + a + " gives ä Compose + U + " gives Ü Compose + s + s gives ß and so on. |
Quote:
|
The Compose Key (described in Wikipedia and on this site's wiki) is an escape key. After you press it, the input modules checks the following keystrokes in a list to see if they are a code for something else. It's the traditional Unix method for getting characters that are not on the keyboard. So, on a keyboard without "{" you can still get that character with the sequence
Compose - ( A PC keyboard obviously lacks a Compose key, but you can select another key to use as one. If you have the Gnome desktop, enter the menu under System - Preferences - Hardware - Keyboard. Or, if you have the keyboard language indicator on the panel, right-click on it and select the option Keyboard Preferences. In the window, chose the tab Layouts, then the button Layout Options. The third item is Compose key position, which offers seven choices. I think most people choose the Windows Menu key, as it's not much use in Linux. |
Thank you for this detailed answer :).
|
Hi all
Finally, I found a solution to my problem. I asked on another forum and was advised to type the following in the keyboard section of xorg.conf: Option "XkbOptions" "lv3:ralt_switch" Now the whole section looks like this: Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "pl,de" Option "XkbOptions" "grp:alt_shift_toggle" Option "XkbOptions" "lv3:ralt_switch" EndSection This did the thing. Thanks everyone for help. |
The solution was working, but only temporary. After reboot everything is the old way. Could this be a bug in xorg?
|
doing it manually does work?
setxkbmap de sextkbmap pl if yes xorg is wrong, if not you might be missing something else. greetings |
1 Attachment(s)
Yes, with setxkbmap everything works fine. It really seems, that xorg is thinking, that alt-gr is pressed all the time if I switch to german. I dont't know, if this could be a clue, but I had the following error message from xorg:
Code:
The XKEYBOARD keymap compiler (xkbcomp) reports: http://forum.pld-linux.org/viewtopic.php?t=643 You can see some piece of code there, maybe it is a help. I wouldn't bother, if I could switch to german with setxkbmap (I wrote a small bash script for that, see the attachment), but then I can't manage the keyboard layout independent for every window (that is, if I switch to german, all newly open programs will have the german layout, it is not possible to switch to polish again, until I issue setxkbmap in the terminal). It must be a bug in xorg, I am quite sure now (in Etch and Slackware switching languages worked like it was supposed to). Maybe this has something to do with the installed locales? I have both needed locales installed. I know, that many people are facing now the same problem with Lenny, so it must be definitely a bug. |
All times are GMT -5. The time now is 07:34 PM. |