On 2020-04-06, Michael <confabul...@kintzios.com> wrote:
> On Monday, 6 April 2020 15:37:34 BST Grant Edwards wrote:
>> I switched from evdev to libinput as recommeded by recent news, and
>> now my keyboard is hosed: a bunch of keys are unrecognized or send the
>> wrong thing.  (Arrow keys don't work, right-CTRL causes screen to
>> flash, pgup/pgdown don't work, etc.).  Unfortunately, all of the
>> keyboard layout documentation I find talks about evdev, but doesn't
>> mention libinput:
>> 
>> https://wiki.gentoo.org/wiki/Keyboard_layout_switching
>> 
>> Where/how to I set keyboard layout for libinput?
>> 
>> --
>> Grant
>
> Did you try '/etc/X11/xorg.conf.d/10-evdev.conf' ?

My keyboard config is in /etc/X11/xorg.conf.d/30-keyboard.conf

The control/capslock key mapping still works, but the keyboard layout
is borked.  If I remove that file, the control/capslock mapping stops
working (as expected), and the kayboard layout is OK.

Next, I tried just removing 'Option "XkbLayout'", and that made no
difference.  Here is what I started with:

Section "InputClass"
        Identifier "keyboard-all"
        Driver "libinput"
        Option "XkbLayout" "us"
        Option "XkbRules" "xorg"
        Option "XkbOptions" "ctrl:nocaps,compose:ralt"
        MatchIsKeyboard "on"
EndSection

Here's what I have no (no difference in behavior):

Section "InputClass"
        Identifier "keyboard-all"
        Driver "libinput"
        Option "XkbRules" "xorg"
        Option "XkbOptions" "ctrl:nocaps,compose:ralt"
        MatchIsKeyboard "on"
EndSection


Reply via email to