All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Nicoulaud <julien.nicoulaud@gmail.com>
To: Vincent Petry <pvince81@googlemail.com>
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	Nathaniel McCallum <npmccallum@redhat.com>,
	"linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>
Subject: Re: Apparent bluez 5.48 regression: Headphones fail to reconnect after suspend/resume
Date: Thu, 8 Feb 2018 16:15:11 +0100	[thread overview]
Message-ID: <CA+mcLN57gZ=oNqeVwMieOPz4r+iWtC-y4vxq-Gx0u0U5Ze2z_w@mail.gmail.com> (raw)
In-Reply-To: <376c4af7-acbc-08e8-e3b9-1e7f288f69d2@gmail.com>

2018-02-07 7:52 GMT+01:00 Vincent Petry <pvince81@googlemail.com>:
>
> Hi Luiz,
>
> Can you give me some pointers where I should put the gdb breakpoint to
> get a useful trace ?
>
> I also saw that there is some DBG function logging things. How do I
> enable this logging and from where can I get its output ? Useful would
> probably to log some internal state with and without returning from suspend.
>
> Regarding the breaking patch, it seems to be related to some advertising
> API that used to be marked experimental and is now not experimental any
> more in 5.48.
> Does maybe pulseaudio use this API and had a fallback at the time said
> API was disabled ? And now that it's enabled its code path changed and
> maybe triggered a hidden bug ? Would need to look at the pulseaudio
> bluetooth source code.
> Or does the patch in question enabled advertising where no advertising
> was done before ? Maybe it is advertising too early at a time where the
> system hasn't fully resumed from suspend ?
>
> My pulseaudio version: pulseaudio-11.1-2.1.x86_64
>
> Would be good if the other affected users post their distro + pulseaudio
> versions for cross-reference.

Hi, I am also affected by this since updating to bluez 5.48.

My distro is Arch Linux, pulseaudio 11.1-1, linux 4.14.15, using a
Bose QuietComfort 35 headset with an Asus zenbook laptop (Intel 7260
wireless chip).

Please let me know if I can be of any help.

Cheers,
Julien

