Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370865 - X11 keyboard layout will not change that easily
Summary: X11 keyboard layout will not change that easily
Alias: None
Product: [OLD] Docs on
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Docs Team
Depends on:
Reported: 2011-06-09 19:40 UTC by Roman Czyborra
Modified: 2013-07-22 13:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Roman Czyborra 2011-06-09 19:40:34 UTC
The Localization Guide suggests to simply add Options "XkbLayout" "de" to /etc/X11/xorg.conf but things are more complicated than that.  First of all, xorg.conf does not exist by default.  And then if you create one with X -configure it will have a keyboard section that is ignored by Xorg in favor of the evdev driver configuration found in /usr/share/X11/xorg.conf.d/.

Please suggest the following code:

Section "InputClass"
       Identifier "keyboard-all"
       Driver "evdev"
       Option "XkbLayout" "de"
       #Option "XkbModel" "pc98"
       Option "XkbRules" "xorg"
       Option "XkbVariant" "basic"
       MatchIsKeyboard "on"

Or as a catchall rule, suggest to "setxkbmap de" in xinitrc.

Reproducible: Always
Comment 1 Rafał Mużyło 2011-06-09 21:51:23 UTC
Note that 'Option "XkbRules" "xorg"' is plain invalid for evdev driver and variant might not be needed.
Comment 2 Agostino Sarubbo gentoo-dev 2011-06-10 04:50:46 UTC
imho there isn't  MatchIsKeyboard:

works for me with this conf:

Section "InputClass"
    Identifier             "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option                 "XkbModel" "pc105"
    Option                 "XkbLayout" "it"
Comment 3 Rafał Mużyło 2011-06-10 13:49:58 UTC a minor thing I didn't notice at first - there should be a path restriction to '/dev/input/event*'.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2013-07-22 13:52:25 UTC
I've moved the Gentoo Localization Guide to the Gentoo Wiki at Mind the discussion on it though; a merger of Localization and Localization/HOWTO will be needed.