Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp960173rwo; Wed, 2 Aug 2023 06:52:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlG61DwaCc/cp9bchEPlYCuObPJSuiBhs9q8d5eKKo4b0BE5TOZLuKBM8jwSHlK8qha5b7j3 X-Received: by 2002:a2e:95cd:0:b0:2b7:344c:a039 with SMTP id y13-20020a2e95cd000000b002b7344ca039mr4915748ljh.33.1690984337539; Wed, 02 Aug 2023 06:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690984337; cv=none; d=google.com; s=arc-20160816; b=FyqQ9t+UKeKPS67IKkOm72ZL/Gw9HuutF3HPYoYgVTe/K/eogJ4muZJScRgqKkNHwo aqfGVjMyIL+VAUArKEWVcGcgGZKGJ2tkejDKuacRa4VwDi8Ux3JzxIYBliTHHNmW9B5S z1lHEtJX+gSdM2735EODoiYQ2zN9LtL7/eDM5ZjX/s6eGr1S4KHu5E8ISLGJ3tCwoJz1 hYGmtW+WXnE87U9rhQuSV+RAUlYGxeJ/C3Fo+dFS0WaeRBA2FppjbMqSd9EYcu/nu3sp YHS1dUBrvB3+LufPCLmcQnJAeGN5JUPjWfRl5NPKSNL5uHsrQWdFHAuI+LIq4HrR2o+4 sL+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:date:to:from:subject:message-id :dkim-signature; bh=sm6mQ/wdF70vY08bxgQ48YOyu++0GIR1/8bsAboMWiU=; fh=hl/Kq9qKvlpk+Y+jsmeOZ/RGZbcOYKjv+iY+03JXefg=; b=yAdv78ao0IDUPsplHF4X3MJVe1PpMf1Vs20ckQ+ISCrUbmgVXdcneXCLsJw7Rjgzzy fCYNx/yASaJuuDwDbIH6ajVVL0oU60SG9B82K9Ij74WnA6QbagQqF5oe+6iK11CJK0nN /J5LculHO/xmHPCop3eQmFW15hy9+H7kPn9v6CjE9auOLppz1FECIhuS5sVtcV9t/Jqi vqjXeI5bG9JwZVmOE9EHGqvrWcCUzKBpRNATCtUDLbPwcejfjpaWbq5F8B7rZIh95ilR jnjGVBE6csSmt6rH3pjzfiMZScObUbNWxhaALhimDpfchyaaSN3njSy/tCv3gqtP5H7i G2XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zougloub.eu header.s=zougloub.eu header.b=b3hI8u9E; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju3-20020a17090798a300b00988e963c3adsi7017036ejc.755.2023.08.02.06.51.52; Wed, 02 Aug 2023 06:52:17 -0700 (PDT) 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=@zougloub.eu header.s=zougloub.eu header.b=b3hI8u9E; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230338AbjHBN2M (ORCPT + 99 others); Wed, 2 Aug 2023 09:28:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231743AbjHBN2L (ORCPT ); Wed, 2 Aug 2023 09:28:11 -0400 X-Greylist: delayed 394 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 02 Aug 2023 06:28:10 PDT Received: from zougloub.eu (zougloub.eu [69.70.16.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A5A68E1 for ; Wed, 2 Aug 2023 06:28:10 -0700 (PDT) Received: from pouet.cJ (exmakhina.com [69.70.16.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zougloub.eu (Postfix) with ESMTPSA id DA4BF2401A53 for ; Wed, 2 Aug 2023 09:21:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zougloub.eu; s=zougloub.eu; t=1690982485; bh=sm6mQ/wdF70vY08bxgQ48YOyu++0GIR1/8bsAboMWiU=; h=Subject:From:To:Date; b=b3hI8u9Ep5Iig4CF+PE4oHhOZhTCxmTuCGJRMnZcEHAQFDe2ghWwOkBwu7Pa6jm46 2crRoCg0yiiKSESV+rO0EPpxBKHBc4GuwC6M4wY9JcsLBoEs7XX3cN5m+bYpel3gts SnpCkD/iPSXfDTeJWLcbmwCTGh0+nSTkI7IL+PSY= Message-ID: <9f121aaae37f79022bb6d1aa7787e50492f7ee00.camel@zougloub.eu> Subject: Puzzling software regression (flaky device control, scanning issues, scan filter?) From: =?ISO-8859-1?Q?J=E9r=F4me?= Carretero To: linux-bluetooth@vger.kernel.org Date: Wed, 02 Aug 2023 09:21:25 -0400 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 there, There is something wrong with my software stack or configuration and so far I can't put my finger on it. This probably has been going on for a few months. I found a way to express my issue as follows. When I am running a Fedora Live virtual machine with my bluetooth dongle shared with it, it runs the following software: - Linux 6.2.9-300.fc38.x86_64; - bluez Version 5.66; - linux-firmware providing intel/ibt-17-16-1.sfi version 108-45.22; And I can use bluetoothctl and issue "power on", "scan on", "scan off", "power off" at will, and successfully discover/connect/pair a bluetooth mouse. That's a working configuration. In my regular software environment I'm running: - Linux 6.3.13; - bluez Version 5.66 or 5.68, I've tried both; the configuration files are unmodified from defaults (Gentoo package, there are a few distribution patches but nothing); - the same linux-firmware blob (I had tried older revisions before checking the VM idea); - nothing else than me using the bluetooth dbus interface or command- line tools; And when using bluetoothctl "the first time", I can issue "power on", "power off", "scan on" doesn't seem to work fully, and "scan off" says: Failed to stop discovery: org.bluez.Error.InProgress And a subsequent "scan on" says: Failed to start discovery: org.bluez.Error.InProgress But `hcitool scan` works and shows my mouse. And in `bluetoothctl` if I fiddle with scan options then scan results will show my mouse and I can use it ("clear uuids", "clear rssi", and reapply an rssi filter to not get a gazillion advertisments because I'm in the city), but it's not clear to me why scan is not originally working. I hadn't been able to connect my wireless headseat for weeks, so I was living wireless-less, but my 20 year old wired mouse started misclicking and I felt like making the rediscovered 10 year old wireless one work, and after banging my head on the problem I found that the VM configuration worked, and iscovered about these scan filters yesterday, and managed to pair with the mouse. So I have a workaround, but I'm wondering if someone could help me understand or diagnose this problem further. Best regards, --=20 J=C3=A9r=C3=B4me