You are not logged in.

#1 2023-04-20 14:52:19

Marvix
Member
Registered: 2013-10-08
Posts: 157

[SOLVED] Keyboard layout doesn't work when keyboard is re-plugged in

I use an external keyboard to my laptop and each time I plug it off and plug it in, the keyboard layout  doesn't work.

Is there a way to repair it?

Here the output

$ setxkbmap -print -verbose 10
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc105
layout:     us,el
options:    grp:lwin_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+gr:2+inet(evdev)+group(lwin_toggle)
geometry:   pc(pc105)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+gr:2+inet(evdev)+group(lwin_toggle)"	};
	xkb_geometry  { include "pc(pc105)"	};
};

Solution

As written below, create a configuration file in

/etc/X11/xorg.conf.d/00-keyboard.conf

according to your system setting, and reboot to make take affect.

Thank you V1del

Last edited by Marvix (2023-06-14 11:51:12)

Offline

#2 2023-04-20 16:38:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] Keyboard layout doesn't work when keyboard is re-plugged in

Expected, do your configuration in a xorg config file so that it gets applied each time the device appears: https://wiki.archlinux.org/title/Xorg/K … tion_files

Also check these xorg configs, and make sure you do not have some old config flying around trying to use the evdev xorg driver instead of libinput if you don't have xf86-input-evdev installed anymore.

Last edited by V1del (2023-04-20 16:41:15)

Offline

Board footer

Powered by FluxBB