GRUB lagging and double typing is unreliable

Ubuntu Support Template

Ubuntu Version:
Fresh install 24.04 LTS,

Desktop Environment (if applicable):
GNOME

Problem Description

After turning on secure boot and disabling CSM GRUB started to lag really bad and key presses are double typing or ignored. GRUB is basically unusable

Relevant System Information:CPU Ryzen 9 3950X, Motherboard B550 Phantom Gaming-ITX/ax with BIOS P3.9, Memory 32GB 3600Mz DDR4, GPU RTX3090 storage 500GB nvme and 4TB SSD

Screenshots or Error Messages:
nothing to show here

What I’ve Tried:
I tried changing USB ports, different USB hubs, different keyboard.

Before Posting.

I had a similar problem installing Debian on a MS Surface Pro 7 but never managed to fix the issue

I am sure I can’t be alone with this issue but my searching skills could not find anything.

Why are you typing in Grub? All I do is use an arrow key to select from the different operating systems that are in the Grub menu.

Are you dual booting with different operating systems. If not then wait 10 seconds and the default (only) operating system will load. That should happen even without a keyboard attached.

Keyboard drivers do not get loaded until Linux is well on the way to being loaded. Secure Boot will block drivers if they are not registered in the Secure Boot database.

Regards

1 Like

Thank you for your reply.

I should have stated that I am dual booting Ubuntu 24.04 and Windows 11, sorry.

During setup I needed to block drivers like Nouveau and block Nvidia’s GSP with NVreg_EnableGpuFirmware=0. temporary, so it would have been easier if I could of pressed e and edit GRUB and append the LINUX command line.

When I press the down arrow the cursor once it goes down two lines some of the time, preventing me from accessing items on the boot list. If I want to load a different Kernel pressing enter on the main menu (if I can even select it) item double types enter on the 1st item on the sub menu so i can’t get into recovery mode ever..

I never had this problem before going full UEFI (Secure Boot and CSM disabled)

You don’t need Secure Boot with UEFI.
Both Windows 11 and Ubuntu 24.04 will boot without Secure Boot?

If you are a home user, the best option for Secure Boot is the PC owner/user?

I think the problem is CSM’s Legacy BIOS emulation being disabled more than Secure Boot. It would seem GRUB doesn’t play nice with UEFI only BIOS’s.

I was hopping the issue had been addressed as it must have come up before now.

That would seem to be a bit of guesswork on your part.

Grub is perfectly fine with UEFI only firmware.
My current PC (purchased in 2023) does not even have an option to boot in Legacy mode.

