You are not logged in.

#1 2021-02-19 22:30:14

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

[Solved] Bluetooth headset randomly disconnecting

I have bluetooth setup with bluetoothctl and bluez utils following this guide: https://wiki.archlinux.org/index.php/Bluetooth_headset

I have just recently begun experiencing this issue where my headset will randomly disconnect from my laptop for seemingly no reason. Before this I had no issues for at least a month. This seems to happen every 10 minutes and I'm not sure what the cause could be. I believe it happened after I updated bluez-utils using "pacman -Syu" but there has been multiple updates to bluez-utils since that time.

Here is output of "journalctl -xe"

...
Feb 19 16:24:08 OMER-LAPTOP-LINUX bluetoothd[692]: profiles/audio/avdtp.c:handle_unanswered_req() No reply to Close request
Feb 19 16:24:08 OMER-LAPTOP-LINUX dbus-daemon[460]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.18" (uid=1000 pid=1000 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.6" (uid=0 pid=692 comm="/usr/lib/bluetooth/bluetoothd ")
Feb 19 16:24:10 OMER-LAPTOP-LINUX kernel: input: Omer’s AirPods Pro (AVRCP) as /devices/virtual/input/input26
Feb 19 16:24:10 OMER-LAPTOP-LINUX systemd-logind[466]: Watching system buttons on /dev/input/event20 (Omer’s AirPods Pro (AVRCP))
Feb 19 16:24:13 OMER-LAPTOP-LINUX bluetoothd[692]: /org/bluez/hci0/dev_D0_65_44_01_E5_38/sep1/fd1: fd(31) ready
Feb 19 16:24:13 OMER-LAPTOP-LINUX rtkit-daemon[1005]: Supervising 3 threads of 1 processes of 1 users.
Feb 19 16:24:13 OMER-LAPTOP-LINUX rtkit-daemon[1005]: Successfully made thread 25469 of process 1000 owned by '1000' RT at priority 5.
Feb 19 16:24:13 OMER-LAPTOP-LINUX rtkit-daemon[1005]: Supervising 4 threads of 1 processes of 1 users.
Feb 19 16:26:39 OMER-LAPTOP-LINUX dbus-daemon[460]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.18" (uid=1000 pid=1000 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.6" (uid=0 pid=692 comm="/usr/lib/bluetooth/bluetoothd ")
Feb 19 16:27:45 OMER-LAPTOP-LINUX kernel: input: Omer’s AirPods Pro (AVRCP) as /devices/virtual/input/input27
Feb 19 16:27:45 OMER-LAPTOP-LINUX systemd-logind[466]: Watching system buttons on /dev/input/event20 (Omer’s AirPods Pro (AVRCP))
Feb 19 16:27:48 OMER-LAPTOP-LINUX bluetoothd[692]: /org/bluez/hci0/dev_D0_65_44_01_E5_38/sep1/fd2: fd(31) ready
Feb 19 16:27:48 OMER-LAPTOP-LINUX rtkit-daemon[1005]: Supervising 3 threads of 1 processes of 1 users.
Feb 19 16:27:48 OMER-LAPTOP-LINUX rtkit-daemon[1005]: Successfully made thread 26136 of process 1000 owned by '1000' RT at priority 5.
Feb 19 16:27:48 OMER-LAPTOP-LINUX rtkit-daemon[1005]: Supervising 4 threads of 1 processes of 1 users.

Update: Bluez-utils version 5.55-3. Have downgraded back to 5.55-1 since it's the oldest one on my laptop. Testing to see if this fixes issue.

Update 2: Downgrading did not fix the issue. I've included the output of "systemctl status bluetooth.service" below

Feb 19 18:12:23 OMER-LAPTOP-LINUX bluetoothd[792]: /org/bluez/hci0/dev_D0_65_44_01_E5_38/sep1/fd1: fd(31) ready
Feb 19 18:12:41 OMER-LAPTOP-LINUX bluetoothd[792]: Endpoint unregistered: sender=:1.18 path=/MediaEndpoint/A2DPSink/sbc
Feb 19 18:12:41 OMER-LAPTOP-LINUX bluetoothd[792]: Endpoint unregistered: sender=:1.18 path=/MediaEndpoint/A2DPSource/sbc
Feb 19 18:12:44 OMER-LAPTOP-LINUX bluetoothd[792]: Endpoint registered: sender=:1.18 path=/MediaEndpoint/A2DPSink/sbc
Feb 19 18:12:44 OMER-LAPTOP-LINUX bluetoothd[792]: Endpoint registered: sender=:1.18 path=/MediaEndpoint/A2DPSource/sbc
Feb 19 18:12:58 OMER-LAPTOP-LINUX bluetoothd[792]: /org/bluez/hci0/dev_D0_65_44_01_E5_38/sep1/fd2: fd(31) ready

