The Dropped Keystrokes
Ubuntu’s power management system aggressively targets USB devices to conserve battery life on laptops. This includes a feature known as USB auto-suspend. If you are reading a long document and do not touch your wired USB keyboard for a few minutes, the kernel may cut power to the port. When you begin typing again, the keyboard must power up and re-initialize. This often results in the first two or three keystrokes being completely dropped or ignored, causing frustrating typos and interrupting your flow state every time you pause to think.
Keeping the Keyboard Powered
To eliminate this wake-up latency and stop Ubuntu from automatically suspending your USB keyboard, you must instruct the kernel to ignore power-saving rules for USB core devices.
You must modify the GRUB bootloader to apply this fix permanently across reboots. Open your terminal (Ctrl+Alt+T) and type: sudo nano /etc/default/grub. Locate the line that begins with GRUB_CMDLINE_LINUX_DEFAULT=. This line dictates kernel boot parameters. You need to append the USB auto-suspend disable flag inside the quotation marks. Modify the line so it looks exactly like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1". Press Ctrl+O to save, hit Enter, and then press Ctrl+X to exit Nano. To finalize the change, you must update the boot menu by running: sudo update-grub. Restart your computer. Your USB keyboard will now draw a tiny amount of continuous power, ensuring instant response no matter how long you leave it idle.