The Disconnected Peripherals
Ubuntu Linux employs aggressive power management strategies to extend battery life, especially on laptops. One of these features is USB Auto-Suspend. When the kernel determines that a plugged-in USB device is idle, it cuts power to that specific USB port to save energy. While this works well for simple devices, it causes massive problems with complex peripherals. If your USB Wi-Fi adapter suddenly drops connection every ten minutes, your external DAC audio interface starts popping and crackling, or your high-end gaming mouse stops responding until you click a button to “wake” it up, Ubuntu is likely automatically suspending those USB ports.
Disabling USB Auto-Suspend via GRUB
To ensure your peripherals receive constant power and stop Ubuntu from automatically suspending USB ports, you must instruct the Linux kernel to completely disable the usbcore autosuspend feature during the boot sequence.
Open a terminal window (Ctrl+Alt+T). You need to edit the GRUB bootloader configuration file. Type sudo nano /etc/default/grub and press Enter (provide your password). Locate the line that begins with GRUB_CMDLINE_LINUX_DEFAULT=. This line contains boot parameters like “quiet splash”. Carefully navigate inside the quotation marks at the end of that line and add a space, followed by usbcore.autosuspend=-1. For example, the line might now look like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1". Press Ctrl+O to save the file, then Ctrl+X to exit the nano editor. Finally, you must apply these changes to the bootloader by typing sudo update-grub and pressing Enter. Restart your computer. Your USB ports will now remain fully powered at all times.