Pages

Tuesday, April 24, 2012

Setting Keyboard on LogOn Screen

To set the default keyboard at logon screen (in KDM), check keyboard-related files at /etc/X11/xorg.conf.d.
I have two files - "00-keyboard.conf" and "00-system-setup-keyboard.conf". There should not be two files affecting the keyboard but since the second one points to /dev/null, I guess it is ok to leave it.
The contents of the file are:


Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "dvorak"
EndSection

This will set Dvorak layout as the default for X. If you want to change the layout without having to restart the Xwindow session, type the following command in the console:

setxkbmap dvorak

#linux #Gnome

If you want to change the default keyboard in a console login window, there is a graphical interface in keyboard layout settings. In Gnome there is a tab System. Copying your current settings to system default will set the proper system files.
/etc/sysconfig/keyboard contains the keyboard settings

No comments: