GRUB freezes when I reboot with usb mouse connected

I'm running EFI dual-boot with windows 10 and Ubuntu 20.04. HP Spectre with NVIDIA graphics card.

The problem only happens if I boot up and there is a flash drive or any device connected to the USB port. GRUB freezes and stays there. I have to force reboot the computer and remove the device, only that way it would boot up normally


I was having the same problem. I tried to disable the USB boot option from BIOS, but it did not work. To solve the problem I used the efibootmgr command.

First I ran sudo efibootmgr to see the current boot options. Mine was correctly set to start from ubuntu and USB Drive was the last one, so I don't know how the problem was occurring on the first place. Then I sudo efibootmgr -b <USBbootnum> -A to make the USB Drive option inactive. This worked for me. After reboot the computer the USB Driver option became active again (don't know why), but the problem went way.


Doing further research, I was able to notice that the problem happened with a specific brand of mice. Logi devices(Logitech). I was able to reach out to them and submit a report. Apparently their USB dongle contained some sort of firmware that would trigger some bug in the BIOS at bootup. They weren't able to fix the issue for me since the bug report error was tedious and I thought moving forward with that process was going to be extensive.

Solution, I bought a mouse from a different brand. It works perfectly.