Hello
I use ubuntu i3. I have a desktop pc with and amd ryzen 5 and an msi nvidia geforce 1660. I use dual boot on a 512gb ssd with windows and linux.
I have a problem with my sony wh-1000mx5 headphones. I am unable to connect them to my Ubuntu system. The headphones were running fine and I could always connect the via bluetoothcl connect {Mac Address}.
Yesterday, I booted on windows and connected the headphones there via bluetooth. I then rebooted to linux and I would always get
[bluetooth]# connect CC:0A:65:1C:6D:59
Device CC:0A:65:1C:6D:59 not available
The headphones are no longer showing up in bluetoothctl scan on. I can no longer connect to them. This seems to be a very specific problem, because my headphones are still able to connect to any other device and my linux pc is still able to connect to any other bluetooth headphones such as my old wh-1000mx3 with full functionality. Thus it seems to not really be a bluetooth problem. I did a wide variety of steps to solve this problem, which I am going to list in the end to not disturb the reading flow. The ONLY thing that led to some results is that I looked into the logs of btmon during bluetoothctl scan. There, I found that my headphones were actually listed:
@ MGMT Event: Device Found (0x0012) plen 34 {0x0002} [hci0] 31.049217 LE Address: CC:0A:65:1C:6D:57 (Static) RSSI: -51 dBm (0xcd) Flags: 0x00000000 Data length: 20 16-bit Service UUIDs (complete): 1 entry Unknown (0xfe03) Name (complete): LE_WH-1000XM5
So my Ubuntu pc was actually finding something. It just couldnt connect to it and only had the "LE Address". I thus did this:
inside bluetoothctl calling the following sequence
menu scan
transport le
back
scan on
Then my headphones appeared and I could connect to them. The headphones did not make their connection sound however and It was also not possible for me to see them in pavucontrol. They did not play any sound either. The only thing that changed is that bluetoothctl would display the name... They are seemingly not recognized as a real device or audio output. I am very helpless at this point and would appreciate any help.
(Logs at the end)
Here is a list of all the things I already tried:
Reboot
Shut down, unplug, wait 5 minutes, plug back in and boot
Reset Headphones
Reinstall bluez
Reset usb:hciconfig hci0 downrmmod btusbmodprobe btusbhciconfig hci0 up
Reset usb like this:sudo rmmod xhci_pci; sudo rmmod xhci_hcd; sudo modprobe xhci_pci xhci_hcd
check rfkill (nothing is blocked)
Restart pulsaudio (by killing and restarting process)
Download a script that claims to fix this:
curl "https://gist.githubusercontent.com/pylover/d68be364adac5f946887b85e6ed6e7ae/raw/install.sh" | sh
fails because it cannot find the bluetooth device, despite bluetoothctl claiming that it is connected
10. check bluetoothctl agent
power on
agent on
default-agent
scan on
pairable on
discoverable on
11. Removed, repaired and trusted the device in bluetoothctl
12. Did a software update with the software updater
13. Restarted bluetooth:
systemctl stop bluetooth.service
systemctl enable bluetooth.service
systemctl start bluetooth.service
systemctl restart bluetooth.service
14. Used a usb dongle for bluetooth instead and redid all the steps -> same results
15. Tried connecting over the name, and not the Mac address
15. tried connecting over gnome UI in non-i3 ubuntu -> Headphones disappear as soon as I click on them in the bluetooth panel
16. removed the headphones as device from windows bluetooth
17. Tried adding AutoConnect=true to main.conf of bluetooth
18. Made sure no other devices are connected to the headphones
Because they might be relevant here are my:
sudo systemctl status bluetooth
bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-05-31 10:38:30 CEST; 54min ago
Docs: man:bluetoothd(8)
Main PID: 1407 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 18792)
Memory: 1.9M
CGroup: /system.slice/bluetooth.service
└─1407 /usr/lib/bluetooth/bluetoothd
Mai 31 10:38:29 blendaddict-MS-7B86 systemd[1]: Starting Bluetooth service...
Mai 31 10:38:29 blendaddict-MS-7B86 bluetoothd[1407]: Bluetooth daemon 5.53
Mai 31 10:38:29 blendaddict-MS-7B86 bluetoothd[1407]: Unknown key AutoConnect for group General in /etc/bluetooth/main.conf
Mai 31 10:38:30 blendaddict-MS-7B86 systemd[1]: Started Bluetooth service.
Mai 31 10:38:30 blendaddict-MS-7B86 bluetoothd[1407]: Starting SDP server
Mai 31 10:38:30 blendaddict-MS-7B86 bluetoothd[1407]: Bluetooth management interface 1.21 initialized
note from me: (autoconnect warning stems from a fix I tried)
This is what bluetoothctl looks like after connecting to the headphones:
[CHG] Device CC:0A:65:1C:6D:59 UUIDs: 5b833e0a-6bc7-4802-8e9a-723ceca4bd8f
[CHG] Device CC:0A:65:1C:6D:59 UUIDs: dc405470-a351-4a59-97d8-2e2e3b207fbb
[CHG] Device CC:0A:65:1C:6D:59 UUIDs: f76acb00-7cab-495f-bb1a-e664598fd77f
[CHG] Device CC:0A:65:1C:6D:59 ServicesResolved: yes
[CHG] Device CC:0A:65:1C:6D:59 Name: LE_WH-1000XM5
[CHG] Device CC:0A:65:1C:6D:59 Alias: LE_WH-1000XM5
[CHG] Device 78:61:67:B2:02:06 RSSI: -70
[CHG] Device 63:BD:2A:54:E2:B3 RSSI: -76
[CHG] Device D0:C0:9D:03:EA:25 RSSI: -84
[CHG] Device FB:CD:3A:83:5F:11 RSSI: -50
[CC-0A-65-1C-6D-59]#
Sometimes it also says the name of the headphones in the squared brackets.
this is bluetoothctl devices:
[CC-0A-65-1C-6D-59]# devices
Device 94B:56:F67:27 LE_WH-1000XM3
Device 78:61:67:B2:02:06 78-61-67-B2-02-06
Device 8C:79:F5:1F:9F:A4 [TV] Samsung 7 Series (43)
Device 40:A4:C1:19:59:EC 40-A4-C1-19-59-EC
Device 63:BD:2A:54:E2:B3 63-BD-2A-54-E2-B3
Device F0:B3:EC:7D:23:FB F0-B3-EC-7D-23-FB
Device 3A:29:4A:5B:E0:82 3A-29-4A-5B-E0-82
Device 4F:E8:0E:A6:2F:8D 4F-E8-0E-A6-2F-8D
Device D0:C0:9D:03:EA:25 D0-C0-9D-03-EA-25
Device CC:0A:65:1C:6D:59 LE_WH-1000XM5
Device 6F:00:70:41:74:E4 6F-00-70-41-74-E4
Device FB:CD:3A:83:5F:11 FB-CD-3A-83-5F-11
Device F2:57:BA:E5:95:79 F2-57-BA-E5-95-79
Device CC:0A:65:1C:6D:57 LE_WH-1000XM5
Device C1:2E:A72:79:29 C1-2E-A7-D2-79-29
Device DF:B1:98:A1:73:71 DF-B1-98-A1-73-71
Device 45:9A:55:64:C6:23 45-9A-55-64-C6-23
Device 6F:2E:C0:589B 6F-2E-C0-58-D9-DB
Device DE:6E:07:B1:46:55 DE-6E-07-B1-46-55
And this is my
pactl list short sinks
0alsa_output.pci-0000_29_00.1.hdmi-stereomodule-alsa-card.cs16le 2ch 44100HzSUSPENDED
1alsa_output.pci-0000_2b_00.4.analog-stereomodule-alsa-card.cs16le 2ch 44100HzSUSPENDED
As mentioned, any help is greatly appreciated
Bookmarks