Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4401361pxb; Mon, 21 Feb 2022 20:22:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTxCrlRHR7lGxY0XCz8pNvNU0tijaKeHRIs6NChpm2rpQpi5cszmWeE3P58Fyp6sCqsybP X-Received: by 2002:a17:902:8f94:b0:14f:d9b3:52c2 with SMTP id z20-20020a1709028f9400b0014fd9b352c2mr2519894plo.103.1645503773903; Mon, 21 Feb 2022 20:22:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645503773; cv=none; d=google.com; s=arc-20160816; b=Dm1/F5JDpPmhLYQX05X45v12b8qSta4ipTOvowAPlNGi1WaqtcDVKyKlwXw3Lkwfq2 pwwShEXPq1kZIY0qxX2LGpbaDAOAHJRn6URwkByENcAxjz0UuJnZIjPNK0CQc9OciAOc Uil0y4biims8yt6dwzM5KFlyDECAO35TbL5lSBo8oCXWgFh4BDxz2+gichtPnqUXvZaz GhRSZ1glbDw+gQCrpwdLRCwkCECnkluC2DeQ7cimsRFC7DcHZwAD2qY3k84n8j4mDjhi If3TV/GD9VhDQ5KOZA50ZFW3tZbmYDfo4T1pkjMrMLuSpFAVUcIHyLz4kGdMJ2V1hRAE HgQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=en06VWQMIBzgYO1j3+NeHVnv4oyBoDvjZcZZrOFc7kk=; b=C3laBZzZqblYy1/gPXDlwNkgCScA5qV/LfxW8GfS6N+pHwjR6ozVfLmhytU+IT/4VI +/PYvXwNn4RXJVRHKvE0trW3JQ/RcvpAeYmhMKCPHpvIy9fE9WoIO6jx0AgBXJjFaNs8 gKYxXQpX8Jq/zPvSOXK7+dyCjgKqO51emAV8ijBNjAj7fHvsXLGGXacmDyneAoPEPbfw 5DWasYiJEPfqH6eZlDGglLafjAbjucJFnQDDD/lmSa7nY/nu7SgcBqqvxo2rN11PHaFP duoFclf1yyVvkz798xn9xeq9aF1jK9c74jTdIwRbRGE0zsnl3w3Yl9kFw+andYVM89+2 87nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FIFLY8Nm; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m20-20020a17090ade1400b001bc6d8da02asi856394pjv.140.2022.02.21.20.22.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 20:22:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FIFLY8Nm; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 66FA15FA5; Mon, 21 Feb 2022 20:17:43 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234896AbiBUV1u (ORCPT + 99 others); Mon, 21 Feb 2022 16:27:50 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229853AbiBUV1t (ORCPT ); Mon, 21 Feb 2022 16:27:49 -0500 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3D2CE26 for ; Mon, 21 Feb 2022 13:27:25 -0800 (PST) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-2d68d519a33so151374457b3.7 for ; Mon, 21 Feb 2022 13:27:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=en06VWQMIBzgYO1j3+NeHVnv4oyBoDvjZcZZrOFc7kk=; b=FIFLY8NmOz8ozaxh4W4BXtaPFMq04RpA161tDa7rjOZSu1ZTs3/vazOiqYUYuTKveM 7CquXAbs7CzDBoLlV61ahRiMavhQ3ca/HgUp/ApYuIRJpCLFBsW1E3QXLjfIAVkrOILi 4VQM32v8gOCGhENFDVsrhVxHoTqCGGeALQgFzTeadfIvtU05en5QK6VYCGI+tCvydM/j dWE8ixJZOqygHb5rBfDfn6Zxc2/Z8mLwllUz1nKhAoyvP9dMLbmXKQuG24s1rmylTr+E H7n8JQd4ecJboiT0/xtTwYjkZnPzu65hvyFU+xEewSPh52SzvVoGeg2oMublSPEOkkSm avIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=en06VWQMIBzgYO1j3+NeHVnv4oyBoDvjZcZZrOFc7kk=; b=pgRtn7Xc9k3GbjunVzCuknwdsKwBzBQaClMvuklKa7nHHYTlP/vSU1pa226CG+udKa T3NUcdNLFcnrt5sH37gHb8O/t7QnDexDs0YTSGQPE+0Uyu4DYbu+xbRigNZ8g4M8Kj23 kGD9tG3UeKu++Op1spwE3LbOAzQhHA7rNTIq9jDLPz21R+Yp8f75tGZuiZ8+SH/dfOIj ZsMJNcCMqP2h4nd0anRCIMpSNRXfiCsiF2iIIyVciGTIxl4osO5GOvMm8by2h4FlfBvp DypmZlFHb3/TXVxOVMakCMEk6xE8cKd61hGyDo/OC7CHOaXOY8gmG6HtWjSseipONHgl nZ1w== X-Gm-Message-State: AOAM531DcV/l0QTIe4o1kyaqU5qGvobslLbRIyNJ4fCTUG0KnVnL6yMt hidUG5iIZO9CC2W3+eUODOJ2khmIqGxfKjnq2JeVA5vZ X-Received: by 2002:a81:8983:0:b0:2d6:44b1:4ccb with SMTP id z125-20020a818983000000b002d644b14ccbmr21579600ywf.358.1645478844839; Mon, 21 Feb 2022 13:27:24 -0800 (PST) MIME-Version: 1.0 References: <9ad505e1-7b59-7ebf-378b-23a6c0e25802@googlemail.com> In-Reply-To: From: Luiz Augusto von Dentz Date: Mon, 21 Feb 2022 13:27:13 -0800 Message-ID: Subject: Re: bug kernel 5.17, qualcom and intel adapters, unable to reliably connect to bluetooth devices To: Chris Clayton Cc: Chris Murphy , Bluetooth Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Chris, On Mon, Feb 21, 2022 at 12:23 PM Chris Clayton wrote: > > Hi Luiz, > > On 21/02/2022 17:11, Luiz Augusto von Dentz wrote: > > Hi Chris, > > > > On Mon, Feb 21, 2022 at 5:22 AM Chris Clayton wrote: > >> > >> Sorry folks, clicked Send instead of Save Draft in my earlier message. > >> > >> Anyway... > >> > >> On 18/02/2022 03:49, Chris Murphy wrote: > >>> On Thu, Feb 17, 2022 at 5:15 PM Luiz Augusto von Dentz > >>> wrote: > >>>> > >>>> Hi Chris, > >>>> > >>>> On Thu, Feb 17, 2022 at 3:36 PM Chris Murphy wrote: > >>>>> > >>>>> OK I started over, and for now keeping the reporting constrained to > >>>>> the hardware I personally have on hand. > >>>>> > >>>>> Hardware: > >>>>> Lenovo Thinkpad X1 Carbon Gen 7 > >>>>> Bus 001 Device 004: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 > >>>>> Jefferson Peak (JfP) > >>>>> Sony 1000XM3 headset > >>>>> bluez-5.63-3.fc36.x86_64 > >>>>> > >>>>> kernel 5.17.0-rc4 > >>>>> * remove the paired headset with bluetoothctl > >>>>> * reset the headset so it's not longer paired either > >>>>> * put the headset in pairing mode > >>>>> * GNOME Settings Bluetooth panel sees -> LE_WH-1000XM3, Not Setup > >>>>> * click on Not Setup and nothing happens > >>>> > >>>> Well from the logs it doesn't seem the GNOME Setting is trying to do > >>>> anything, have you tried bluetoothctl> connect
> >>> > >>> `bluetoothctl scan on` does see the device > >>> $ bluetoothctl pair 38:18:4C:24:2D:1D > >>> Device 38:18:4C:24:2D:1D not available > >>> $ bluetoothctl connect 38:18:4C:24:2D:1D > >>> Device 38:18:4C:24:2D:1D not available > >>> > >>> $ journalctl -b -o short-monotonic --no-hostname | grep -i blue > >>> https://drive.google.com/file/d/1x9EDvDx6XUowyRy2056n6uW-4PLx5KRb/view?usp=sharing > >>> > >>> > >> > >> I too am experiencing the problem that already-paired devices fail to connect to my laptop when running a 5.17 kernel. > >> > >> Extract from dmesg shows: > >> [ 3.825684] Bluetooth: hci0: Waiting for firmware download to complete > >> [ 3.825910] Bluetooth: hci0: Firmware loaded in 1551910 usecs > >> [ 3.825910] Bluetooth: hci0: unexpected event 0xff length: 5 > 0 > >> [ 3.825936] Bluetooth: hci0: Waiting for device to boot > >> [ 3.839948] Bluetooth: hci0: unexpected event 0xff length: 7 > 0 > >> [ 3.839973] Bluetooth: hci0: Device booted in 13715 usecs > >> [ 3.840205] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-19-0-4.ddc > >> [ 3.843002] Bluetooth: hci0: Applying Intel DDC parameters completed > >> [ 3.843926] Bluetooth: hci0: Firmware revision 0.4 build 125 week 46 2021 > >> > >> Extract from lshw shows: > >> description: Bluetooth wireless interface > >> product: AX201 Bluetooth > >> vendor: Intel Corp. > >> physical id: e > >> bus info: usb@1:e > >> version: 0.02 > >> capabilities: bluetooth usb-2.01 > >> configuration: driver=btusb maxpower=100mA speed=12Mbit/s > >> > >> I don't know whether this will help, but I've found that the problem only occurs when boot from cold (i.e power on the > >> laptop. If I then do a warm reboot, my bluetooh devices connect successfully. The significant difference may be that on > >> a cold start, the firmware needs to loaded whereas on a warm reboot I see: > >> > >> [ 2.000989] Bluetooth: hci0: Firmware already loaded > >> > >> Hope this helps. I am happy to test any fixes or provide additional diagnostics, but I'm not subscribed so please cc me. > > > > What exactly doesn't work? Can't you power up the controller, etc? > > I have two bluetooth audio devices. One is a set of headphones and the other is a speaker. Both are paired with my > laptop and, normally, both automatically connect to the laptop when I power them on. I've had the speaker for three > years or more is has worked fine with all kernels that I have used up to and including the latest stable series - > 5.16.10. The headphones were acquired a year or so ago and to date have worked with all kernels I have had installed > since then. Consequently, this problem is a 5,17 regression. > > After a cold (power-on) boot with a 5.17 kernel, they do no connect automatically when switched on. Furthermore, if I > use the blueman application to attempt to connect, that attempt fails. The only way that I have found to connect > successfully is to do a reboot, after which the devices can connect automatically when I switch them on. > > I'm sorry, I have no idea what you mean by "Can't you power up the controller, etc?" Use btmon to capture the trace when you attempt to connect, it also would be a good idea to use bluetoothctl when attempting to connect. -- Luiz Augusto von Dentz