From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: bug#40273: installer: No way to input Latin characters with non-Latin keyboard layouts Date: Mon, 30 Mar 2020 13:35:29 +0200 Message-ID: <875zemoz26.fsf@gmail.com> References: <20200328134202.rgl6usllluoo2b2y@pelzflorian.localdomain> <87a740nu0u.fsf@gmail.com> <20200330104449.ahyivwdn62g6jluw@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60142) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIsi3-0002pE-Ql for bug-guix@gnu.org; Mon, 30 Mar 2020 07:36:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIsi2-0005Mx-OD for bug-guix@gnu.org; Mon, 30 Mar 2020 07:36:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIsi2-0005Me-Kx for bug-guix@gnu.org; Mon, 30 Mar 2020 07:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jIsi2-0006oS-HG for bug-guix@gnu.org; Mon, 30 Mar 2020 07:36:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20200330104449.ahyivwdn62g6jluw@pelzflorian.localdomain> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: "pelzflorian (Florian Pelz)" Cc: 40273@debbugs.gnu.org > Yes, that is definitely a good place, *but* now that I saw Debian, it > would be good to additionally have a key combination. I think > switching in an F1 help menu is more discoverable and having both > would be good. OK, noted. > From what an Arab friend told me, they are used to a key combination > (Alt+Shift if I remember correctly, as is Debian=E2=80=99s default; Debian > makes the combination configurable). But I cannot figure out how to > make loadkeys use a key combination; ckbcomp seems not to produce > right results. > > In QEMU on the compatibility console I ran =E2=80=9Csendkey ctrl-alt-f3= =E2=80=9C. I > then tried: > > guix environment --ad-hoc console-setup #so I can run ckbcomp > mkdir -p /usr/share/X11/ > cd /usr/share/X11 > ln -s $(guix build -S console-setup)/Keyboard/ckb xkb > ckbcomp ar, -variant azerty, -option grp:toggle > ~/test > loadkeys us #so I can switch back, I hoped, but it does not work > loadkeys ~/test In the installer, the keyboard layout is handled by KMSCON. It means that running setxkbmap or loadkeys commands won't help. As KMSCON only supports static keyboard layout setting at start time, I had to patch it dirty (see kmscon-runtime-keymap-switch.patch). With this patch, it is possible to write keyboard model, layout and variant to the file pointed by KEYMAP_UPDATE environment variable, and have the keyboard layout updated (see kmscon-update-keymap). Mathieu