Bluetooth audio stopped working after 26.05 upgrade

Has bluetooth audio stopped working for anyone else after 26.05?

My config is simple, the relevant part being

services.pipewire = { enable = true; pulse.enable = true; };
hardware.bluetooth.enable = true;

On 25.11, I could connect to bluetooth speakers and use them to output audio, eg choosing with pwvucontrol.

Since 26.05, I can make the bluetooth connection (using bluetoothctl) but then the speaker is not available as an audio sink, eg checking wpctl status, I see the bluez5 audio device listed but it doesn’t have a corresponding sink,

$ wpctl status
...
Audio
 ├─ Devices:
 │      48. Built-in Audio                      [alsa]
 │      75. Q M20 HD White                      [bluez5]
 │  
 ├─ Sinks:
 │  *   52. Built-in Audio Analog Stereo        [vol: 0.40]
 │  
...

This happened to me too! I daily drive two NixOS instances, and my bluetooth audio failed on both.

I tried debugging it on my end, and after inspecting a few bluetooth and audio related services, the following seemed the most important log:

bluetoothd[53864]: src/service.c:btd_service_connect() a2dp-source profile connect failed for 78:2B:64:36:2B:EC: Protocol not available

This is still happening right now on one of my machines (nixos-version > 26.11.20260626.e73de5b (Zokor); however, the problem has already been solved on the other one. I’ll come back to this thread with more information!

Thanks for posting! I knew something was up, but could not find any discussion on it.

My other machine is currently working, and my nixos-version is also 26.11.20260626.e73de5b; so I suppose that is not the issue. I’ll keep an eye on this thread. I have been a bit busy these days and my configuration is not uniform across the two machines, so maybe it can be a help in figuring out what exactly is happening.

I am on 26.05.20260630.95ca1e2 (Yarara) and seeing the following error from bluetooth.service,

bluetoothd[1868]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 7C:96:D2:F2:15:FB: Device or resource busy

First Nixos install for me. Version 26.11.20260715.753cc8a (Zokor) too. I have the same symptoms:
Bluetooth audio device connecting but not set up as an audio sink with the same a2dp-sink profile connect failed error.

Have you found a solution?

No guarantees, but I’ve found this to be a BlueZ regression. Downgrading that seems to “fix” the issue on my end:

{
  # My JBL Cinema SB550 fails to connect with BlueZ 5.86
  hardware.bluetooth.package = lib.mkIf (lib.versionOlder pkgs.bluez.version "5.87") (
    (pkgs.bluez.override {
      bluez-headers = pkgs.bluez-headers.overrideAttrs (old: {
        version = "5.84";

        src = pkgs.fetchurl {
          url = "mirror://kernel/linux/bluetooth/bluez-5.84.tar.xz";
          hash = "sha256-W6c9Aw97AAh9Z4ALDjIWAa7A+JKCfHLlosg5DYyIaxE=";
        };
      });
    }).overrideAttrs
      (_: {
        patches = [
          (pkgs.fetchurl {
            name = "static.patch";
            url = "https://lore.kernel.org/linux-bluetooth/20250703182908.2370130-1-hi@alyssa.is/raw";
            hash = "sha256-4Yz3ljsn2emJf+uTcJO4hG/YXvjERtitce71TZx5Hak=";
          })
        ];
      })
  );
}

I’ll wait for the next version bump before attempting to report this.

Thank you! I have applied the downgrade and I have no bluetooth audio issue anymore.

Yes, I agree. I see the same when I add nixos-25.11 to my NixOS flake inputs and set hardware.bluetooth.package = pkgs-old.bluez. Thanks.

Note that in doing so your system will use a whole stack of outdated software, from glibc up. Nix duplicates every dependency for which versions don’t exactly match. This is both a lot of storage space, and a lot of lingering CVEs.

Given that it’s probably going to be 6 months to a year before the next BlueZ bump in NixOS, I wouldn’t recommend that approach of depending on the old version.

That is a very good recommendation, much appreciated. I’ll use your override instead.