bugGNU GRUB - Bugs: bug #46135, Enter key does not work on Grub...


You are not allowed to post comments on this tracker with your current authentication level.

bug #46135: Enter key does not work on Grub console if keymap is changed

Submitter:  Fujiwara <fujiwara>
Submitted:  Tue 06 Oct 2015 07:31:47 AM UTC
Category:  Terminal Severity:  Major
Priority:  5 - Normal Item Group:  Hardware-specific
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Fujiwara
Open/Closed:  Open Release:  2.02~beta1
Release:  Reproducibility:  Every Time
Planned Release:  2.03+

Thu 08 Oct 2015 05:39:28 PM UTC, comment #1: 

I cannot reproduce it using current git in QEMU. Could you test it?

It could also be hardware related. at_keyboard competes with BIOS for input characters and may leave system in strange state.

Andrei Borzenkov <arvidjaar>
Group Member
Tue 06 Oct 2015 07:31:47 AM UTC, original submission:  

I have grub2-2.02-0.23.fc23.x86_64 in Fedora 23.

To reproduce:
1. Install ckbcomp which is called by grub2-kbdcomp internally.
# dnf install console-setup
# rpm -q console-setup

2. Create jp keyboard.
# mkdir /boot/grub2/layouts
# grub2-kbdcomp -o /boot/grub2/layouts/jp.gkb jp
Unknown keyboard scan code 0x54
Unknown keyboard scan code 0x65
Unknown keyboard scan code 0x7f

3. Modify grub.cfg to enable jp keymap.
# diff -urNp /etc/default/grub.orig /etc/default/grub
--- /etc/default/grub.orig
+++ /etc/default/grub
@@ -3,5 +3,6 @@ GRUB_DISTRIBUTOR="$(sed 's, release .*$,
 GRUB_CMDLINE_LINUX="rhgb quiet"

# cat /boot/grub2/custom.cfg
insmod keylayouts
keymap jp

# grub2-mkconfig -o /boot/grub2/grub.cfg

# reboot

4. Enter 'e' to edit boot parameters in Grub console.

5. Append ' vga=ask 3' in vmlinuz boot line and press Ctrl+x to boot Fedora.
    linux16 /boot/vmlinuz-4.2.0-300.fc23.x86_64 ... LANG=ja_JP.UTF-8 vga=ask 3

3. Try to press Enter key on VGA asking screen:
Press <ENTER> to see video modes available, <SPACE> to continue, or wait for 30 seconds

I cannot input Enter key.

This problem does not happen if I don't change the keymap.

If typing is changed to capital after '=' is typed, Shift can revert it.

Fujiwara <fujiwara>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by fujiwara (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-02 phcoder Item GroupNone Hardware-specific
        Planned ReleaseNone 2.03+

    Back to the top

    Powered by Savane 3.13-c54d.
    Corresponding source code