Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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
Click here to see the post LQ members have rated as the most helpful post in this thread.
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 ß
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.
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:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
I read somewhere, that this warning has to do with the files "altwin" and "level3" in /usr/share/X11/xkb/symbols (possibly a conflict, I am not that good to say something more). Here is a link to a polish site, with explanation, how to fix this message:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.