The Disconnected Peripherals
Ubuntu utilizes a sophisticated power management system to maximize battery life on laptops. A key component of this system is “USB Auto-Suspend.” If the operating system detects that a connected USB device—like an external hard drive, a wireless mouse receiver, or a MIDI keyboard—has been idle for a short period, it will automatically cut power to that specific USB port to save energy. While efficient, this causes massive problems with specific hardware. External drives might spin down and fail to wake up, causing data transfer errors; wireless mice might lag for a full second when you try to move them; and audio interfaces might completely disconnect, requiring a physical unplug and replug to function again.
Providing Continuous Power
To ensure your external hardware remains permanently connected and stop Ubuntu from automatically suspending USB devices, you must disable the auto-suspend feature, typically handled through the GRUB bootloader.
Open your terminal by pressing Ctrl+Alt+T. You will need to edit the main GRUB configuration file. Type: sudo nano /etc/default/grub and press Enter (provide your password). Carefully locate the specific line that begins with exactly: GRUB_CMDLINE_LINUX_DEFAULT=. Inside the quotation marks on that line, after any existing text (like “quiet splash”), add a space and carefully type exactly: usbcore.autosuspend=-1. It should look something like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1". Press Ctrl+O then Enter to save the file, and Ctrl+X to exit the nano editor. Finally, you must apply the new configuration by typing: sudo update-grub. Once the process completes, restart your computer. Ubuntu will now provide continuous, uninterrupted power to all USB ports.