Return-Path: From: Vincent Petry Subject: Re: Apparent bluez 5.48 regression: Headphones fail to reconnect after suspend/resume To: Luiz Augusto von Dentz , Julien Nicoulaud Cc: Vincent Petry , Nathaniel McCallum , "linux-bluetooth@vger.kernel.org" References: <88feb93f-928f-9783-7d16-b4b87b402a1a@gmail.com> <73597a16-0a96-4d6f-64f5-46a7bb3f983a@gmail.com> <376c4af7-acbc-08e8-e3b9-1e7f288f69d2@gmail.com> Message-ID: Date: Fri, 9 Feb 2018 07:28:53 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hello Luiz, I've applied the patch "[PATCH v2] core: Fixes order InterfaceAdded" from https://marc.info/?l=linux-bluetooth&m=151801178209679&w=2. Then tried suspend/resume a few times and can confirm that the headset is now able to connect again ! I can confirm that the patch fixes the issue for me ! Is there a timeline for the next bluez release ? Just asking because if it happens much later we might want to apply the patch directly on distribution packages (once reviewed and merged). Cheers and thanks for the great work ! Vincent On 02/08/2018 05:28 PM, Luiz Augusto von Dentz wrote: > Hi, > > On Thu, Feb 8, 2018 at 5:15 PM, Julien Nicoulaud > wrote: >> 2018-02-07 7:52 GMT+01:00 Vincent Petry : >>> 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. > Please check with the patch Ive sent yesterday: core: Fixes order InterfaceAdded