Update 3: Issue has been found to be related to updates to linux-firmware bluetooth driver AX200 and similar. Subsequent updates are being pushed to linux-firmware to fix this.

Last edited by omernaveedxyz (2021-04-29 07:04:00)

Offline

#2 2021-02-19 23:05:50

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,556
Website

Re: [Solved] Bluetooth headset randomly disconnecting

If this a laptop, sometimes powering it off and removing the battery can help.

Last edited by ugjka (2021-02-19 23:06:14)


Fix yo shit: journalctl -b -p warning
Github

Offline

#3 2021-02-26 16:21:02

tombana
Member
Registered: 2021-02-26
Posts: 2

Re: [Solved] Bluetooth headset randomly disconnecting

I have the exact same issue. I've been using my Bluetooth headset successfully for almost a year but since an update this February, it disconnects (and reconnects a couple of seconds later) after 10-30 minutes or so. After another 10-30 minutes it happens again. Re-pairing the headset did not help.

Output of `journalctl -xe`:

Feb 26 17:04:09 tomdell acpid[460]: input device has been disconnected, fd 26
Feb 26 17:04:09 tomdell bluetoothd[481]: src/profile.c:ext_io_disconnected() Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Feb 26 17:04:09 tomdell dbus-daemon[462]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.22" (uid=1000 pid=6435 comm="/usr/bin/pulseaudio --daemonize=no ->
Feb 26 17:04:13 tomdell bluetoothd[481]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 4C:87:5D:CB:4D:78: Host is down (112)
Feb 26 17:04:14 tomdell bluetoothd[481]: /org/bluez/hci0/dev_4C_87_5D_CB_4D_78/fd2: fd(29) ready
Feb 26 17:04:14 tomdell rtkit-daemon[6453]: Supervising 10 threads of 7 processes of 1 users.
Feb 26 17:04:14 tomdell rtkit-daemon[6453]: Successfully made thread 120456 of process 6435 owned by '1000' RT at priority 5.
Feb 26 17:04:14 tomdell rtkit-daemon[6453]: Supervising 11 threads of 7 processes of 1 users.
Feb 26 17:04:15 tomdell bluetoothd[481]: plugins/policy.c:reconnect_timeout() Reconnecting services failed: Operation already in progress (114)
Feb 26 17:04:15 tomdell kernel: input: LE-Bose QC35 II Tom (AVRCP) as /devices/virtual/input/input47
Feb 26 17:04:15 tomdell systemd-logind[466]: Watching system buttons on /dev/input/event27 (LE-Bose QC35 II Tom (AVRCP))

Last edited by tombana (2021-02-26 16:23:48)

Offline

#4 2021-02-27 20:52:27

Macacao
Member
Registered: 2021-02-27
Posts: 1

Re: [Solved] Bluetooth headset randomly disconnecting

Exact same issue here. Here is my output (journalctl) :

févr. 27 20:14:48 thinkpad bluetoothd[945]: profiles/audio/avdtp.c:cancel_request() Suspend: Connection timed out (110)
févr. 27 20:14:49 thinkpad bluetoothd[945]: profiles/audio/avdtp.c:handle_unanswered_req() No reply to Suspend request
févr. 27 20:14:49 thinkpad pulseaudio[1573]: Transport Acquire() failed for transport /org/bluez/hci0/dev_00_13_EF_20_07_1F/sep1/fd3 (Input/output error)
févr. 27 20:14:49 thinkpad dbus-daemon[867]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.36" (uid=1000 pid=1573 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo" label="unconfined") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.9" (uid=0 pid=945 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
févr. 27 20:14:55 thinkpad kernel: input: SMSL BT4.2 (AVRCP) as /devices/virtual/input/input33
févr. 27 20:14:55 thinkpad systemd-logind[876]: Watching system buttons on /dev/input/event17 (SMSL BT4.2 (AVRCP))
févr. 27 20:14:57 thinkpad bluetoothd[945]: /org/bluez/hci0/dev_00_13_EF_20_07_1F/sep1/fd4: fd(42) ready

&&

févr. 27 21:43:03 thinkpad dbus-daemon[867]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.36" (uid=1000 pid=1573 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo" label="unconfined") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.9" (uid=0 pid=945 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
févr. 27 21:43:08 thinkpad kernel: input: SMSL BT4.2 (AVRCP) as /devices/virtual/input/input34
févr. 27 21:43:08 thinkpad systemd-logind[876]: Watching system buttons on /dev/input/event17 (SMSL BT4.2 (AVRCP))
févr. 27 21:43:10 thinkpad bluetoothd[945]: /org/bluez/hci0/dev_00_13_EF_20_07_1F/sep1/fd5: fd(42) ready

