Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp401530ybz; Tue, 21 Apr 2020 11:13:40 -0700 (PDT) X-Google-Smtp-Source: APiQypIQE32TpA8znewJ/1JmkS2w4YjQ4CoWWqOTmVH1JIVfSE7wsSfllzsQArhRC9grjl2Yk7W3 X-Received: by 2002:a17:906:7d7:: with SMTP id m23mr21586572ejc.154.1587492819936; Tue, 21 Apr 2020 11:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587492819; cv=none; d=google.com; s=arc-20160816; b=nHt5eh5eF5KTBrAzgbbQFa6oraBMo2FqthpUBdC/XSpRJxKkTFPosYLZ2UOugsczQu xC+G+y3pH2Tv5MQMs50knt20FLbxSG1tJlCEfFBZFJpxy2HibqplUqVHI3o/lNQdRw7e 4rCtiXTwtIRLz/CBPzZ/fBEP/H0gplOYstJxfZ6Vr7uUEU78plnzBjScGjaZPlphotcL b2P0GPHk4UZrPuH6kr+crIWSe9WYPrsfMd76hNnAHMSm0LXLgpYCUmRqPLiJSkjpKxRW aJUIb6v5W3Zbo8jh5aNqqJ6vknHNtVU6sezNgqLO+GokAkjv7HLZLxCcdI2fNBh8ACY0 +irg== 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=es6t6nxU1jGnvVJ69fouevmOFJVMXa+LfxzJCKwM/pk=; b=dvRt5j1rdLSgMKnLu1T1OFarUiANZgehlFK0c+vQGAh4UwSCBYQN5swqDuOzZHppuP l+OO+yEtEya+EUBIoIzTx30iR9VUYytN1Qoz9xyIA93YJUBSOefkzUZM2AMsjY6hi1AY 3M4RW1W1o/SdR6NXysN+bwW08FsCtmdrPaFosBX+r0VPWHVwwoOraIOOfhmpYXTpD1ng NFl35PcxcPd/RazFQ6nJS+8v+8sEoEDgVEmn29YN3M+QvzWBZ4vi9B4ykD77I8XVhhbJ m90NNWEwhQI6FOVOZLiw3285LGUZA+Tamul0CLFM8F2PcVkri0MDtl96QKgNxZdFsQnr gWrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eUtJI5wn; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si1887347edx.31.2020.04.21.11.13.00; Tue, 21 Apr 2020 11:13:39 -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=@gmail.com header.s=20161025 header.b=eUtJI5wn; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725987AbgDUSMy (ORCPT + 99 others); Tue, 21 Apr 2020 14:12:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbgDUSMy (ORCPT ); Tue, 21 Apr 2020 14:12:54 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB14CC0610D5 for ; Tue, 21 Apr 2020 11:12:52 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id z17so11978497oto.4 for ; Tue, 21 Apr 2020 11:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=es6t6nxU1jGnvVJ69fouevmOFJVMXa+LfxzJCKwM/pk=; b=eUtJI5wnkhjljNr53E2YU3XHct4qS+fGpEEpJhX3jVgAReXoiUtZ1/lc9uWPnD/U52 UmP1LNEk9K95uEaZYEd+XlVel2BKxaMjRPsdIKPWM/Z4UPMC90KTm0gVl2LmxhVo7pDY Hk8pXY4Wf4Vhbv5NK2okWm8qha25cVLdfxDdXo8REbnw/t/2Wc3Hecv7HbrxssbWn+p5 PaQh+BZZFPUDrA/I8Pt1hh1F/TMQDrmKdgvdq1bVvrovoXwQFtBzeuut06a426I7Y5ZM B1b/cuWMRe6FNprY3EHXflLGOVAz2FJI/nSx3FUG5GYvfPRorXhpyOy8u0O+7gR7g5CW aRaQ== 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=es6t6nxU1jGnvVJ69fouevmOFJVMXa+LfxzJCKwM/pk=; b=s3ANlkKPZePN/X1zN+93J/611FHu8ZkDPkub9m51X8Tc5PPp5WEhA4QZjJxj8gWZ9L EtC42K0oHMZioIIhYsf1ka04pN036yKXFQiv0lVuwoSDx4T0tZvmr4SDWXTCQUQhdTsw cvJYSQuoPGZAwwUnllFiLj16BJyC8q/Jvcxk7xJRlEelmOud1OLpNRjaUQFdfL4JZ63N zJClQ052eBwhyr2aDBL3vNmp8Y86XIik7A7vvwaLoaXtqXP1NP+cZ8zH1h3oQ4AubPp6 ZpS4/KhNENo6SM+8DiIbB4+t8+yzehdzkDk404qRi2iJxGbttZ/qe7KDgjcZTtkI3sYJ bQsQ== X-Gm-Message-State: AGi0PuZQLOrd114cXH2Mb6bisH7ZQsqMomrmjiQ1KUSEN5D+zzFAsu2g 27jaX86vkI+yYHqdxGBhEvl0Qi9ENg2mZMU92o5aIKZr X-Received: by 2002:a9d:7a98:: with SMTP id l24mr15242781otn.79.1587492771997; Tue, 21 Apr 2020 11:12:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Tue, 21 Apr 2020 11:12:40 -0700 Message-ID: Subject: Re: Auto-connect after disconnection from user on trusted devices To: Yun-hao Chung 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 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