gdm login screen keyboard layout

General support questions
alaxala
Posts: 1
Joined: 2017/11/15 07:26:36

gdm login screen keyboard layout

Postby alaxala » 2017/11/15 10:07:39

Hi!
I have fresh installed CentOS 7.4.1708 with Gnome desktop and russian locale choosen during setup. And I see following gdm behavior on login screen.
I have the keyboard layout indicator on top right of the screen. If I click on it I get the drop down menu with two languages, en and ru, can choose any and keyboard layout changes accordingly.
And if I try switch keyboard layout by pressing Alt-Shift, the layout changes but the state of indicator - not. It responds only on mouse.
I noticed one more strange thing. If I consistently press Alt-Shift several times the layout changes as follows:
en->ru->ru->en->ru->ru->...
It looks like I have one english layout and two russian.

I was looking for solution and and saw references on /etc/X11/xorg.conf.d/00-keyboard.conf file. Here is my and it looks good:

Code: Select all

Section "InputClass"
   Identifier "system-keyboard"
   MatchIsKeyboard "on"
   Option "XkbLayout" "ru,us"
   Option "XkbVariant" ","
   Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

How can I fix this?