Bluetooth does not work after upgrade to Fedora 41. Sway + Pipewire

Hi!
I recently updated to Fedora 41 and unfortunately, Bluetooth audio does not work.
Note: I don’t know if it did on Fedora 40

I’m using a Sony WMX-1000-4.

I’m missing the pactl Bluetooth modules (module-bluetooth-policy and module-bluetooth-discover)

I installed all pipewire packages and all bluez packages as well.

Pipewire 1.2.6, wireplumber 0.5.5

$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 231
Tile Size: 65472
User Name: charlotte
Host Name: fedora
Server Name: PulseAudio (on PipeWire 1.2.6)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_04_00.6.HiFi__Speaker__sink
Default Source: alsa_input.pci-0000_04_00.6.HiFi__Mic1__source
Cookie: eacd:a13a
$ hciconfig
hci0:	Type: Primary  Bus: USB
	BD Address: 90:0F:0C:59:33:5C  ACL MTU: 1021:6  SCO MTU: 255:12
	UP RUNNING PSCAN 
	RX bytes:3547 acl:32 sco:0 events:273 errors:0
	TX bytes:42722 acl:32 sco:0 commands:234 errors:0

I searched for hours, and did not found what is my error, so I’d appreciate any help!

I can provide more information, I just sent what I thought would be useful.

I’ve been using wpctl status and wpctl set-default <N> where <N> is the number shown for my bluetooth headphones. Sometimes I have to restart my browser, but usually not.

Use sudo bluetoothctl to pair/remove connect/disconnect your bluetooth headset. (It’s interactive. Type help for a list of available commands.)

Hey,
Thanks for the answer,
I used bluetoothctl to connect to my headphones and the connection is steady.

Unfortunately when I type

$ wpctl status
PipeWire 'pipewire-0' [1.2.6, charlotte@fedora, cookie:3939344698]
 └─ Clients:
        32. WirePlumber                         [1.2.6, charlotte@fedora, pid:2141]
        33. pipewire                            [1.2.6, charlotte@fedora, pid:2142]
        45. xdg-desktop-portal                  [1.2.6, charlotte@fedora, pid:6555]
        46. WirePlumber [export]                [1.2.6, charlotte@fedora, pid:2141]
        50. Chromium input                      [1.2.6, charlotte@fedora, pid:7752]
        51. WEBRTC VoiceEngine                  [1.2.6, charlotte@fedora, pid:7693]
        68. wpctl                               [1.2.6, charlotte@fedora, pid:13254]
        69. Thunderbird                         [1.2.6, charlotte@fedora, pid:7924]
        73. Firefox                             [1.2.6, charlotte@fedora, pid:11090]
        77. WEBRTC VoiceEngine                  [1.2.6, charlotte@fedora, pid:7693]
        79. waybar                              [1.2.6, charlotte@fedora, pid:6521]

Audio
 ├─ Devices:
 │      71. Renoir Radeon High Definition Audio Controller [alsa]
 │      76. Family 17h/19h HD Audio Controller  [alsa]
 │  
 ├─ Sinks:
 │  *   90. Family 17h/19h HD Audio Controller Speaker [vol: 0.41]
 │  
 ├─ Sources:
 │      70. Family 17h/19h HD Audio Controller Headphones Stereo Microphone [vol: 1.00]
 │  *  102. Family 17h/19h HD Audio Controller Digital Microphone [vol: 0.89]
 │  
 ├─ Filters:
 │  
 └─ Streams:
        72. Firefox                                                     
             91. output_FL       > ALC257 Analog:playback_FL	[init]
            105. output_FR       > ALC257 Analog:playback_FR	[init]

Video
 ├─ Devices:
 │      56. Integrated Camera                   [v4l2]
 │      82. Integrated Camera                   [v4l2]
 │  
 ├─ Sinks:
 │  
 ├─ Sources:
 │  *   57. Integrated Camera (V4L2)           
 │  
 ├─ Filters:
 │  
 └─ Streams:

Settings
 └─ Default Configured Devices:
         1. Audio/Source  alsa_input.pci-0000_04_00.6.HiFi__Mic2__source

I only have one sink, which is my speakers.
And I checked with bluetoothctl I’m connected to my headphones.