My previous PC (2019 model has both Legacy and UEFI boot options.
Typing within Grub has never been a problem.

Is your keyboard wired/usb dongle/bluetooth?

Please open a terminal in Ubuntu and post the output of this command:

sudo fdisk -l

Let’s also check if you are running in UEFI or Legacy mode::

[ -d /sys/firmware/efi ] && echo “UEFI Mode” || echo “Legacy Mode”

GRUB is designed to work very well with modern UEFI systems, so I am wondering if there is something else going on here that is causing issues.

I have tried wireless and wired keyboards, both exhibit the same problem they work but they all lag terribly and double type.

Disable CSM Legacy - any improvement?
It’s not essential for Windows 11 nor Ubuntu 24.04.

sudo fdisk -l

Disk /dev/loop0: 4 KiB, 4096 bytes, 8 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 74.27 MiB, 77881344 bytes, 152112 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 269.77 MiB, 282873856 bytes, 552488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 251.67 MiB, 263892992 bytes, 515416 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 505.09 MiB, 529625088 bytes, 1034424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 18.49 MiB, 19386368 bytes, 37864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 73.96 MiB, 77549568 bytes, 151464 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop7: 10.72 MiB, 11239424 bytes, 21952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 980 PRO 500GB               
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: EDB54CA5-2A7D-44C2-82B3-4A015F8AECF9

Device             Start       End   Sectors   Size Type
/dev/nvme0n1p1      2048    206847    204800   100M EFI System
/dev/nvme0n1p2    206848    239615     32768    16M Microsoft reserved
/dev/nvme0n1p3    239616 487110655 486871040 232.2G Microsoft basic data
/dev/nvme0n1p4 487110656 488622079   1511424   738M Windows recovery environment
/dev/nvme0n1p5 488622080 976771071 488148992 232.8G Linux filesystem


Disk /dev/sda: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: Samsung SSD 870 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 4103AC50-5ABE-4A0B-A93F-D4A2695AB587

Device          Start        End    Sectors  Size Type
/dev/sda1        2048 3906252799 3906250752  1.8T Linux filesystem
/dev/sda2  3906252800 7814033407 3907780608  1.8T Microsoft basic data


Disk /dev/loop9: 10.54 MiB, 11051008 bytes, 21584 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop8: 91.69 MiB, 96141312 bytes, 187776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop10: 38.83 MiB, 40714240 bytes, 79520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop11: 500 KiB, 512000 bytes, 1000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop12: 576 KiB, 589824 bytes, 1152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


[ -d /sys/firmware/efi ] && echo “UEFI Mode” || echo “Legacy Mode”

“UEFI Mode”

Thank you for all your reply’s

I cannot re-enable CSM as it would now break my Windows 11 install due to the secure boot and bitlocker processes are in effect. I would need to nuke Windows from orbit and start over :slight_smile:

To be clear both operating systems are working just fine, I just wanted to know why GRUB is acting up, and if there is anything I can do to make it useful again should I need to get into recovery mode again.

I’ve misunderstood your earlier comment.
I was under the impression that CSM was enabled but, clearly, it isn’t.
Furthermore, I would doubt that enabling CSM would have any influence on Grub at all.

Good news, indeed

As a test, can you boot into your USB installer - do you have the same difficulty with Grub there?

Thats a great point! GRUB on the install media works just fine, no issues, none.

edit: Maybe not none, I needed to install from the safe graphics mode.

Grub tries to use the Video from the install.

Often issues are related then to incorrect video drivers.

Also many issues are related to older firmware. Both UEFI & SSD need to have latest firmware.

Are you using the correct nVidia driver? Did you choose to install optional restricted drivers as part of install so nVidia driver would be installed?

If incorrect driver, you must purge old driver before install of a new one or you get conflicts.

Compare firmware versions to vendors support site
sudo dmidecode -s bios-version
udisksctl status

#What is installed
dkms status

#To see video:
lspci -k | grep -EA3 ‘VGA|3D|Display’

1 Like

I have tried numerous installs the last few days with and without 3rd Party video drivers option, none seem to have any effect on my GRUB problem. I have tried versions 24.04.01, 24.10, 25.04, and 25.10 all exhibit the same problem.

BIOS, NVMe, and SSD firmware is all up to date (I flashed the BIOS a couple of days ago to the latest)

$ dkms status

openrazer-driver/3.11.0, 6.17.0-14-generic, x86_64: installed

$ lspci -k | grep -EA3 ‘VGA|3D|Display’
libkmod: ERROR ../libkmod/libkmod-config.c:712 kmod_config_parse: /etc/modprobe.d/nvidia.conf line 1: ignoring bad line starting with ‘nvidia.NVreg_EnableGpuFirmware=0’

I think this error is due to me disabling GSP but GRUB was the same when it was enabled

Currently using

$ nvidia-smiThu Feb 12 03:11:20 2026±--------------------------------------------------------------------------------------+| NVIDIA-SMI 535.288.01 Driver Version: 535.288.01 CUDA Version: 12.2 ||-----------------------------------------±---------------------±---------------------+| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC || Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. || | | MIG M. ||=========================================+======================+======================|| 0 NVIDIA GeForce RTX 3090 Off | 00000000:06:00.0 On | N/A || 0% 41C P8 17W / 350W | 596MiB / 24576MiB | 1% Default || | | N/A |±----------------------------------------±---------------------±---------------------+±--------------------------------------------------------------------------------------+| Processes: || GPU GI CI PID Type Process name GPU Memory || ID ID Usage ||=======================================================================================|| 0 N/A N/A 2472 G /usr/lib/xorg/Xorg 247MiB || 0 N/A N/A 2695 G /usr/bin/gnome-shell 67MiB || 0 N/A N/A 13064 G /usr/share/librewolf/librewolf 162MiB || 0 N/A N/A 14438 G /usr/bin/gnome-text-editor 19MiB || 0 N/A N/A 15730 G /usr/bin/nautilus 17MiB |±--------------------------------------------------------------------------------------+

I have tried other drivers including Nouveau, 565, 590 from additional drivers and .run installers.

I am currently using the 535 from additional drivers as 565.77 proprietary requires kernel 6.8.0-49 and i cannot be bothered downgrading from 6.17.0-14 again given I cannot select a different Kernel on the GRUB menu.

None seem to have any effect on GRUB.

1 Like

This interference with Grub must be something within the UEFI settings?
Can you check if you have:-

Fast Boot disabled
USB Legacy enabled


Before booting into Ubuntu, do you shut down Windows 11 completely?
i.e. Fast Startup within Windows is disabled

I can confirm fast boot is disabled.

There is no USB Legacy option for my motherboard. I even updated the BIOS to see if this option would appear based on a prompt from AI which turned out to be an Hallucination. This Idea came up along with AI suggesting I try connecting my KB and Mouse to a USB 2.0 Hub so to see if forcing USB 3.0 header to go into USB2.0 mode would play nicely with GRUB.

Unfortunately my Motherboard only USB 2.0 breakout port is not connected to my case so I only have access to USB 3 ports.

Fast startup is disabled in Windows and I have booted both operating systems from a cold start many times.

USB2.0 hub is due for delivery sometime today.

I am re-naming this thread grub lagging and double typing is unreliable instead of unusable.

I ran into an issue where I need to use Nvidia driver 565.77 in order to use SteamVR. For some reason installing this driver just wouldn’t work on Kernel 6.17.0-14. I was getting loads of errors (I think it was dmks errors).

So, I had to download and install the Kernel 6.8.0-49 which it is known to work.

I hit a wall again as I needed to switch to the older Kernel. For some reason grub-reboot command wouldn’t work. It appeared to do nothing, not even an error message.

It turns out that my GRUB doesn’t always double type sometimes it does register a single key press. I was able to get into the advanced menu after a dozen times trying and booted 6.8.0-49 and then remove 6.17.0-14.

The Nvidia driver installed without any issue now.

I think I will just live with the erratic GRUB menu now unless someone comes up with a fix.

Thanks all for your help!

If you have the Grub menu displayed
Type c for grub prompt
grub>
reboot

Any good?

1 Like

sudo grub-reboot “Ubuntu, with Linux 6.8.0-49-generic”

Its meant to be used to select a different kernel on reboot bypassing GRUB menu.