>
>
> Cheers,
>
> Vincent
>
>
> On 02/06/2018 03:28 PM, Luiz Augusto von Dentz wrote:
> > Hi Vincent,
> >
> > On Tue, Feb 6, 2018 at 11:30 AM, Luiz Augusto von Dentz
> > <luiz.dentz@gmail.com> wrote:
> >> Hi Vincent,
> >>
> >> On Tue, Feb 6, 2018 at 11:17 AM, Vincent Petry <pvince81@googlemail.com> wrote:
> >>> Hi Luiz,
> >>>
> >>>> Hi Vincent,
> >>>>
> >>>> On Tue, Feb 6, 2018 at 4:53 AM, Vincent Petry <pvince81@googlemail.com> wrote:
> >>>>> Hello,
> >>>>>
> >>>>> I have bisected bluez between 5.47 (good) and 5.48 (bad) to find the
> >>>>> breaking commit for the headset reconnect issue.
> >>>>>
> >>>>> Here are the results:
> >>>>>
> >>>>> git bisect start
> >>>>> # bad: [0d1e3b9c5754022c779da129025d493a198d49cf] Release 5.48
> >>>>> git bisect bad 0d1e3b9c5754022c779da129025d493a198d49cf
> >>>>> # good: [d139fd866241fe0d99b5e430f937c8d6160cc7dd] Release 5.47
> >>>>> git bisect good d139fd866241fe0d99b5e430f937c8d6160cc7dd
> >>>>> # bad: [65aaf36f2a36895e4a351ac3fa1cb8da87d4589c] mesh: Correct length
> >>>>> test in agent.c:request_ascii
> >>>>> git bisect bad 65aaf36f2a36895e4a351ac3fa1cb8da87d4589c
> >>>>> # good: [c50a8a397d4abd994a9115230279d5fe922b4aa5] adapter: Add
> >>>>> btd_request_authorization_cable_configured()
> >>>>> git bisect good c50a8a397d4abd994a9115230279d5fe922b4aa5
> >>>>> # bad: [c133489d54cb6d28c3fd308557937acbc5245f5e] battery: Add BT SIG
> >>>>> reserved number used by Battery Service
> >>>>> git bisect bad c133489d54cb6d28c3fd308557937acbc5245f5e
> >>>>> # good: [e577e478e9cb1d1a22e63fd7d8fff07c471590de] gatt: Add
> >>>>> implementation of link option
> >>>>> git bisect good e577e478e9cb1d1a22e63fd7d8fff07c471590de
> >>>>> # bad: [5b9596dac4d0e25c5179be8643726a02c058b00a] advertising: Add
> >>>>> implementation of Duration and Timeout
> >>>>> git bisect bad 5b9596dac4d0e25c5179be8643726a02c058b00a
> >>>>> # bad: [f9a2b1f515c7f5dced80397f4ea891d6c372175d] client: Fix not
> >>>>> detecting advertising instance is no longer valid
> >>>>> git bisect bad f9a2b1f515c7f5dced80397f4ea891d6c372175d
> >>>>> # bad: [d6e9539e31c6bb5afd39ec6f09c518d232e6345d] doc/advertising-api:
> >>>>> Mark LEAdvertisingManager1 stable
> >>>>> git bisect bad d6e9539e31c6bb5afd39ec6f09c518d232e6345d
> >>>>> # good: [10760c91c234fe2bfedf924c9e61f31861c2dc72] gatt: Fix crash while
> >>>>> disconnecting ATT
> >>>>> git bisect good 10760c91c234fe2bfedf924c9e61f31861c2dc72
> >>>>> # first bad commit: [d6e9539e31c6bb5afd39ec6f09c518d232e6345d]
> >>>>> doc/advertising-api: Mark LEAdvertisingManager1 stable
> >>>> Im not able to decipher this, what is the patch where the problem
> >>>> first appeared? Also could you collect the HCI trace and syslog when
> >>>> it happens?
> >>> Please try this:
> >>>
> >>> 1. git clone git://git.kernel.org/pub/scm/bluetooth/bluez.git
> >>> 2. cd bluez
> >>> 3. git show d6e9539e31c6bb5afd39ec6f09c518d232e6345d
> >>>
> >>> This will show your the first bad commit / the patch that introduces the
> >>> issue.
> >>>
> >>> For the syslog, see attachments to my original report here
> >>> https://bugzilla.suse.com/show_bug.cgi?id=1076898
> >>>
> >>> Do you have more information about how I could get the HCI trace ?
> >>> Should I run bluetoothd through gdb and query the backtrace from the
> >>> point where the error message happens, if that's what you are asking for ?
> >> Jan 20 15:50:47 vvortex.ttv pulseaudio[1964]: [pulseaudio]
> >> bluez5-util.c: Information about device
> >> /org/bluez/hci0/dev_E3_28_E9_20_58_08 is invalid
> >> Jan 20 15:50:47 vvortex.ttv bluetoothd[3136]: Endpoint replied with an
> >> error: org.bluez.Error.InvalidArguments
> >>
> >> So this is really PulseAudio rejecting the connection, it probably
> >> loose track of the objects when resuming or we did not send the
> >> objects but in that case bluetoothctl would not be able to list them
> >> as well.
> > And I couldn't reproduce it myself:
> > https://gist.github.com/anonymous/423edb41e572577b8507d8d0662acc84
> >
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2018-02-08 15:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-25  6:44 Apparent bluez 5.48 regression: Headphones fail to reconnect after suspend/resume Vincent Petry
2018-01-25 18:43 ` Luiz Augusto von Dentz
2018-01-30  6:47   ` Vincent Petry
2018-02-01 18:36     ` Nathaniel McCallum
2018-02-06  6:53       ` Vincent Petry
2018-02-06 13:03         ` Luiz Augusto von Dentz
2018-02-06 13:17           ` Vincent Petry
2018-02-06 13:30             ` Luiz Augusto von Dentz
2018-02-06 14:28               ` Luiz Augusto von Dentz
2018-02-07  6:52                 ` Vincent Petry
2018-02-08 15:15                   ` Julien Nicoulaud [this message]
2018-02-08 16:28                     ` Luiz Augusto von Dentz
2018-02-09  6:28                       ` Vincent Petry
  -- strict thread matches above, loose matches on Subject: below --
2018-01-17  3:46 Robert Hancock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+mcLN57gZ=oNqeVwMieOPz4r+iWtC-y4vxq-Gx0u0U5Ze2z_w@mail.gmail.com' \
    --to=julien.nicoulaud@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=npmccallum@redhat.com \
    --cc=pvince81@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.