FS#69028 - Loss of bluetooth connection after 1-2 minutes, system freezes on attempting reconnect

Attached to Project: Arch Linux
Opened by Gilles Coremans (operand) - Friday, 18 December 2020, 21:29 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 21 April 2021, 12:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

When playing audio from youtube, my bluetooth speaker loses connection and stops playing after a few minutes. This is not immediately noticed by either the speaker or my PC, as the speaker LED still shows it is connected and the plasma bluetooth icons show this as well. The pulseaudio sink does not disappear and the youtube video continues playing as if nothing is wrong.

If I attempt to manually disconnect the device and reconnect it, my entire system will freeze and I have to hard reboot.

Often when my bluetooth acts up, I can fix this by rebooting into Windows and turning bluetooth on and off. This is not the case here, doing this does not help with my issues.

According to my pacman logs, the last time I updated my kernel or bluetooth packages was several days ago. However, I only noticed this problem this evening. It was working just fine this morning. This makes me confused as to what the actual cause of the issue could be.

I have tested this with both the linux 5.9.14.arch1-1 and linux-mainline 5.10-1 kernels. The bug occurs with both kernels. I attempted to reproduce with the linux-lts kernel but my system is unstable with this kernel due to outdated amdgpu drivers (that is, my GPU crashed before I was able to reproduce this bug). I have included a dmesg including stack trace for both kernels, in respectively dmesg-vanilla and dmesg-mainline.

Additional info:
* My BT adapter is "Intel® Dual Band Wireless-AC 3168" and comes with my motherboard
* The speaker is a "JBL Flip Essential"
* bluez version 5.55-1
* pulseaudio version 14.0-1
* pulseaudi-bluetooth version 14.0-1

Steps to reproduce:
As listed above:
1. Connect bluetooth speaker
2. Play youtube video over bluetooth speaker
3. Wait until bluetooth speaker stops playing (bug part 1)
4. Attempt to disconnect and reconnect bluetooth speaker
5. System freeze
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 21 April 2021, 12:22 GMT
Reason for closing:  None
Additional comments about closing:  op comment: Bluetooth is also broken on windows, thus this is likely an issue with my hardware and not a bug in Arch or Linux.

Comment by Chen Q (cstn) - Sunday, 24 January 2021, 14:17 GMT
i got almost the same bug!

actually i noticed this bug for at least 4-5 months, from september 2020 to now january 2021. i got a new laptop last year, then cloned my archlinux OS to the new machine, and sold the old one. the old one has no bug about the bluetooth. but i forgot the bluetooth hardware what it is. i noticed the bug once i cloned the whole system to the new laptop.

my laptop has almost the same bluetooth module, it's built-in intel AC-3165 and bluetooth 2 in 1 card on the motherboard. bluetooth is:
Bus 001 Device 004: ID 8087:0a2a Intel Corp. Bluetooth wireless interface

whatever plays youtube from web, or plays music from audacious, rhythmbox, clementine, it's just can last 1-2 mins, then sound lost, connection seems still there, but in blueman-manager, the green signal(link quality) is down to 0% or 10%. sometimes system will freeze after a while without doing nothing, sometimes will freeze immediately when i toggle my bluetooth profile off and on by using blueman-manager. it must be hard powered off and reboot. when freeze happend, sometimes i found the bios cast more time to do the POST(power on self testing), and then boot to the system, the bluetooth module will gone, bluez won't found the bluetooth adaptor. to get the bt adaptor back, my method is poweroff the whole laptop, leave it a while(20 mins, 30 mins or more), then boot into the system again, the bt adaptor is back. this made me gave up to use the bt audio for a long time. utill this january 2021, i try to trace this bug. it's still there, but found more infomation.

while i report this bug in PulseAudio issue:
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1098

i noticed my 2.4GHz and 5GHz wifi router, it's wifi signal is mixed(hybrid) 2.4GHz and 5GHz with the same SSID. devices(android phones, tablets) can auto-switch it according to the signal environment. since i turn off the 2.4Ghz or turn off the 5Ghz signal, just only turn off one of them, the bluetooth connection will insist for 1-2 hours. it's greater than before, but it will still lost the sound after 1-2 hours. another point is, it won't freeze the system now when the bug happens(sorry i don't know if what software updated, it's been a long time). bluetooth connection can be back just turn bt profile off and on(without reboot system), sound will come back automatically.

these days i tried these and found more things interesting:
1.test manjaro linux on my same laptop, for 5 hours continuous testing, it's totally ok, no bug about bluetooth audio. tested manjaro with bluez5.55, and blueman-manager 2.1.4. it's the same compared to archlinux.

2.i tested both archlinux and manjaro with another laptop. it's lenovo's S415 with qualcomm atheros AR3012 bt 4.0 module. manjaro is perfect ok, can find the adaptor, and bluetooth works good. but archlinux(cloned from my laptop or just brand new install) can find the bt adaptor at the beginning, when i turn on the bt module, the adaptor just gone immediately, terminal tells like this:

[tester@testlaptop ~]$ blueman-manager

(blueman-manager:635): dbind-WARNING **: 18:35:22.859: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-BStyvVznfv: Connection refused
blueman-manager version 2.1.4 starting
blueman-manager 18.35.23 ERROR Manager:118 on_dbus_name_appeared: Default adapter not found, trying first available.
blueman-manager 18.35.23 ERROR Manager:122 on_dbus_name_appeared: No adapter(s) found, exiting

using btmgmt from "bluez-utils" package:
[mgmt]# info
Index list with 0 items

so, for the reasons above, i suppose the bug is from archlinux integration. but i don't know how to trace or debug it. if some can guide me to do it, i would like try to provide more informations.

software info (just always keep update every 1-2 days):
linux kernel: 5.10.9-arch1-1
bluez:5.55-1
pulseaudio: 14.2-2

Comment by Chen Q (cstn) - Monday, 25 January 2021, 02:34 GMT
the manjaro i tested with linux kernel 5.9.16 and 5.10.7, pulseaudio 14.1 and 14.2, bluez 5.55, both are ok and no bug to the bluetooth.
Comment by Gilles Coremans (operand) - Thursday, 04 February 2021, 17:14 GMT
After some more investigation, it seems like bluetooth is also broken on Windows. That is, it seems like it is simply my bluetooth adapter which is somehow fried. So this should probably be closed, my apologies.
Comment by Chen Q (cstn) - Friday, 26 February 2021, 13:54 GMT
i seem to solved this issue, for me, it seems the bios effects the bluetooth audio and fimware didn't load right for btusb in kernel message. more detail is here:

https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1098

if it's the bios' effect, the issue cannot reproduce a lot with most other normal computer, i think.

maybe you can take a try on bios.

Loading...