Wireless Bluetooth accessories—such as noise-cancelling headphones, wireless mice, mechanical keyboards, and external speakers—are standard peripherals for modern computing. While older Linux distributions had a reputation for finicky Bluetooth stacks, modern Ubuntu versions use BlueZ and PipeWire to deliver instant device discovery, low-latency audio streaming, and high-fidelity AAC and LDAC codec support. Pairing and managing your wireless gear in Ubuntu takes just a few clicks through the desktop panel.
Step 1: Put Your Bluetooth Accessory into Pairing Mode
Before searching for devices in Ubuntu, ensure your accessory is discoverable:
- Headphones & Earbuds: Press and hold the power or pairing button for 5 to 7 seconds until the LED flashes rapidly (or place earbuds in their charging case with the lid open and hold the case setup button).
- Wireless Mice & Keyboards: Turn on the power switch and press the dedicated Connect or Bluetooth channel switch button on the underside until the channel light blinks.
Step 2: Pair the Device via Ubuntu Settings
Connecting your peripheral through the graphical interface:
- Click the Quick Settings cluster in the top-right corner of the Ubuntu top bar (where the battery, volume, and network icons sit).
- Click the small arrow next to the Bluetooth tile and click Bluetooth Settings (or press the Super key and search for Bluetooth).
- Ensure the master Bluetooth toggle at the top is turned On.
- Ubuntu will scan the local airwaves and populate the Devices list with discovered hardware.
- Click on your device name when it appears.
- If pairing a keyboard, Ubuntu will display a 6-digit PIN on your screen. Type the numbers on the wireless keyboard and press Enter.
- The status will change to Connected.
Step 3: Switch Audio Output Profiles for Headphones
When connecting Bluetooth headsets equipped with microphones, Ubuntu needs to know whether you want high-fidelity music playback or two-way call audio:
- Open Settings > Sound.
- Under Output, select your paired headphones.
- Under Configuration, review the active profile:
- High Fidelity Playback (A2DP / AAC): Delivers crisp stereo sound for listening to music, watching movies, or editing video. Microphone input is disabled in this mode.
- Headset Head Unit (HSP/HFP): Enables the built-in microphone for Zoom, Discord, or Google Meet calls, but downsamples audio quality to mono.
- Modern Ubuntu switches between these profiles automatically when entering voice calls.
Fast Troubleshooting: Restarting the Bluetooth Service
If an accessory fails to connect after sleep or unpairing, open the Terminal (Ctrl + Alt + T) and restart the Bluetooth service instantly by running:
sudo systemctl restart bluetooth