From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: bug#35585: GRUB does not work with USB keyboards when using keyboard-layout Date: Sun, 5 May 2019 19:35:44 +0200 Message-ID: <20190505173544.f3tjaznsbniyqj5z@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="2owicxfkmef25hy4" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNL4T-0007kN-BY for bug-guix@gnu.org; Sun, 05 May 2019 13:37:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNL4Q-0005F3-W7 for bug-guix@gnu.org; Sun, 05 May 2019 13:37:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41240) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNL4Q-0005De-8F for bug-guix@gnu.org; Sun, 05 May 2019 13:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hNL4Q-0004L1-0G for bug-guix@gnu.org; Sun, 05 May 2019 13:37:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:40162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNL3P-0007gD-Fq for bug-guix@gnu.org; Sun, 05 May 2019 13:36:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNL3O-0004Rk-Eq for bug-guix@gnu.org; Sun, 05 May 2019 13:35:59 -0400 Received: from pelzflorian.de ([5.45.111.108]:56410 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hNL3N-0004Ph-SS for bug-guix@gnu.org; Sun, 05 May 2019 13:35:58 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id B47D5360038 for ; Sun, 5 May 2019 19:35:44 +0200 (CEST) Content-Disposition: inline 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.org@gnu.org Sender: "bug-Guix" To: 35585@debbugs.gnu.org --2owicxfkmef25hy4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In the bootloader menu, input from a USB external keyboard or a Macbook=E2=80=99s built-in USB keyboard is ignored by GRUB. This makes i= t impossible to choose which generation to boot. The passphrase of an encrypted boot partition can be entered though (with US English keyboard layout instead of the chosen layout). The attached patch makes the USB keyboard work in the bootloader menu, but it uses US English layout instead of the chosen layout too. Also the patch is just imitating what is already in gnu/bootloader/grub.scm but I do not actually know what I=E2=80=99m doing. Regards, Florian --2owicxfkmef25hy4 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-bootloader-grub-Support-USB-keyboards-when-using-a-k.patch" >From c0c8167cf4f7ddd68567618effc665dd950c2f93 Mon Sep 17 00:00:00 2001 From: Florian Pelz Date: Sun, 5 May 2019 17:38:47 +0200 Subject: [PATCH] bootloader: grub: Support USB keyboards when using a keyboard-layout. With this USB keyboards are recognized again, the layout does not currently get used by GRUB though. * gnu/booloader/grub.scm (keyboard-layout-config): Add usb_keyboard terminal to terminal_input command. --- gnu/bootloader/grub.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm index e97a17b3e2..a99e5286ca 100644 --- a/gnu/bootloader/grub.scm +++ b/gnu/bootloader/grub.scm @@ -360,7 +360,7 @@ entries corresponding to old generations of the system." (keyboard-layout-file layout #:grub grub)))) (when keymap (format port "\ -terminal_input at_keyboard +terminal_input at_keyboard usb_keyboard insmod keylayouts keymap ~a~%" keymap))))) -- 2.21.0 --2owicxfkmef25hy4--