You are not logged in.

#1 2015-01-19 14:29:51

Dun
Member
Registered: 2014-12-28
Posts: 98

[SOLVED]Keyboard layout messy after wake up or using KVM-switch

After waking up the computer from suspension or using my KVM-switch, the keyboard layout is pretty messed up.
"qwertzuiopü+" becomes ".,ñpyfgchl"
"asdfghjklöä#" becomes "aoeuidrtnsḉ"
"<yxcvbnm,.-" becomes "<-qjkxbmwvz"
I know the origin of the problem is that XKB is only set by my .xinitrc. But how can I bypass this? How can I set XKB with the German layout by default?

Last edited by Dun (2015-01-21 13:41:50)

Offline

#2 2015-01-19 14:32:48

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED]Keyboard layout messy after wake up or using KVM-switch

Try a conf file in /etc/X11/xorg.conf.d. Here's mine:

$ cat /etc/X11/xorg.conf.d/00-keyboard.conf 
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
	Driver "evdev"
        Option "XkbLayout" "carpalx"
        Option "XkbOptions" "ctrl:swapcaps"
EndSection

But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2015-01-21 13:41:36

Dun
Member
Registered: 2014-12-28
Posts: 98

Re: [SOLVED]Keyboard layout messy after wake up or using KVM-switch

alphaniner wrote:

Try a conf file in /etc/X11/xorg.conf.d. Here's mine:

$ cat /etc/X11/xorg.conf.d/00-keyboard.conf 
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
	Driver "evdev"
        Option "XkbLayout" "carpalx"
        Option "XkbOptions" "ctrl:swapcaps"
EndSection

Ah thank you very much!

Offline

Board footer

Powered by FluxBB