X-Received: by 2002:a17:90b:4a02:b0:1b8:d3c7:7a2b with SMTP id kk2-20020a17090b4a0200b001b8d3c77a2bmr6106258pjb.194.1645565281344; Tue, 22 Feb 2022 13:28:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645565281; cv=none; d=google.com; s=arc-20160816; b=OyeybFKhgutv2PI8BFTb2W9a/lIzhYj8UeAI9HSz+/RmmH+ISMsIaqAEV0ZvKJoBRh otQ8h4qv9pcx9wDBF9WUxh2o5Nj98KCjPL4UHJnCWmzFRhYNcLWxogJJzTERamH/nxrG UYP/1D4gvBTStA17/FQZLYrH4vtxhd21uZnzyoJQTKxDu2yUvVtjSO6+JLia1Vzsh0FS j1bHJtlW1V1I5YLyGk/7u9bCI3relOLbhMUCgVkFJA/TSMiwAIdaQfU38Zuz0nuFYsnp 4ui3rJ3Rq62BpzZmjb+f5xayZAOHL7KvZlF1HKHNfT1VB8gI65nzyIIXFlb2Y3uQr/HC hUeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=KY+opXBfsv7F+NUo+OJ+2S3z4rS/UjoTF0hbnc/nKak=; b=XEQNNp0zzqdIdMjrb5ZyFifG+3C6n+Ym+HDg3fqoQLpxqC752zykIPjX3CKagCGCTu HPB0pvow/LPCV4IVjAibZeI64uGWpT9AfIPp9S92dgE43oLyJGneUYczFZQAh8nRONJm QmXj9RuLtLUs1jjxV8v0rADs5qU0HD1GYKRtuBPipKZiJBjQiE0WL2w5UTXdlGvtgStg sG1jZ4r3ikge2raRPcXLrM9+QF8y4jvwNS8dWInipFud0Rb3H67nucDNHcznA19NFUKS yjPe3hs7x7k8skPvdqKBXw7R84F+mcniVoLQtJumIG9BKrTD0w4oaubwxomYG1FnlTo6 pUmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=RrQHyH2c; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6si21860583pgw.490.2022.02.22.13.27.12; Tue, 22 Feb 2022 13:28:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=RrQHyH2c; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233959AbiBVUEY (ORCPT + 99 others); Tue, 22 Feb 2022 15:04:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232041AbiBVUEY (ORCPT ); Tue, 22 Feb 2022 15:04:24 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED643EAC5E for ; Tue, 22 Feb 2022 12:03:57 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id az26-20020a05600c601a00b0037c078db59cso2691488wmb.4 for ; Tue, 22 Feb 2022 12:03:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:cc:references:in-reply-to:content-transfer-encoding; bh=KY+opXBfsv7F+NUo+OJ+2S3z4rS/UjoTF0hbnc/nKak=; b=RrQHyH2c3vUkkNwtXUOXpl0EieXqgOjliKYkUCi6g3PDUBEz0FnHoPQVBYiwI4oAQz HNCFrAXrL+MR4IolX1jJhHZ+QQqOob0BwTWlrzv18+WRSzki7o09YDR0o/E0p5KNdN7I HVKW8ZW8Wi5lvrehu8lyVpo+C3onX+hJS439D+ha4X1RhNqI6152RUBMWal/JtQRISOW GFKE5RRiCPoIB7/UjNvkKh927C+GdczOOEyzQIGucSKKF/GGGstmXoyX+ML8RNHSN0Sy QJQDxzVFLkP4vgxhz2EuqBdrIwpzTwKFDTmEDHrs0G91nX60XWTBP9LFAYAaIuFXFzxf HS2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=KY+opXBfsv7F+NUo+OJ+2S3z4rS/UjoTF0hbnc/nKak=; b=q0f5un1TcbqfYZwpHXw8zCUVomEkV7zBTxBDa5M9xHlFtUMJKhvGEk6zgEOChjRn2K JGbQeTHzHyWtLMSs4g9k0FpsT3zrTnm4hL/BRxOAE6PhpGdhgsM2H5kFjJLzqcNB93Cl Rd591+EdvWdlfdDvdyhv8OX2xtJx5RbW5JsvMznMC2Mv3E9coKiwjKn8HyUguJ/Q9+vx 8f0F61JSE8Qti4DHFir6PlHTVx2CJDwtFfGlkJg+Atrs67q0oqHxMDi4Qn0mDUFJr/2l yQh7VIbu7CJUVFTKjvTdl1qZG2u1MO6cEwmRaGXVLbLUP5JU8lo0JcewVAXKQHHrixiD A95g== X-Gm-Message-State: AOAM532yKbUxdQZFaBEEQgQjHu4CReWwgqBSapQNpC7wRRTW/hFsfgSf io9OCv73cAI/ZiQTO0QL3bw= X-Received: by 2002:a05:600c:211a:b0:380:d7b5:6e3a with SMTP id u26-20020a05600c211a00b00380d7b56e3amr3572731wml.125.1645560236251; Tue, 22 Feb 2022 12:03:56 -0800 (PST) Received: from [192.168.1.10] (4e691f2a.skybroadband.com. [78.105.31.42]) by smtp.googlemail.com with ESMTPSA id f7sm47468374wrz.40.2022.02.22.12.03.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Feb 2022 12:03:55 -0800 (PST) Message-ID: <82216882-463a-8976-e6bc-4a8919107a31@googlemail.com> Date: Tue, 22 Feb 2022 20:03:49 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: bug kernel 5.17, qualcom and intel adapters, unable to reliably connect to bluetooth devices Content-Language: en-GB From: Chris Clayton To: Luiz Augusto von Dentz Cc: Chris Murphy , Bluetooth References: <9ad505e1-7b59-7ebf-378b-23a6c0e25802@googlemail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Luiz. On 21/02/2022 22:33, Chris Clayton wrote: > Thanks Luiz. > > On 21/02/2022 21:27, Luiz Augusto von Dentz wrote: >> 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. > > It's getting late now, so I'll do a btmon trace tomorrow. From it's name, I assume bluetoothctl is part of the systemd > suite. I don't have systemd on the laptop but use sysvinit to start userspace including, of course, bluetoothd. > I've trying to get a btmon trace but the problem of devices failing to connect has become intermittent. I pulled the latest changes from Linus' tree this morning and built and installed the related kernel. When connection fails I see the header it always spits out, but nothing else. When connection succeeds, there is plenty of output. Tomorrow, I'll turn on debug in bluetoothd and see what the difference between a successful and a failed connection is. Chris > Chris > > >>