You are not logged in.

#1 2021-06-16 15:07:59

yunuses
Member
Registered: 2021-02-11
Posts: 9

[SOLVED]Bluetooth connects then disconnects immediately

I am trying to connect to my bluetooth headset using the relevant ArchWiki page. I can pair the device succesfully but when I try to connect, it first connects then gives an error and disconnects immediately.

[bluetooth]# connect 18:4E:16:0D:2D:FC
Attempting to connect to 18:4E:16:0D:2D:FC
[CHG] Device 18:4E:16:0D:2D:FC Connected: yes
Failed to connect: org.bluez.Error.Failed
[CHG] Device 18:4E:16:0D:2D:FC Connected: no

Restarting PulseAudio did not work, starting it as sudo did not work either. Loading module-bluetooth-discover gave an error.

pactl load-module module-bluetooth-discover
Failure: Module initialization failed

Can anybody help me?

Last edited by yunuses (2021-06-21 20:56:45)

Offline

#2 2021-06-17 05:15:52

omernaveedxyz
Member
Registered: 2020-12-31
Posts: 34

Re: [SOLVED]Bluetooth connects then disconnects immediately

Facing same issue. Was working until I wiped my device and did a fresh install. Just did a second fresh install to see if it was something I did wrong but nope, same result. Headset connects then immediately disconnects. I believe that it is a result of an update to a certain package but was unable to find out which. Downgraded to bluez 5.58 and linux 5.10.16 and no luck.

Attempting to connect to D0:65:44:01:E5:38
[CHG] Device D0:65:44:01:E5:38 Connected: yes
Failed to connect: org.bluez.Error.Failed
...
Jun 17 00:09:10 ... bluetoothd[416]: profiles/audio/avdtp.c:caps_to_list() Invalid capability data in getcap resp
Jun 17 00:09:10 ... bluetoothd[416]: profiles/audio/avdtp.c:caps_to_list() Invalid capability data in getcap resp
Jun 17 00:09:10 ... bluetoothd[416]: profiles/audio/avdtp.c:caps_to_list() Invalid capability data in getcap resp
Jun 17 00:09:10 ... bluetoothd[416]: profiles/audio/a2dp.c:a2dp_select_capabilities() Unable to select SEP
...

Offline

#3 2021-06-17 12:39:22

igneel
Member
Registered: 2021-06-17
Posts: 10

Re: [SOLVED]Bluetooth connects then disconnects immediately

I am on a fresh install. I was fiddling with btrfs so did a bunch of reinstalls. But I am facing the same issue as well. I tried a fix where the `module-bluetooth-discover` was loaded after X11 begins and it didn't fix the problem. I have tried both `pulseaudio-module-bluetooth` from the repos and `pulseaudio-modules-bt` from the AUR and the result is the same. Here is my `journalctl | grep bluetooth` output for the moment when I tried to connect. [https://pastebin.com/v0Tx1AVR] . Worthwhile to mention is that the device is trusted and paired successfully when done through `bluetoothctl` and `bluedevil` but it only refuses to connect. The error itself is the same as first post mentions. org.Bluez.Error.

Offline

#4 2021-06-17 21:22:27

omernaveedxyz
Member
Registered: 2020-12-31
Posts: 34

Re: [SOLVED]Bluetooth connects then disconnects immediately

Moved to Pipewire today and found that bluetooth does not have this issue there. It is unusable for bluetooth audio because of the lack of a high quality profile, but it does not automatically disconnect the device. This leads me to believe that it is an issue with Pulseaudio or something that is communicating with Pulseaudio. Tried downgrading to Pulseaudio 14.0-1 (Nov. 2020 build) and still facing same issue.

Offline

#5 2021-06-18 09:30:39

igneel
Member
Registered: 2021-06-17
Posts: 10

Re: [SOLVED]Bluetooth connects then disconnects immediately

That is a very old build. I have used primarily bluetooth audio devices this entire year uptil now. This problem only seems to have cropped up recently.

Offline

#6 2021-06-21 04:34:18

duynguyen
Member
Registered: 2020-04-14
Posts: 9

Re: [SOLVED]Bluetooth connects then disconnects immediately

I have a similar issue and I found this https://github.com/bluez/bluez/issues/157
There might be problem with /var/lib/bluetooth folder
I remove that folder, restart bluetooth.service and reconnect
Everything works fine now with high quality profile

Offline

#7 2021-06-21 20:56:06

yunuses
Member
Registered: 2021-02-11
Posts: 9

Re: [SOLVED]Bluetooth connects then disconnects immediately

Thanks to @duynguyen, problem is solved. I removed package bluez and installed bluez-git, then removed /var/lib/bluetooth and repaired and connected my headset without a problem.

Offline

#8 2022-08-25 02:08:37

aashu
Member
Registered: 2021-07-19
Posts: 2

Re: [SOLVED]Bluetooth connects then disconnects immediately

Thanks @duynguyen for the solution. I simply removed  /var/lib/bluetooth and restarted bluetooth.service, and everything works fine now.

Offline

#9 2022-12-15 14:02:29

millus
Member
Registered: 2019-07-21
Posts: 193

Re: [SOLVED]Bluetooth connects then disconnects immediately

Nothing worked for me, not even deleting the var/lib/bluetooth folder, only thing that worked was to just turn off the BT device completely and turn it on again and making sure it can ONLY pair with archlinux and not also with some other device eg phone.
The headphones can pair with multiple devices just fine but if they do then archlinux gives the connect+disconnect+connect+disconnect.. spam and won't work.

Offline

#10 2022-12-25 19:18:56

Girish
Member
Registered: 2022-12-25
Posts: 1

Re: [SOLVED]Bluetooth connects then disconnects immediately

I just had to hard reset my bluetooth device and it paired ( connected ) properly with my system
[ I'm running arch linux with kde plasma as my DE ]

Offline

#11 2024-03-23 04:59:20

ichsan
Member
Registered: 2024-03-23
Posts: 1

Re: [SOLVED]Bluetooth connects then disconnects immediately

I discovered that the issue arose when I cleaned Pacman packages using the command pacman -Rcs $(pacman -Qdtq). This command ended up removing bluez-utils. To rectify this, I simply reinstalled it with sudo pacman -S bluez-utils, and everything seems to be working fine now.

Offline

Board footer

Powered by FluxBB