You are not logged in.

#1 2013-03-25 15:09:16

arcanazar
Member
Registered: 2012-08-20
Posts: 2

X11 Keyboard Settings Not Applied on Boot

I'm having problems setting my keyboard layout on boot in X11 using Xorg.conf.d. Specifically, I would like to set the default X keyboard to be Programmer Dvorak on boot with the caps:swapescape option on. I have followed the instructions on the Wiki for setting the default X keyboard; however, on boot the caps:swapescape option is applied but otherwise the layout is the standard US QWERTY layout. Setting the keyboard manually using the following command always works:

setxkbmap us -variant "dvp" -option "caps:swapescape

Here is the relevant Xorg.conf.d (10-keyboard.conf) file:

Section "InputClass"
    Identifier             "Keyboard Defaults"
    MatchIsKeyboard	   "yes"
    Option	           "XkbLayout" "us"
    Option                 "XkbVariant" "dvp"
    Option		   "XkbOptions" "caps:swapescape"
EndSection

The other thing that is strange is that the output of setxkbmap doesn't change between boot (incorrect keymap) and when the keymap is set manually.

$ setxkbmap -query -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:      evdev
layout:     us
variant:    dvp
options:    caps:swapescape
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us(dvp)+inet(evdev)+capslock(swapescape)
geometry:   pc(pc104)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us(dvp)+inet(evdev)+capslock(swapescape)"	};
	xkb_geometry  { include "pc(pc104)"	};
};
rules:      evdev
model:      evdev
layout:     us
variant:    dvp
options:    caps:swapescape

Any pointers in the correct direction would be greatly appreciated.

Offline

#2 2013-03-25 15:58:10

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: X11 Keyboard Settings Not Applied on Boot

What DE or WM are you using?

Offline

#3 2013-03-25 16:02:59

arcanazar
Member
Registered: 2012-08-20
Posts: 2

Re: X11 Keyboard Settings Not Applied on Boot

I'm currently using WMFS; however, I have the same issue in XFCE.

Offline

#4 2013-03-26 12:54:05

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: X11 Keyboard Settings Not Applied on Boot

I remember having had the same issue with Gnome which ignores the settings in Xorg.d completely. I would assume the same for Xfce although not for WMFS.

Does this help?

https://bbs.archlinux.org/viewtopic.php?id=154983

Offline

#5 2013-03-26 17:00:14

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: X11 Keyboard Settings Not Applied on Boot

wouldn't it be just easier to have that setxkbmap command run on boot in .xinitrc or in you WM config file which would auto start some apps?

I have

setxkbmap -layout dvorak

in my .xinitrc file and it hasn't failed me.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB