-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth speaker stops working after few minutes #887
Comments
I found and fixed one bug in the UART driver last week and enabled a workaround for another problem - together they improved Bluetooth reliability. I've just found another bug that can lead to data loss, the fix for which is not finalised, but with a workaround in place I've found UART data transfer to be very reliable and expect Bluetooth to be significantly better. I'll comment again when a firmware containing all fixes is available. |
@pelwell I can confirm this too. Didn't report it earlier because I'm using my own homegrown os and I currently don't have time to reproduce this with raspbian. If you have any ideas and/or patches we could try I could help testing as I can reproduce it easily. |
The second bug has now been patched, but it only affects devices using RTS/CTS flow control on ttyAMA0 - this includes Pi 3B rev 1.3 and Pi Zero W. If you are running on an older Pi 3B then the current rpi-update firmware includes a fix for the only problem I am aware of. The flow control fix will be in the next firmware - can we roll one out tonight, @popcornmix ? |
@pelwell there was an rpi-update yesterday. Is there a newer fix? Is this gpu firmware or kernel? |
There is a fix to the kernel pl011 driver that went in this afternoon. It should affect a smaller number of people than the insertion of the memory barrier - just 3b1.3 and 0w - so we could wait until a few more patches have accumulated, but it does make a significant difference. |
Okay I'll try to remember when I get home. |
See: #887 firmware: pwm_sdm multi-write support See: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=136445
See: raspberrypi/firmware#887 firmware: pwm_sdm multi-write support See: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=136445
A new firmware is available via rpi-update (thanks, @popcornmix) - it's been playing music to a Bluetooth headset in a loop for 16 hours with no issues. |
@pelwell & @popcornmix thanks people! I can confirm that the issue is MUCH LESS problematic than it was. However, the issue seems to persist after 2 hours of music/video streaming. It works without any issue during the 1st hour, but when coming to the 2nd the BT device mutes and I cannot disconnect (or remove) or re-pair it to rpi. A reboot is needed to have a functional pair + connection + streaming. I've tested it mostly in browser (Chromium) but the issue seems to persist locally too. |
Stretch Lite updated, upgraded. rpi-update done. Bluetooth problems:
The following error is caused by a cheap BT receiver (EC502), the quility is more or less good with another BT headset: Thank you. |
The bluetooth speaker is paired, trusted and connected via desktop controls. Streamaddress entered in the browser. After some time the sound is aborted. I'm using a clean raspbian stretch desktop image, default configs, ssh and vnc are enabled. EDIT: Test on 7 Dec 2017 with a LAN connection between RPi 3B and the router. This time the sound aborts after 33min. model: RPi 3B uname -a journalctl: bluetoothctl: |
There still seems to be an issue. I am running the latest firmware/stretch version. I am not trying to play sound continuously: I am basically using the speaker as an alarm clock - I play a short sound and then wait a number of hours before trying to play a sound again. After a reboot, playback is fine. If I try the next day then there is no sound. bluetoothctl/info on the device confirms that it is connected. uname -a |
Hi, the issues persists. After recent updates the "connection lost" problem is happening very often. |
I have the same issue. Is there any solution for this? |
Experiencing the same issue. Using LibreELEC, the sound drops after anywhere from 2 to 40 minutes. Bluetooth adapter disappears from the system and only a reboot fixes the problem. |
Can any participents try the latest kernel/firmware and confirm if this issue is still present? |
I'm not OP, but I can confirm I was having this issue with my RPi 3 B+ (fully updated) while streaming a netradio station with SMPlayer. I say was, because I have now been playing audio for a few hours straight cleanly by following this post raspberrypi/linux#1402 (comment). In short, updating to |
The issue is still present for me. Update ran 13 January and then the BT speaker sound dropped after about 7 minutes. Unable to reconnect until reboot. |
Hi, I've reinstalled everything, updated raspbian and the issue persists. I can use a BT speaker for sometime, be it 2h ou 10 minutes, but suddenly (randomly) it disconnects and I have to reboot the system to reconnect -- until it loses connection again. |
I have RPI 3B, I have paired bluetooth device on raspberry pi, Neither connect automatically to paired device nor provide serial port to device. I always connect manually(GUI). To connect by GUI I installed blueman package, I search everything on internet but no solution, Can help someone? |
@ram94638 Please create a new issue. |
Just tested in my rpi3b+ with librelelec 9 build 2019-0119. The a2dp audio disconnect after 5-15 minutes |
I have the same issue using Raspbian or Librelec, bluetooth stops working after 5-15 minutes and I have to reboot. |
test configuration:
test on 05.06.2019 from 19:10 until 22:10 bluetooth connection ok
|
Same issue on both a Pi 4 and a Pi Zero W, both on Raspbian full and on Diet pi. Very annoying error. |
Same here.. anybody noticed consistency with physical changing position of the devices.. I am noticing better signal (less disconnections) when having less objects between receiver and sender .. specific metal once; disturbing the connection... still looking for good solution though. Ideally would be a script for: Reboot when audio disconnect + Auto connect bluetooth speaker on boot |
A fix for a UART driver bug that could cause data-loss was fixed in July. For people seeing Bluetooth disconnection problems, please try the following:
|
Issue is still present for me as well, it's incredibly annoying cause there's no consistency at all. |
Have the same issues: after few minutes BT speaker stops speaking:(
Tested with different BT speakers.
|
Issue seems to occur with me as well. I noticed keeping the Bluetooth menu open gives the connection a few more hours. Eventually it just gives out. Has anyone found a fix yet? |
I put the the RPI closer to the speakers. That helped a lot for me. So no object between those two. |
Exactly the same problem here. Bluetooth connection will lost after several minutes playback, and the program will lockup when try to stop the stream. The log of bluealsa: I was using bluez-alsa on a Raspberry Pi 3B+ running Ubuntu-mate. The Bluez version is 5.48 from the depot originally. I have tried to upgrade Bluez to 5.52, but can not fix the problem. When the issue happens, bluetooth will go off and stop responding completely. And I can not turn on bluetooth anymore, below is the output of bluetoothctl: |
Unless Ubuntu Mate is taking patches from these raspberrypi/linux branches then it won't include my UART fix from a few weeks ago. |
Thanks for your reply. It seems the fixed have already been submitted to raspberrypi/linux, right? I have just reported an issue on https://bugs.launchpad.net/ubuntu-mate/+bug/1863600, hope Ubuntu mate can include the change in the future. |
This is the commit that avoids occasional lost uart characters and so may help bluetooth connectivity: |
I have tried to build and install the latest rpi-4.19.y branch of https://github.com/raspberrypi/linux on My 3B+ running Ubuntu-Mate 18.04. And confirm that it fixed the Bluetooth problem. I leave it play audio overnight and cannot see an disconnection. Thanks very much for the effort. |
This patch needs to be upstreamed - I think it's in a reasonable shape. |
Is this fix also for Raspbian ? |
As my understanding, raspberry/linux are meant to be run on Raspbian. I'm using Ubuntu-Mate, so I may have to wait the Ubuntu-Mate community to accept the patch. According to pelwell's reply, you can upgrade your kernel on Raspbian to get the fix directly: |
RPI3B+, confirm problem fixed. |
I am running Raspberry pi 4 with raspbian. Running: gives: raspberrypi-kernel is already the newest version (1.20200212-1). I still have the problem of bluetooth streaming of music stopping after a few hours, only solvable via reboot. |
@ChristofferGreen Could you paste the output of |
This was a fast response. 18 months. |
I have some related issues pairing and using a bluetooth speaker (JBL GO). The device can be paired only after a reboot or before any management with bluetooth (GUI or CLI). Although the pairing "works" it is unable to remain functional after some seconds (or minutes) of audio stream (youtube or local sound), the connection is not lost but the communication between the rpi bt and the speaker seems to stop.
I'm using a clean Raspbian desktop stretch image recently update e totally functional, default configs, no overclock or altered configs.
The text was updated successfully, but these errors were encountered: