You are not logged in.

#1 2017-02-08 08:25:41

iancze
Member
Registered: 2017-02-08
Posts: 1

[Solved] (Another) Broken keymaps in X after upgrade

I am having a similar issue as described in this thread, but the posted solution does not work for me. After a recent upgrade, my up/down/left arrow keys do not work, as well the Meta key, right alt and right ctrl. Right ctrl seems to be mapped to PgDown and right alt seems to be mapped to Enter.

In

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

I have

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us"
        Option "XkbVariant" "dvorak"
        Option "XkbRules" "xorg"
        Option "XkbKeycodes" "evdev"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

As mentioned in the linked post, I tried deleting this file, but to no avail. Following the Xorg Keyboard Configuration, the output of `setxbmap -print` gives me

[ian@crux xorg.conf.d]$ setxkbmap -print -verbose 10
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/xorg...
Trying to load rules file /usr/share/X11/xkb/rules/xorg...
Success.
Applied rules from xorg:
rules:      xorg
model:      pc104
layout:     us,us
variant:    dvorak,
options:    caps:escape,terminate:ctrl_alt_bksp
Trying to build keymap using the following components:
keycodes:   xfree86+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us(dvorak)+us:2+capslock(escape)+terminate(ctrl_alt_bksp)
geometry:   pc(pc104)
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us(dvorak)+us:2+capslock(escape)+terminate(ctrl_alt_bksp)"  };
        xkb_geometry  { include "pc(pc104)"     };
};
[ian@crux xorg.conf.d]

If I switch to a virtual console immediately after starting X, the aforementioned keys do work properly (and `showkey` delivers reasonable results), however if I switch to the virtual console after failing to use the keys in X, they no longer work and have their erroneously remapped values.

Using `setxkbmap -model pc104 -layout us -variant dv` doesn't seem to change anything, either.

Any hints on what to try next would be greatly appreciated, thank you for your help!

If the information helps, I'm on a Dell XPS 13 laptop. Before the update all mappings were running smoothly. I also tried downgrading the kernel to my previous version but that didn't help.



Edit:

It turns out that the solution to my problem was similar to the other post. Instead of just backing up the conf file in the directory `00-keyboard.conf --> backup.00-keyboard.conf` I needed to remove it from the directory entirely.

I also followed the libinput advice here and copied `/usr/share/X11/xorg.conf.d/40-libinput.conf` to `/etc/X11/xorg.conf.d/40-libinput.conf` and edited it to put some of my previous configurations back in.

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "XkbLayout" "us"
        Option "XkbVariant" "dvorak"
EndSection

Last edited by iancze (2017-02-08 17:37:29)

Offline

Board footer

Powered by FluxBB