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

Submitted by:  Fujiwara <fujiwara>
Submitted on:  Tue 06 Oct 2015 07:31:47 AM UTC  
Category: TerminalSeverity: Major
Priority: 5 - NormalItem Group: Hardware-specific
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: Fujiwara
Open/Closed: OpenRelease: 
Release: 2.02~beta1Reproducibility: 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>
Project 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 .*$,

# 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>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 02 Mar 2016 02:29:15 PM UTCphcoderItem GroupNone=>Hardware-specific
      Planned ReleaseNone=>2.03+

    Back to the top

    Powered by Savane 3.1-cleanup1