The Bluetooth Power Save Problem
Ubuntu Linux utilizes a background power management tool called TLP (or the built-in kernel power management) to maximize battery life on laptops. One of the aggressive tactics this system uses is “USB Auto-Suspend.” Because the internal Bluetooth radio on most laptops is actually wired through the internal USB bus, the operating system often treats your Bluetooth adapter like an idle USB thumb drive. If you stop typing on your Bluetooth keyboard or stop moving your Bluetooth mouse for a few minutes, Ubuntu assumes the device is no longer needed and cuts power to the Bluetooth radio to save electricity. When you try to type again, there is a frustrating 3-to-5 second delay as the radio powers back up and reconnects to your peripherals.
How to Disable Bluetooth Power Management via Grub
To permanently stop Ubuntu from putting your Bluetooth radio to sleep, you must pass a specific kernel parameter to the system during the boot process. This tells the core Linux kernel to ignore power-saving rules for Bluetooth.
1. Open your terminal application.
2. You need to edit the main Grub bootloader configuration file. Open it with administrative privileges using the `nano` text editor:
sudo nano /etc/default/grub
3. Use your arrow keys to scroll down and find the line that starts with exactly: GRUB_CMDLINE_LINUX_DEFAULT=
4. This line usually looks something like "quiet splash". You need to add the Bluetooth suspend override command inside those quotation marks. Modify the line so it looks like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash btusb.enable_autosuspend=n"
5. Save the file by pressing Ctrl + O, hit Enter to confirm the file name, and then press Ctrl + X to exit the nano editor.
6. Because you modified the boot configuration, you must tell the system to generate a new boot image. Run this command:
sudo update-grub
7. Finally, restart your computer so the new kernel parameters take effect:
sudo reboot
Upon restarting, the Linux kernel will permanently disable the auto-suspend feature for the `btusb` module. Your Bluetooth radio will receive continuous power, completely eliminating the frustrating disconnects and wake-up delays with your wireless mouse and keyboard.