---
title: "Fix Bluetooth in Ubuntu: Headphones and AirPods | DeviceTests"
description: "Fix Bluetooth in Ubuntu 22.04, 24.04 and newer: restart the service, unblock and re-pair, fix headphones with no sound or poor quality, and pair AirPods."
url: https://devicetests.com/fixing-bluetooth-connection-issues-ubuntu
language: en
---

# Fixing Bluetooth Connection Issues in Ubuntu (Headphones and AirPods)

By Eric Buchanan · Updated November 4, 2026 · First published July 25, 2023

Short answer

Restart the Bluetooth service with `sudo systemctl restart bluetooth`, then remove the device and pair it again. Headphones that connect but sound flat or silent: check the output and the playback profile. AirPods pair like other headphones; if they won’t, there is a workaround below.

The steps work on Ubuntu 22.04 and on 24.04 LTS and newer. Where they differ, it says so: 22.04 uses PulseAudio for sound, newer releases use PipeWire.

What happens?

- [The device doesn’t show up or won’t pair](https://devicetests.com/fixing-bluetooth-connection-issues-ubuntu#1-basic-checks): Checks, restart, pair again
- [Headphones connect, but sound is flat or silent](https://devicetests.com/fixing-bluetooth-connection-issues-ubuntu#4-headphones-connect-but-sound-bad-or-silent): The playback profile
- [AirPods won’t pair or keep dropping](https://devicetests.com/fixing-bluetooth-connection-issues-ubuntu#5-pair-airpods-with-ubuntu): The AirPods workaround
- [Ubuntu shows no Bluetooth at all](https://devicetests.com/fixing-bluetooth-connection-issues-ubuntu#6-still-not-working): Adapter and updates

## 1. Basic checks

1. Open **Settings** **Bluetooth** and make sure Bluetooth is on.
2. Charge the device and put it in pairing mode (see its manual).
3. Disconnect it from your phone. Many headphones connect to one device at a time.
4. Run `rfkill list bluetooth`. If it says `Soft blocked: yes`, run `sudo rfkill unblock bluetooth`

`Hard blocked: yes` means a switch or key on the laptop turns Bluetooth off, often the airplane-mode key. Press it, or check the BIOS settings.

## 2. Restart the Bluetooth service

1. Run `sudo systemctl restart bluetooth`
2. Run `systemctl status bluetooth` and look for `active (running)`. Press Q to leave.

## 3. Remove the device and pair it again

In **Settings** **Bluetooth**, click the device, then **Forget Device** (on 22.04: **Remove Device**). Put it in pairing mode and click it again in the list.

Or in a terminal: run `bluetoothctl`, then type these at the `[bluetooth]#` prompt, one per line:

```
power on
devices
remove XX:XX:XX:XX:XX:XX
scan on
pair XX:XX:XX:XX:XX:XX
trust XX:XX:XX:XX:XX:XX
connect XX:XX:XX:XX:XX:XX
quit
```

Replace `XX:XX:XX:XX:XX:XX` with the address that `devices` or `scan on` shows. `trust` makes the device reconnect by itself next time.

## 4. Headphones connect, but sound bad or silent

Open **Settings** **Sound** and pick the headphones under **Output Device**.

Bluetooth headsets have two modes: **High Fidelity Playback** for music, and a headset mode for calls that sounds flat. Poor sound usually means headset mode.

1. Install the sound control tool: `sudo apt install pavucontrol`
2. Open **PulseAudio Volume Control** and click the **Configuration** tab.
3. For your headphones, choose **High Fidelity Playback (A2DP Sink)** in the **Profile** list. The name can include the codec, such as SBC or LDAC.

Headset mode turns on by itself when an app uses the headphones’ microphone, such as a video call. That is normal.

**No high-quality profile, or no sound at all?** Reinstall the Bluetooth sound support, then restart Bluetooth and connect again:

- **Ubuntu 24.04 and newer:** `sudo apt install --reinstall libspa-0.2-bluetooth`, then log out and back in.
- **Ubuntu 22.04:** `sudo apt install --reinstall pulseaudio-module-bluetooth`, then `pulseaudio -k`

## 5. Pair AirPods with Ubuntu

1. Put both AirPods in the case and open the lid.
2. Hold the button on the back of the case until the light flashes white. On AirPods 4, AirPods 5 and AirPods Pro 3, double-tap the front of the case instead.
3. In **Settings** **Bluetooth**, click your AirPods.

**AirPods show up but won’t pair, or keep disconnecting?** Try sections 1 to 3 first. If that fails, an older workaround helps some people: make Ubuntu use classic Bluetooth only, just to pair them.

> Low Energy devices stop working
>
> With this setting, many newer mice, keyboards, fitness trackers and some game controllers stop working. Keep a wired mouse or keyboard at hand, and undo it after pairing.

1. Run `sudo nano /etc/bluetooth/main.conf`
2. Under `[General]`, change the line `#ControllerMode = dual` to `ControllerMode = bredr`
3. Save with Ctrl + O, Enter, and close with Ctrl + X.
4. Run `sudo systemctl restart bluetooth` and pair the AirPods again.
5. Once they are paired, change the line back to `#ControllerMode = dual` and restart Bluetooth.

On a non-Apple device, AirPods work as normal Bluetooth headphones for music and calls, without Siri.

## 6. Still not working

- **Update the system:** `sudo apt update && sudo apt full-upgrade`, then restart. Fixes for Bluetooth chips arrive in kernel and firmware updates.
- **Check the adapter:** `bluetoothctl list`. If nothing is listed, Ubuntu sees no Bluetooth adapter. Look for errors with `sudo dmesg | grep -i bluetooth`. A USB Bluetooth adapter is a quick fallback.
- **Try the device with another computer or phone.** If it fails there too, the device is the problem.
- **Blueman** (`sudo apt install blueman`) shows more Bluetooth options than Settings, such as profiles.

## Check the result

Test it now

Headphone test

It plays sound in the left and right ear, one at a time. If you hear each on its own side, the headphones play in stereo.

[Open the headphone test](https://devicetests.com/headphone-test)

Using the headset’s microphone? Check it with the [mic test](https://devicetests.com/mic-test). Want better sound than SBC? See [LDAC and aptX on Ubuntu](https://devicetests.com/enable-ldac-aptx-bluetooth-ubuntu).

## Sources

- [GNOME Help: I cannot connect my Bluetooth device](https://help.gnome.org/users/gnome-help/stable/bluetooth-problem-connecting.html.en)
- [BlueZ: main.conf (ControllerMode)](https://github.com/bluez/bluez/blob/master/src/main.conf)
- [Ubuntu packages: libspa-0.2-bluetooth (24.04)](https://packages.ubuntu.com/noble/libspa-0.2-bluetooth)
- [Ubuntu packages: pulseaudio-module-bluetooth (22.04)](https://packages.ubuntu.com/jammy/pulseaudio-module-bluetooth)
- [PipeWire source: Bluetooth profile names (bluez5-device.c)](https://github.com/PipeWire/pipewire/blob/1.0.5/spa/plugins/bluez5/bluez5-device.c)
- [Apple: How to reset your AirPods (pairing mode per model)](https://support.apple.com/118531)
- [Apple: Pair AirPods with a non-Apple device](https://support.apple.com/guide/airpods/pair-airpods-with-a-non-apple-device-dev499c9718b/web)

## Test it yourself

Check your own device with a free test. It runs in your web browser.

- [Sound test](https://devicetests.com/sound-test): Check your speakers, left and right, and stereo.
- [Headphone test](https://devicetests.com/headphone-test): Check left and right, polarity, bass rattle and earbud fit.
- [Surround sound test](https://devicetests.com/surround-sound-test): Check every 5.1 and 7.1 speaker, one at a time, and the subwoofer.
