From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BEDA1138350 for ; Mon, 6 Apr 2020 15:09:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 728E0E0EC8; Mon, 6 Apr 2020 15:09:37 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [159.69.161.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 18899E0EB0 for ; Mon, 6 Apr 2020 15:09:36 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jLTNX-000K6k-6I for gentoo-user@lists.gentoo.org; Mon, 06 Apr 2020 17:09:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: How to configure keyboard layout for X11 libinput? Date: Mon, 6 Apr 2020 15:09:30 -0000 (UTC) Message-ID: References: <2125053.iZASKD2KPV@lenovo.localdomain> User-Agent: slrn/1.0.3 (Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9bdb319c-3259-470d-b4cd-74467db49137 X-Archives-Hash: 6771d06bdd02a2b27a590c3e8a511661 On 2020-04-06, Michael 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