You are not logged in.

#1 2019-04-04 10:44:16

Gabriel-Costa
Member
Registered: 2019-04-04
Posts: 24

[solved]Lightdm switch keyboard layout after being enable

I'm learning how to install Arch Linux, and I'm having a problem with lightdm installation.

I have configure my keyboard layout to portuguese in the file /etc/vconsole.conf with KEYMAP=pt-latin9, and woks fine, but when I install lightdm and enable it, I reboot the system and layout change to US I think, I have tried follow this https://unix.stackexchange.com/question … in-lightdm, but didn't work.

Last edited by Gabriel-Costa (2019-04-10 11:21:31)

Offline

#2 2019-04-07 12:23:54

khaithang
Member
Registered: 2019-04-07
Posts: 5

Re: [solved]Lightdm switch keyboard layout after being enable

us is the default keymap for arch Linux for both the console and the X display environment (GUI). vconsole.conf will only configure the console environment not the display environment. To edit the X display environment,you have to edit in the X directory which /etc/X11/xorg.conf.d/ .
You have to create a new config file for the keyboard there.

It's right there in the link you posted .Did you not notice it ??

"The problem was that I forgot the file /etc/X11/xorg.conf.d/20-keyboard.conf . I created it with the content:

Section "InputClass"
    Identifier "keyboard"
    MatchIsKeyboard "yes"
    Option "XkbLayout" "de"
    Option "XkbVariant" "nodeadkeys"
EndSection
and now LightDM works."

PS: JUST EDIT THE "XkbLayout" option to your choice. and reboot.

Last edited by khaithang (2019-04-07 12:30:07)

Offline

#3 2019-04-10 11:20:50

Gabriel-Costa
Member
Registered: 2019-04-04
Posts: 24

Re: [solved]Lightdm switch keyboard layout after being enable

Yes that works...I did something like that before, but didn't work. Obviously I was doing wrong. Thanks for reply.

Offline

Board footer

Powered by FluxBB