From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: 35585@debbugs.gnu.org
Subject: bug#35585: GRUB does not work with USB keyboards when using keyboard-layout
Date: Sun, 5 May 2019 19:35:44 +0200 [thread overview]
Message-ID: <20190505173544.f3tjaznsbniyqj5z@pelzflorian.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
In the bootloader menu, input from a USB external keyboard or a
Macbook’s built-in USB keyboard is ignored by GRUB. This makes it
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’m doing.
Regards,
Florian
[-- Attachment #2: 0001-bootloader-grub-Support-USB-keyboards-when-using-a-k.patch --]
[-- Type: text/plain, Size: 1027 bytes --]
From c0c8167cf4f7ddd68567618effc665dd950c2f93 Mon Sep 17 00:00:00 2001
From: Florian Pelz <pelzflorian@pelzflorian.de>
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
next reply other threads:[~2019-05-05 17:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-05 17:35 pelzflorian (Florian Pelz) [this message]
2019-05-07 16:11 ` bug#35585: GRUB does not work with USB keyboards when using keyboard-layout Ludovic Courtès
2019-05-07 16:39 ` Danny Milosavljevic
2019-05-07 22:09 ` pelzflorian (Florian Pelz)
2019-05-08 10:03 ` Ludovic Courtès
2019-05-08 12:23 ` pelzflorian (Florian Pelz)
2019-05-09 10:14 ` Ludovic Courtès
2019-05-09 12:52 ` Danny Milosavljevic
2019-05-13 13:59 ` Giovanni Biscuolo
2019-05-13 20:34 ` Ludovic Courtès
2019-05-07 17:25 ` pelzflorian (Florian Pelz)
2019-05-07 17:48 ` pelzflorian (Florian Pelz)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190505173544.f3tjaznsbniyqj5z@pelzflorian.localdomain \
--to=pelzflorian@pelzflorian.de \
--cc=35585@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.