I have a similar model headset. It is strange about connecting properly. Try running sudo bluetoothctl disconnect <device-number>, wait a second, and then run sudo bluetoothctl connect <device-number> to reset the connection. Then rerun wpctl status and see if your device shows up. You might need to repeat the process a couple of times. I think the problem is something specific to those headphones (maybe/hopefully a future firmware update will fix whatever the problem is).

I think I see the problem. This device seems to have two bluetooth channels:

[bluetooth]# scan on
[bluetooth]# SetDiscoveryFilter success
[bluetooth]# hci0 type 7 discovering on
[bluetooth]# Discovery started
[bluetooth]# [CHG] Controller 28:39:26:BD:B5:08 Discovering: yes
[bluetooth]# [NEW] Device C6:36:6D:77:40:5C LE_WH-1000XM4
[bluetooth]# [NEW] Device 14:3F:A6:7C:95:ED WH-1000XM4

If you are connecting to the LE... device ID, it doesn’t work. Remove that (remove <ID>). Then, turn off your headset. Turn it back on and continue holding the power button until it says it is in pairing mode. Then run scan on at your bluetoothctl prompt. You should see it pick up two device numbers for your headset as shown above. Once you have the ID number, you can enter scan off to disable the scanning and pair <ID> (the one that doesn’t start with LE...) to actually pair with your device. From there on, everything should work normally. You have to be quick with the commands so your headset doesn’t timeout its pairing mode before you get your PC paired.

Here is a log from my PC where I got this to work:

