Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1473202yba; Thu, 16 May 2019 23:03:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJR12v3k8XTzKA0AoBCFBgyURSxwKuzrr54q6cmdjT6rZuJ5c1t6OgKkvK98HdgcP7rzGh X-Received: by 2002:a62:7796:: with SMTP id s144mr2161272pfc.260.1558073006771; Thu, 16 May 2019 23:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558073006; cv=none; d=google.com; s=arc-20160816; b=DhNRE5TINUzpNBaXh6By1fyKMMmZ27OxzCtEQUutHc09vNEYt/T3EN3729me8FSNcz vHWNYX/oPSdU9aFmVY4Qf+bhOoLxFvMLYjgxX1Q9hWh86ZBc1i8KCE47NOq2PcUJN7N5 SeQEFgGo2g4jJDDVdB04tCfmNHKh+8zTVmGZ5nNeuYlo4Zs4Yb1eZRb9NTw9AET5s+kH tVTUis/WrDjNzH97GuRWo1xYw141Ls6jtuh2+Z6f/LzLPW92qp9xiEW677jT+lNpc9U8 3pN/8VfsUbJ/LraEtFP9caHBdM9/x9eT4wpHXoNM3WlnGpNBWbbm5MVJ5GdGeyYgYSIE Gd3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=bISXiKylWgVtDGPdgNDN2e+SULGKG57sWzoy+spvpw8=; b=DIaIK0wChUyDaVbddXSpZR15AzaWzfjvw2NrnjvzyNKk8lsLjNs4ZHWWc2VKgGBLOF O6toaOda5O+hYl4PvLzcakIf4b1mEFNVNCt0EVfxHj82lobyJZdM3TR/41stp+2iIl7K E/0d8rkO/WC1CoHvE3vpYF1FLx9ljFxjY+Loy8891rnbYcH4anDM0qHWdu+qxfx/uYqw AnEjrP5gRJeu/K4gl5ugiyIB6yEX0T1wdrUV2yejyKhG35n4EBbdgrTp7fGBiSY9vViH Sl9D20rmMMT3K/Ueb0nUkTpR9Z51QhWOZS1xnglJ4IubKqQ0GHdap/9ADI8tiIMPm2Ve Llwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="YeHoMZw/"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si2818859pfc.131.2019.05.16.23.02.55; Thu, 16 May 2019 23:03:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="YeHoMZw/"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727278AbfEQF7R (ORCPT + 99 others); Fri, 17 May 2019 01:59:17 -0400 Received: from mail-yw1-f49.google.com ([209.85.161.49]:45645 "EHLO mail-yw1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727242AbfEQF7R (ORCPT ); Fri, 17 May 2019 01:59:17 -0400 Received: by mail-yw1-f49.google.com with SMTP id w18so2297692ywa.12 for ; Thu, 16 May 2019 22:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bISXiKylWgVtDGPdgNDN2e+SULGKG57sWzoy+spvpw8=; b=YeHoMZw/AhzuTurykPTChUk/SEEmHjd+Q31v41rIUDtoQWcSNVI+imSCffcyujpMZB mCprHZ1T9xDdjuUUo0VJEQ88urzuHKxq66zft+CUxdrteFXRufdxCZ4Y5d7bA1MM4xoG RtaTk45Cr65fvZgYXmuMKdP9v+S/miElvFElYxxkesxxg0vlXT/HxpGXIiLFYiLBusO7 9tbDdwY0COB60A/GDnQ0V8RJMBGWiDhUWPhI5BNMQ/Q1QpnpnPDaNO9oHXn6aRQjrEuG FJccp0meD/XCoTIobxy4iG3mgi5WG/zTcdd5EzWYIbKEg7C6F26Q5IZz0/HSsyPfNf4v i5Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bISXiKylWgVtDGPdgNDN2e+SULGKG57sWzoy+spvpw8=; b=lpOBfA/ghkkecnevfG0sVluY5smVDxgLblKYcb5WY+ixJ5P4XiOJVSZqBX1DnE/A1D /MOZz0tUK1fWcwi9Zg2Nv/YYWSeKoycYMn8XpfodQjszf+Ouin0J7esJZSbQImvxmtyG MNfgGLSiwtZ+0GE3xgKdQH57XPaavkWek3B398OhC5IiSkLHBab98RnCKO0g00pZJnPJ wx1wyFO+Zce139ioi4B4Vxlk8UebXtJR3Oa7R8LYowbs3tVAdZcLhd6D2NdCxpInmWqg 3SIFqE3ddqHO36yeb7hw26lYzyCxTlNNdW0jKz6S3Wq8No4zLtxKz3KsmjAJ9Bb0wasc J8Yg== X-Gm-Message-State: APjAAAVEISmd2awEwIpL1D179KDrpdzh6OMO2+STEzXYAjq2+TMR9Mho PXHJVdEMPahWKzUkv7MT3GE9H1VaDAEJJj8oNI8Da7AMMQg= X-Received: by 2002:a81:3b4b:: with SMTP id i72mr10751028ywa.297.1558072756615; Thu, 16 May 2019 22:59:16 -0700 (PDT) MIME-Version: 1.0 From: Carlos Pita Date: Fri, 17 May 2019 02:59:05 -0300 Message-ID: Subject: After kernel update: connect/disconnect forever while attempting to auto-reconnect To: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, after upgrading to kernel 5.1.1 (and also 5.1.2) my bluetooth speakers are unable to auto-reconnect. I can connect them without problems, but once I turn them off and on again an unending sequence of connections and disconnections begins: ---- manual connection ok --------- [bluetooth]# connect E0:D1:E6:07:62:E1 Attempting to connect to E0:D1:E6:07:62:E1 [CHG] Device E0:D1:E6:07:62:E1 Connected: yes Connection successful [CHG] Device E0:D1:E6:07:62:E1 ServicesResolved: yes ---- turned off speakers and on again ---- [CHG] Device E0:D1:E6:07:62:E1 ServicesResolved: no [CHG] Device E0:D1:E6:07:62:E1 Connected: no [CHG] Device E0:D1:E6:07:62:E1 Connected: yes [CHG] Device E0:D1:E6:07:62:E1 Connected: no [CHG] Device E0:D1:E6:07:62:E1 Connected: yes [CHG] Device E0:D1:E6:07:62:E1 Connected: no [CHG] Device E0:D1:E6:07:62:E1 Connected: yes [CHG] Device E0:D1:E6:07:62:E1 Connected: no [CHG] Device E0:D1:E6:07:62:E1 Connected: yes [CHG] Device E0:D1:E6:07:62:E1 Connected: no I've tested this with a number of kernels: linux-lts 4.19.43: doesn't work linux 5.0.13: works linux 5.1: works linux 5.1.1: doesn't work linux 5.1.2: doesn't work All the above tests were done against bluez 5.50. I've also tested bluez git master against linux 5.1.2 to no avail. During failed attempts to auto-reconnect, the debug log shows: May 17 02:25:27 carlos bluetoothd[8178]: src/adapter.c:connected_callback() hci0 device E0:D1:E6:07:62:E1 connected eir_len 5 May 17 02:25:27 carlos bluetoothd[8178]: src/adapter.c:dev_disconnected() Device E0:D1:E6:07:62:E1 disconnected, reason 3 May 17 02:25:27 carlos bluetoothd[8178]: src/adapter.c:adapter_remove_connection() May 17 02:25:27 carlos bluetoothd[8178]: plugins/policy.c:disconnect_cb() reason 3 May 17 02:25:27 carlos bluetoothd[8178]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr E0:D1:E6:07:62:E1 type 0 status 0xe May 17 02:25:27 carlos bluetoothd[8178]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e May 17 02:25:27 carlos bluetoothd[8178]: src/device.c:device_bonding_failed() status 14 Some other info that may be relevant: > uname -a Linux carlos 5.1.1-arch1-1-ARCH #1 SMP PREEMPT Sat May 11 13:02:48 UTC 2019 x86_64 GNU/Linux > yay -Qi pulseaudio Version : 12.2-2 If you need something else to track down this issue, please let me know. I've also reported this to pulseaudio tracker: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/674. Best regards -- Carlos