Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp812612ybz; Wed, 22 Apr 2020 08:26:03 -0700 (PDT) X-Google-Smtp-Source: APiQypKgFQVXSwSaKtNeHrnnyTZG0yH6QyhTe0syINEcsXzkqW39CiYAQ7nt7+ISOvcVFK+ao+E+ X-Received: by 2002:aa7:cb0f:: with SMTP id s15mr23102194edt.164.1587569163291; Wed, 22 Apr 2020 08:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587569163; cv=none; d=google.com; s=arc-20160816; b=HWMJz2pTHWb9CupvAzAvDNZ3bZfXHWDq4G6iI6DF+/LGkPc7Ufnl9M0q/yJCQ29Vke l2N8I8NHiQSrVcaHH90HR8N0Pss9igUIk4/Fv1/IDa29fHrvEKN3sUtEz9MRwTp78Y0q kzvVafcTTO3aYiplFK+rhw8rn+bILIygVh/FYtAOpWaGThZP8H4AL9TGWlPpXSiWiYLf IlXOsvv5xsoWRyxloF4NEYIdBNJGW7L20NgL68DWF9cMOBAvIbEOlLJ6E174Py/blkNS yRBfotHdi3gGkrUWgAjMBQgc6G2R2qss9/WUYHrruzBoh12ZEqPr1FYD99XBCjOSsiF1 yIOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=B1TftnPtnrSEPoU16eD2M6e3FXwAxSdcnJV604U4Mj4=; b=cY81Cwe2F73kjUTL3GlbtsxHR6tlTwOOehQh3xoVJANW0SGT3fqpZXXTu6WF3TkT/1 EYl0/tnnMXSf3toUIst46LtYn0xIFVsk47xh91eQ1R1dH3/q99yRBFQKu+eOjdrW4EgZ dedVh0c7SKoeafdxIrbMsUHyaMkQorEyR7kj22rOnSlcc3mdHoJ/iUYXryCC/aWXbmj+ FyWK8UeFfuSszJ2rYr0tL+OlFHgUARiBKXd+m3yIBrcTSFx2iTezoXKGLq66qDdxyys2 21uDTRd7/RmSrBmvV4DkozW+tpI/mWPBavcoTy1mikU5sDt+yK0s3EIO0NjJZVUb/rFG +y/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dGiEWwRg; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l9si3653342ejh.463.2020.04.22.08.25.19; Wed, 22 Apr 2020 08:26:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dGiEWwRg; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726144AbgDVPYr (ORCPT + 99 others); Wed, 22 Apr 2020 11:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbgDVPYq (ORCPT ); Wed, 22 Apr 2020 11:24:46 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE453C03C1A9 for ; Wed, 22 Apr 2020 08:24:44 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id a8so1805392edv.2 for ; Wed, 22 Apr 2020 08:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B1TftnPtnrSEPoU16eD2M6e3FXwAxSdcnJV604U4Mj4=; b=dGiEWwRgdBrB4rOrB6/Ic3W8Z68aiqzjegG/XXUIx5dhozpwXR2MGuZX3xdxHey/fY VIHSWtBdshjvgnFmqsjI5eA0xYec3JdiwGdGz4iZUdGIEUslFGT5dQ3wH9HVvZYnuD+S TwZWYiNIzz3f4xsXWFDomlMyh53drgE0FGC6PccHcxTIUjZEW1uvf19A0rsCzHPlaGrG 0+WXUpUX0iDuE6Bc5t137ZDJZiyvKad0B12FMitGCNwbRmwysFjVp8gPZM1QWNuvoNWv x2u0KBpiwITzPaP8BXF5YYjvNNe57gs8EuK2ibCBdFZDt/sfGG+pzh2AYs7gxwLEP7qH xHkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B1TftnPtnrSEPoU16eD2M6e3FXwAxSdcnJV604U4Mj4=; b=Pf9Mu2mJnixGL8/CIbF3A7L7hKQUP8x0nT3d6wPxPaBOpah5+2WnLJLEyfmVuAfBSu yRZ6eLTY7UC2gg5OtpamidRGgwWr9OQdP/beK5WilU//cF8ie3tpQZT9r4GlJ28NQjfN HtXoSvl53qjDWObW4so/LL3+MSqcGY0q5Vwk2lO6YtDi1QpiHha5M/udlQA/8Jjg4kuz N1SWEXD3EnXoHxHDGTqstWgNVrNkJf9EqjHP3EHBghFuQw9sFSCNtlud67hxN2gQLxia 2Gr5UxOBAyxwjUbg+T20LYkt/OkFbdoN5bdXLS5tld3F5yvyi79aQbwoNA7dmQji2Q/4 bHfw== X-Gm-Message-State: AGi0PuY/1EJMY6db5bczhfTptn1vr7h+i97MzvTeW2FqRhTZ7a/CVSw7 zu5NPjp79+h1lYlhIZ6GpAnus9ZbskffbgoRjzNe8to7 X-Received: by 2002:a05:6402:1ad0:: with SMTP id ba16mr23935097edb.11.1587569083052; Wed, 22 Apr 2020 08:24:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Yun-hao Chung Date: Wed, 22 Apr 2020 23:24:31 +0800 Message-ID: Subject: Re: Auto-connect after disconnection from user on trusted devices To: Luiz Augusto von Dentz Cc: Bluez mailing list , Sonny Sasaka 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 Thanks for sharing your thoughts! On Wed, Apr 22, 2020 at 2:12 AM Luiz Augusto von Dentz wrote: > > Hi, > > On Mon, Apr 20, 2020 at 9:30 PM Yun-hao Chung wrote: > > > > Hi linux-bluetooth, > > > > Bluez doesn't disable auto-connect for trusted devices even in > > device.Disconnect. This causes users can't disconnect from peripherals > > unless they untrust the device. > > > > The behavior seems to change into this way intentionally after this change: > > https://www.spinics.net/lists/linux-bluetooth/msg72898.html > > > > I would like to understand why this change is needed and what is the > > suggestion to disconnect a trusted device. > > This has been there for a while but if I recall correctly the problem > is that we cannot really tell when the auto-connect was disabled, > besides it was not really honoring that in case the daemon is > restarted, etc, so instead of having yet another setting to persist it > was simpler to just use the trust, or block, properties to control > auto-connect which are persisted properly, that said maybe we can make > disconnect auto block the device and then connect to unblock > automatically but I think that having the application set the block > property is probably clearer that we don't want it to be reconnected. > > -- > Luiz Augusto von Dentz