How to Connect and Manage Bluetooth Headphones and Keyboards in Ubuntu

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:

  1. Click the Quick Settings cluster in the top-right corner of the Ubuntu top bar (where the battery, volume, and network icons sit).
  2. Click the small arrow next to the Bluetooth tile and click Bluetooth Settings (or press the Super key and search for Bluetooth).
  3. Ensure the master Bluetooth toggle at the top is turned On.
  4. Ubuntu will scan the local airwaves and populate the Devices list with discovered hardware.
  5. Click on your device name when it appears.
  6. If pairing a keyboard, Ubuntu will display a 6-digit PIN on your screen. Type the numbers on the wireless keyboard and press Enter.
  7. 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:

  1. Open Settings > Sound.
  2. Under Output, select your paired headphones.
  3. 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.
  4. 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

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.