[bluetooth]# scan on
[bluetooth]# SetDiscoveryFilter success
[bluetooth]# hci0 type 7 discovering on
[bluetooth]# Discovery started
[bluetooth]# [CHG] Controller 28:39:26:BD:B5:08 Discovering: yes
[bluetooth]# [NEW] Device C6:36:6D:77:40:5C LE_WH-1000XM4
[bluetooth]# [NEW] Device 14:3F:A6:7C:95:ED WH-1000XM4
[bluetooth]# scan o[CHG] Device 14:3F:A6:7C:95:ED RSSI: 0xffffffd4 (-44)
[bluetooth]# scan off
[bluetooth]# hci0 type 7 discovering off
[bluetooth]# Discovery stopped
[bluetooth]# [CHG] Device 14:3F:A6:7C:95:ED TxPower is nil
[bluetooth]# [CHG] Device 14:3F:A6:7C:95:ED RSSI is nil
[bluetooth]# [CHG] Controller 28:39:26:BD:B5:08 Discovering: no
[bluetooth]# pair 14:3F:A6:7C:95:ED
Attempting to pair with 14:3F:A6:7C:95:ED
[bluetooth]# hci0 device_flags_changed: 14:3F:A6:7C:95:ED (BR/EDR)
[bluetooth]#      supp: 0x00000001  curr: 0x00000000
[bluetooth]# hci0 14:3F:A6:7C:95:ED type BR/EDR connected eir_len 17
[bluetooth]# [CHG] Device 14:3F:A6:7C:95:ED Connected: yes
[WH-1000XM4]# hci0 new_link_key 14:3F:A6:7C:95:ED type 0x04 pin_len 0 store_hint 1
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED Bonded: yes
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 00000000-deca-fade-deca-deafdecacaff
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 0000110d-0000-1000-8000-00805f9b34fb
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 0000110f-0000-1000-8000-00805f9b34fb
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 00001131-0000-1000-8000-00805f9b34fb
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 81c2e72a-0591-443e-a1ff-05f988593351
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 8901dfa8-5c7e-4d8f-9f0c-c2b70683f5f0
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 931c7e8a-540f-4686-b798-e8df0a2ad9f7
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: 96cc203e-5068-46ad-b32d-e316f5e069ba
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: b9b213ce-eeab-49e4-8fd9-aa478ed1b26b
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED UUIDs: f8d1fbe4-7966-4334-8024-ff96c9330e15
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED ServicesResolved: yes
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED Paired: yes
[WH-1000XM4]# Pairing successful
[WH-1000XM4]# hci0 14:3F:A6:7C:95:ED type BR/EDR disconnected with reason 2
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED ServicesResolved: no
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED Connected: no
[bluetooth]# [DEL] Device C6:36:6D:77:40:5C LE_WH-1000XM4
[bluetooth]# info 14:3F:A6:7C:95:ED
Device 14:3F:A6:7C:95:ED (public)
	Name: WH-1000XM4
	Alias: WH-1000XM4
	Class: 0x00240404 (2360324)
	Icon: audio-headset
	Paired: yes
	Bonded: yes
	Trusted: no
	Blocked: no
	Connected: no
	LegacyPairing: no
	UUID: Vendor specific           (00000000-deca-fade-deca-deafdecacaff)
	UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Cont.. (0000110f-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
	UUID: Headset HS                (00001131-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: Vendor specific           (81c2e72a-0591-443e-a1ff-05f988593351)
	UUID: Vendor specific           (8901dfa8-5c7e-4d8f-9f0c-c2b70683f5f0)
	UUID: Vendor specific           (931c7e8a-540f-4686-b798-e8df0a2ad9f7)
	UUID: Vendor specific           (96cc203e-5068-46ad-b32d-e316f5e069ba)
	UUID: Vendor specific           (b9b213ce-eeab-49e4-8fd9-aa478ed1b26b)
	UUID: Vendor specific           (f8d1fbe4-7966-4334-8024-ff96c9330e15)
	Modalias: usb:v054Cp0D58d0250
[bluetooth]# connect 14:3F:A6:7C:95:ED
Attempting to connect to 14:3F:A6:7C:95:ED
[bluetooth]# hci0 14:3F:A6:7C:95:ED type BR/EDR connected eir_len 17
[bluetooth]# [CHG] Device 14:3F:A6:7C:95:ED Connected: yes
[WH-1000XM4]# [NEW] Endpoint /org/bluez/hci0/dev_14_3F_A6_7C_95_ED/sep4 
[WH-1000XM4]# [NEW] Endpoint /org/bluez/hci0/dev_14_3F_A6_7C_95_ED/sep2 
[WH-1000XM4]# [NEW] Endpoint /org/bluez/hci0/dev_14_3F_A6_7C_95_ED/sep1 
[WH-1000XM4]# [NEW] Endpoint /org/bluez/hci0/dev_14_3F_A6_7C_95_ED/sep3 
[WH-1000XM4]# [NEW] Transport /org/bluez/hci0/dev_14_3F_A6_7C_95_ED/sep4/fd0 
[WH-1000XM4]# Connection successful
[WH-1000XM4]# [CHG] Device 14:3F:A6:7C:95:ED ServicesResolved: yes
[WH-1000XM4]# [CHG] Transport /org/bluez/hci0/dev_14_3F_A6_7C_95_ED/sep4/fd0 Volume: 0x0039 (57)
[WH-1000XM4]# 
$ wpctl status
PipeWire 'pipewire-0' [1.0.9, gregory@hal9000, cookie:3258334588]
 └─ Clients:
        32. pipewire                            [1.0.9, gregory@hal9000, pid:2128]
        33. WirePlumber                         [1.0.9, gregory@hal9000, pid:2123]
        47. WirePlumber [export]                [1.0.9, gregory@hal9000, pid:2123]
        94. wpctl                               [1.0.9, gregory@hal9000, pid:8370]

Audio
 ├─ Devices:
 │      54. Built-in Audio                      [alsa]
 │      55. Built-in Audio                      [alsa]
 │     111. WH-1000XM4                          [bluez5]
 │  
 ├─ Sinks:
 │      56. Built-in Audio Digital Stereo (HDMI) [vol: 0.40]
 │  *   57. Built-in Audio Analog Stereo        [vol: 0.52]
 │      93. WH-1000XM4                          [vol: 0.40]
 │  
 ├─ Sources:
 │      58. Built-in Audio Analog Stereo        [vol: 1.00]
 │  *   96. WH-1000XM4                          [vol: 1.00]
 │  
 ├─ Filters:
 │  
 └─ Streams:

Video
 ├─ Devices:
 │  
 ├─ Sinks:
 │  
 ├─ Sources:
 │  
 ├─ Filters:
 │  
 └─ Streams:

Settings
 └─ Default Configured Devices:
         0. Audio/Sink    alsa_output.pci-0000_00_09.2.analog-stereo
         1. Audio/Source  alsa_input.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.mono-fallback
1 Like

Thank you very much for your help :slight_smile: !

1 Like

This topic seems related: Bluetooth not working on kernel 6.11.3 - #6 by benthaase