You are not logged in.

#1 2017-10-14 14:43:51

MeoowWoof
Member
Registered: 2016-06-12
Posts: 13

[Solved] Unable to set UK keyboard layout

I am currently running gnome on Arch Linux. It is sort of driving me nuts to get the keyboard layout right.

I have tried doing a few thing mentioned on the Keyboard layout in Xorg.

setxkbmap -print -verbose 10

Always prints us as the layout.

If i fire setxkbmap gb from the console , it sets it for the session but on reboot the settings do not persist.

To make it persist i updated /etc/X11/xorg.conf.d/00-keyboard.conf to :

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
Option "XkbLayout" "gb"
EndSection

This does not work though. I still need to fire setxkbmap manually on each login. I have also tried to copy the xinitrc as follows

$ cp /etc/X11/xinit/xinitrc ~/.xinitrc 

and update the local file with the command setxkbmap gb  at the end and tried to update the original xinitrc located in /etc/ but no luck.



The second issue is with the console as well. I have tried the following guide and done the below :
created : /etc/vconsole.conf  with the content.

 KEYMAP=uk

Regardless of the commands i run for console from the guide ex :

 localectl set-keymap --no-convert uk

I just cant get the keymapping right for terminal.

I'd greately appreciate if some one can guide me through this. I've recently setup a dual boot on a laptop and I do not recall anything other than the above and it seems to work well, but this is refusing to budge.

Cheers!

Last edited by MeoowWoof (2017-10-14 17:23:47)

Offline

#2 2017-10-14 15:45:56

seth
Member
Registered: 2012-09-03
Posts: 51,275

Re: [Solved] Unable to set UK keyboard layout

What desktop session do you run? Sure it's an X11 display server? Do you have xf86-input-evdev installed?
Please paste your complete Xorg log.

Online

#3 2017-10-14 16:46:42

MeoowWoof
Member
Registered: 2016-06-12
Posts: 13

Re: [Solved] Unable to set UK keyboard layout

Wow, I was sure  I was on X11 now I am fairly confused.

echo $XDG_SESSION_TYPE
O/P : wayland

My life is a Lie! Managed to change settings in GNOME , it is all good! Thanks for help. Marking solved.

Last edited by MeoowWoof (2017-10-14 17:23:26)

Offline

#4 2017-10-16 01:23:54

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [Solved] Unable to set UK keyboard layout

Would you mind telling me what locale setxkbmap -print -verbose 10 prints for you? I don't know whether I'm getting 'C' because something is wrong or whether that's just normal.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2017-10-28 21:48:58

MeoowWoof
Member
Registered: 2016-06-12
Posts: 13

Re: [Solved] Unable to set UK keyboard layout

cfr wrote:

Would you mind telling me what locale setxkbmap -print -verbose 10 prints for you? I don't know whether I'm getting 'C' because something is wrong or whether that's just normal.

Likewise mate , nothing to worry.

Offline

Board footer

Powered by FluxBB