Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 370865

Summary: X11 keyboard layout will not change that easily
Product: [OLD] Docs on www.gentoo.org Reporter: Roman Czyborra <czyborra>
Component: Other documentsAssignee: Docs Team <docs-team>
Status: RESOLVED OBSOLETE    
Severity: normal CC: czyborra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/doc/en/guide-localization.xml
Whiteboard:
Package list:
Runtime testing required: ---

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"
EndSection

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"
EndSection
Comment 3 Rafał Mużyło 2011-06-10 13:49:58 UTC
...plus 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 https://wiki.gentoo.org/wiki/Localization/HOWTO. Mind the discussion on it though; a merger of Localization and Localization/HOWTO will be needed.