[Bug 1759628] Re: bluez regression: Bluetooth audio fails to reconnect after resume

Bug Watch Updater 1759628 at bugs.launchpad.net
Wed Mar 28 22:53:29 UTC 2018


Launchpad has imported 14 comments from the remote bug at
https://bugzilla.suse.com/show_bug.cgi?id=1076898.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2018-01-20T14:48:14+00:00 Vincent Petry wrote:

Before upgrading, connecting to bluetooth headset from TaoTronics worked
correctly. I also have a cheap bluetooth watch and connecting to it with
bluetoothctl worked fine.

Today I updated Tumbleweed to snapshot 20180117 and I observe the
following behavior:

1) Connecting to bluetooth headset does not work any more even after a fresh boot. It connects shortly then disconnects. Both with the Plasma widget and with bluetoothctl.
2) Sometimes even after a fresh boot, the plasma widget doesn't show any of the known bluetooth devices
3) Strangely connecting to my bluetooth watch still works with bluetoothctl.

>From what I remember, before the update I had bluez-5.47 and now it has
been updated to 5.48.

Furthermore there is a similar report here for Fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=1534857

The workaround, as indicated in that link, is to restart the bluetooth
service with "systemctl restart bluetooth". After that the headset can
connect again.

This is on a Dell XPS 13 9333 (different model than the above).

There are already logs in the Fedora ticket, I'll reboot now to try and
gather some from here.

Please let me know if you need further information.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/0

------------------------------------------------------------------------
On 2018-01-20T14:53:29+00:00 Vincent Petry wrote:

Created attachment 756957
Log with errors

I've attached the log from journalctl from the connection failure.

Please note that during the short time where the connection to the
headset is done, I can hear a beep in the headset which is an indication
from its hardware that the connection was done. However the laptop /
bluez somehow decides to disconnect again.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/1

------------------------------------------------------------------------
On 2018-01-20T15:06:15+00:00 Vincent Petry wrote:

Okay, so I forgot to mention something: I had the module "btusb"
blacklisted by default. The reason was mostly to save some power when I
don't use bluetooth. I wonder if those Fedora users did the same.

Anyway, now I removed "btusb" from blacklist and rebooted. And now it
all works !

This seems to make sense because I suspect that whenever the bluetooth
service is started at boot time, it needs btusb to be loaded already. So
if you load the module afterwards, you need to restart the service.

At this point, if this is by design, feel free to close as the problem
is solved for me.

-----------------------

My bluetooth adapter is built-in, so far so good.

But what happens for people who have bluetooth USB dongles ? Would btusb
only load later once the dongle is plugged in ? If that's the case, then
the problem I describe *might* happen for said users who might need to
restart the bluetooth service.

Now this is marked as regression, it used to work with previous bluez
versions. So not sure if this is something to be fixed upstream or
whether this slight change of behavior / expectation is by design.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/2

------------------------------------------------------------------------
On 2018-01-24T13:56:16+00:00 Seife-c wrote:

well, blacklisting the driver for the hardware is of course not helping
:-)

I think bluetoothd should still pick up devices that are added after
starting (hot-plugged USB dongles come to my mind).

Anyway, this is not an openSUSE problem, so I'd kindly ask you to report
the issue upstream to the bluez-devel mailinglist at linux-
bluetooth at vger.kernel.org

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/3

------------------------------------------------------------------------
On 2018-01-25T06:46:40+00:00 Vincent Petry wrote:

Thanks, makes sense.

I just observed that resuming from suspend also causes the issue and
requires to restart the bluetooth service.

Thanks for mentioning the mailing list.

It was already reported by someone here on the mailing list:
https://www.spinics.net/lists/linux-bluetooth/msg73824.html.

I've sent my own message there which should appear shortly in the
archives.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/4

------------------------------------------------------------------------
On 2018-02-06T15:33:32+00:00 Vincent Petry wrote:

Email discussion and investigation in progress: https://marc.info/?l
=linux-bluetooth&m=151792734112865&w=2

Breaking commit in bluez: d6e9539e31c6bb5afd39ec6f09c518d232e6345d

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/5

------------------------------------------------------------------------
On 2018-02-11T21:22:13+00:00 Seife-c wrote:

I have added the patch from commit
1873096352f518d3247f8efb3c2e0aa8804e50ac to the bluez package in
home:seife:testing

Could you please test if this fixes the issue for you? If yes, I'll
submit this to Factory.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/6

------------------------------------------------------------------------
On 2018-02-11T22:13:34+00:00 Vincent Petry wrote:

I have tested it and posted here https://marc.info/?l=linux-
bluetooth&m=151815774828197&w=2

If this is the same patch from that email then yes it worked for me!

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/7

------------------------------------------------------------------------
On 2018-02-11T22:14:17+00:00 Vincent Petry wrote:

I'll test the package from your home also and report back.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/8

------------------------------------------------------------------------
On 2018-02-12T06:37:29+00:00 Vincent Petry wrote:

Tested with bluez package from home:seife:testing and I can confirm that:
- resuming after suspend can properly reconnects the headset
- loading btusb module after restarting bluetooth service works

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/9

------------------------------------------------------------------------
On 2018-02-12T07:38:40+00:00 Seife-c wrote:

Thanks, package with patch is on its way to factory.
https://build.opensuse.org/request/show/575486

(And yes, testing the package is IMO important because a) I could have
done something wrong integrating the patch and b) maybe it works against
git master but not older released code :-)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/10

------------------------------------------------------------------------
On 2018-02-12T08:09:14+00:00 Vincent Petry wrote:

Of course, makes perfect sense :-)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/11

------------------------------------------------------------------------
On 2018-02-12T09:00:07+00:00 Swamp-a wrote:

This is an autogenerated message for OBS integration:
This bug (1076898) was mentioned in
https://build.opensuse.org/request/show/575499 Factory / bluez

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/12

------------------------------------------------------------------------
On 2018-02-18T12:08:17+00:00 Seife-c wrote:

the fix has landed in Factory

Reply at:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/comments/13


** Changed in: suse
       Status: Unknown => Fix Released

** Changed in: suse
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of
Bluetooth, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/1759628

Title:
   bluez regression: Bluetooth audio fails to reconnect after resume

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1759628/+subscriptions



More information about the Ubuntu-bluetooth mailing list