Last edited by Macacao (2021-02-27 20:55:58)

Offline

#5 2021-03-06 11:29:56

tombana
Member
Registered: 2021-02-26
Posts: 2

Re: [Solved] Bluetooth headset randomly disconnecting

I've downgraded `pulseaudio` and `pulseaudio-bluetooth` back to version 14.0 (they were recently upgraded) and it looks like the problem disappeared.
If this fix also works for the others in this thread, we can create an issue at https://gitlab.freedesktop.org/pulseaud … o/-/issues

Some more info: I noticed that the actual disconnect happens about 10 seconds *before* the messages in `journalctl -xe` showed up. The messages in the journal show up around the time that the headset reconnects.

Offline

#6 2021-03-07 03:25:59

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

Re: [Solved] Bluetooth headset randomly disconnecting

tombana wrote:

I've downgraded `pulseaudio` and `pulseaudio-bluetooth` back to version 14.0 (they were recently upgraded) and it looks like the problem disappeared.
If this fix also works for the others in this thread, we can create an issue at https://gitlab.freedesktop.org/pulseaud … o/-/issues

Some more info: I noticed that the actual disconnect happens about 10 seconds *before* the messages in `journalctl -xe` showed up. The messages in the journal show up around the time that the headset reconnects.

Have been testing this for the last few hours and have had no disconnects! Seems like it is an issue with the newer versions of pulseaudio and pulseaudio-bluetooth. Please go ahead and create an issue if you would like.

Update: Seems to only limit the frequency of disconnects. Now it's less than 1 an hour compared to anywhere from 3-4 per hour.

Last edited by omernaveedxyz (2021-03-07 08:22:30)

Offline

#7 2021-03-07 12:03:22

BlackMastermind
Member
Registered: 2017-01-17
Posts: 40

Re: [Solved] Bluetooth headset randomly disconnecting

Just chiming in that I'm having the same issue.

Mar 06 23:15:47 hostname bluetoothd[768]: profiles/audio/avdtp.c:handle_unanswered_req() No reply to Suspend request
Mar 06 23:15:47 hostname bluetoothd[768]: src/profile.c:ext_io_disconnected() Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Mar 06 23:15:47 hostname pulseaudio[1666]: Failed to release transport /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/sep1/fd0: Input/output error
Mar 06 23:15:47 hostname dbus-daemon[770]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.23" (uid=1000 pid=1666 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=768 comm="/usr/lib/bluetooth/bluetoothd ")
Mar 06 23:15:51 hostname bluetoothd[768]: src/profile.c:record_cb() Unable to get Headset Voice gateway SDP record: Host is down
Mar 06 23:15:53 hostname bluetoothd[768]: src/service.c:btd_service_connect() avrcp-controller profile connect failed for XX:XX:XX:XX:XX:XX: Input/output error
Mar 06 23:15:53 hostname bluetoothd[768]: /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/fd1: fd(28) ready

I'll try downgrading pulseaudio and see what that does, but it's a really annoying issue to test because it's so intermittent. Sometimes it occurs after 2 minutes, sometimes it works for 2 hours.

Offline

#8 2021-03-07 16:58:03

BlackMastermind
Member
Registered: 2017-01-17
Posts: 40

Re: [Solved] Bluetooth headset randomly disconnecting

Downgraded pulse to 14.0 ... The issue reoccurred about two hours after connecting my headset.

Offline

#9 2021-03-19 17:44:30

VLegacy
Member
Registered: 2005-01-29
Posts: 42

Re: [Solved] Bluetooth headset randomly disconnecting

Hey y'all! Any updates troubleshooting this? I think I have the same issue here. Happy to help test.

Edit: found the discussion here https://gitlab.freedesktop.org/pulseaud … ssues/1155. Thanks for getting that going!

Last edited by VLegacy (2021-03-19 17:52:28)

Offline

#10 2021-04-04 19:23:01

skrat
Member
Registered: 2013-05-10
Posts: 34

Re: [Solved] Bluetooth headset randomly disconnecting

Same issue here, and I believe I'm not even using pulseaudio:

~ $ pacman -Qs "pulse|pipewire|blue"
local/blueman 2.1.4-1
    GTK+ Bluetooth Manager
local/bluez 5.56-2
    Daemons for the bluetooth protocol stack
local/bluez-libs 5.56-2
    Deprecated libraries for the bluetooth protocol stack
local/bluez-utils 5.56-2
    Development and debugging utilities for the bluetooth protocol stack
local/hidapi 0.10.1-1
    Simple library for communicating with USB and Bluetooth HID devices
local/libcanberra-pulse 0.30+2+gc0620e4-3
    PulseAudio plugin for libcanberra
local/libldac 2.0.2.3-1
    LDAC Bluetooth encoder library
local/libpulse 14.2-3
    A featureful, general-purpose sound server (client library)
local/pamixer 1.4-5
    Pulseaudio command-line mixer like amixer
local/pavucontrol 1:4.0-2
    PulseAudio Volume Control
local/pipewire 1:0.3.24-1
    Low-latency audio/video router and processor
local/pipewire-alsa 1:0.3.24-1
    Low-latency audio/video router and processor - ALSA configuration
local/pipewire-media-session 1:0.3.24-1
    Low-latency audio/video router and processor - Session manager
local/sbc 1.5-2
    Bluetooth Subband Codec (SBC) library

Offline

#11 2021-04-07 13:58:49

wowsuchcode
Member
Registered: 2019-05-16
Posts: 9

Re: [Solved] Bluetooth headset randomly disconnecting

Apr 07 15:46:11 hostname rtkit-daemon[1186]: Supervising 1 threads of 1 processes of 1 users.
Apr 07 15:46:11 hostname rtkit-daemon[1186]: Successfully made thread 567981 of process 1179 owned by '1000' RT at priority 9.
Apr 07 15:46:11 hostname rtkit-daemon[1186]: Supervising 0 threads of 0 processes of 0 users.
Apr 07 15:46:11 hostname bluetoothd[444]: /org/bluez/hci0/dev_MAC_ADDRESS/fd11: fd(28) ready
Apr 07 15:46:09 hostname systemd-logind[366]: Watching system buttons on /dev/input/event20 (WH-1000XM3 (AVRCP))
Apr 07 15:46:09 hostname kernel: input: WH-1000XM3 (AVRCP) as /devices/virtual/input/input41
Apr 07 15:46:08 hostname bluetoothd[444]: src/profile.c:record_cb() Unable to get Headset Voice gateway SDP record: Host is down
Apr 07 15:46:07 hostname bluetoothd[444]: src/profile.c:ext_io_disconnected() Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)

Same issue here. Pulseaudio 14.2 and Kernel 5.11.11-arch1-1

Offline

#12 2021-04-15 19:35:30

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

Re: [Solved] Bluetooth headset randomly disconnecting

Same problem =_= phew, was already worried that my hardware broke..
Trying out 14.0 now..

Offline

#13 2021-04-19 02:42:16

skrat
Member
Registered: 2013-05-10
Posts: 34

Re: [Solved] Bluetooth headset randomly disconnecting

millus wrote:

Same problem =_= phew, was already worried that my hardware broke..
Trying out 14.0 now..

It's not pulseaudio issue, it's linux-firmware problem and can be tracked with this ticket (spoiler: you can workaround by downgrading linux-firmware) https://gitlab.freedesktop.org/pulseaud … ssues/1155

Offline

#14 2021-04-19 16:03:35

skrat
Member
Registered: 2013-05-10
Posts: 34

Re: [Solved] Bluetooth headset randomly disconnecting

The update is out in the linux-firmware repo, now it's up to arch's linux-firmware maintainer to update the package, it'll hopefully resolve the issue.

Offline

#15 2021-04-26 15:03:10

Felix_F
Member
Registered: 2021-04-26
Posts: 1

Re: [Solved] Bluetooth headset randomly disconnecting

Just wanted to ask, if this commit also fixes the issue for AX200 chipsets, or only for AX210? If it's only AX210 I have to downgrade linux-firmware, right?

Offline

#16 2021-04-27 15:21:42

mesh
Member
Registered: 2021-04-27
Posts: 1

Re: [Solved] Bluetooth headset randomly disconnecting

Felix_F wrote:

Just wanted to ask, if this commit also fixes the issue for AX200 chipsets, or only for AX210? If it's only AX210 I have to downgrade linux-firmware, right?

I'm also having this issue. Seems like that commit is specifically for AX210.
Here is the commit updating AX200 from just yesterday (!). I'd like to try it out and see if it solves the problem, but I'm not sure how it's done.

Edit: Found this helpful post from another thread about this issue. linux-firmware in the testing repo got bumped to linux-firmware 20210315.3568f96-3 yesterday. Trying that out. Hopefully it includes the fix.
Edit2: Nope... Had 2 disconnects already.
Edit3: As this guy from the same thread already figured out it didn't actually include the update for AX200. I did the same as him and included the AX200 commit and built from the PKGBUILD file. Hoping for the best!

Last edited by mesh (2021-04-27 16:47:01)

Offline

Board footer

Powered by FluxBB