LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to change keyboard layout for kdm login screen? (https://www.linuxquestions.org/questions/slackware-14/how-to-change-keyboard-layout-for-kdm-login-screen-4175514861/)

Xiano 08-14-2014 10:53 PM

How to change keyboard layout for kdm login screen?
 
I just found out what runlevel 4 means, and that you can set it after booting in inittab. Nice to see graphical login screen, but i use an azerty keyboard and it took me some trying to find the correct password with the default qwerty layout. Is there a way to change the keyboard layout during kdm login? Or up front?

Thanks.

louigi600 08-14-2014 11:13 PM

Check layout in /etc/X11/*
Code:

grep -R XkbLayout /etc/X11/*
and check if it conflicts anywhere with the layout you want.
If that fails try putting something like
Code:

/usr/bin/loadkeys us.map
with the right layout for your keyboard
in rc.4 before kdm (or whatever you use for grafical login) is started.

Xiano 08-14-2014 11:19 PM

Found one solution.
 
I created a file called /etc/X11/xorg.conf.d/90-keytable.conf which contains:

Section "InputClass"
Identifier "LocalKeyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "be"
Option "XkbVariant" "nodeadkeys"
EndSection

... and now my default keyboard layout in the kdm login screen is correct.

Found suggestion on another forum.


All times are GMT -5. The time now is 06:06 AM.