Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5139403pxb; Wed, 26 Jan 2022 05:46:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZ3YwvcAhM6+S4odHvnLQ0BLMCCxbXgFHqKy17VsouwKUCs9Y1BHRRp1TMXbva45fYpOHn X-Received: by 2002:a17:90b:3ec2:: with SMTP id rm2mr8814984pjb.141.1643204790946; Wed, 26 Jan 2022 05:46:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643204790; cv=none; d=google.com; s=arc-20160816; b=l1axDcC2IONAd2HTbdYGUyH8YrH4Xjv3TIvyWnCPxp546z0fgigZHAAP3bFUKVvsxK yGzdioYT6yP0p/JVeuoTSY3cH2/ByTa1QH2t4SpoWmu9iKvs4BJGTu+aEevkmsvCzzeF GJ8xWE0qdI8Oen7BO/QLPBCGWcn2fQCmgSBBjh6ii1y+PmvUghUZamPIDCbwI+gFf448 4huwWxoZ1FsQ6cOfA6JZv+7b9dtsVAkRAlwEjr3GNMtwMnIGK7daySvGHXDay+ZWlKVt yK0mmqOafpyAZWzIB11y9e6oxQMr9dSWkiwXTOiAdvYVpzfAPeMvLjoNtPkZj/5M29Gl fWtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qQn73iUkClrU9LKiJKhrDZp85NG8e5C43A0VDqsFl4w=; b=o+v6+bWokiDhXZmGt32WY1veDhA5i389AxAkEZ26iec5E/vUwQfr4M5OjyKDcJ9QS4 zcwmvQ5kTG6V5eV6RVUbBr17e+PmDp9wsdraoW4km0N4k2Fx1j/sL6w0RilYy5nZm9dh Wd+UQebARm97fEk2wmkgMX7QroMdC/pFh163dfCPyNVUxK4uaQiaz0v9KmpypqDN6c62 Rw2hwe00iQ+Nr4zhQsfyx0mJwpF+YDCX3O9nsRJVM1lYGO1NtE8fzHxysuyJtNeWSF/p EkMAEIG/tV0QroFEh9zGD3diEakhrF7W/7ja9UOLYk9uc0OcsNloEvXliquUzlsgrGaN FdQA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si1816136pfk.190.2022.01.26.05.46.00; Wed, 26 Jan 2022 05:46:30 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235377AbiAZAnc (ORCPT + 99 others); Tue, 25 Jan 2022 19:43:32 -0500 Received: from nimbus1.mmprivatehosting.com ([54.208.90.49]:56984 "EHLO nimbus1.mmprivatehosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232447AbiAZAnb (ORCPT ); Tue, 25 Jan 2022 19:43:31 -0500 Received: from localhost (localhost [127.0.0.1]) by nimbus1.mmprivatehosting.com (Postfix) with ESMTP id 0059A609D6 for ; Wed, 26 Jan 2022 00:43:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at mmprivatehosting.com Received: from dave.mielke.cc (cpe1c697a7445d3-cme0dbd1be3a7a.cpe.net.cable.rogers.com [174.116.66.202]) (Authenticated sender: relay@dave.mielke.cc) by nimbus1.mmprivatehosting.com (Postfix) with ESMTPA for ; Wed, 26 Jan 2022 00:43:30 +0000 (UTC) Received: from beta.private.mielke.cc (beta.private.mielke.cc [192.168.0.2]) by dave.mielke.cc (Postfix) with ESMTPS id D9C49482; Tue, 25 Jan 2022 19:43:29 -0500 (EST) Received: from beta.private.mielke.cc (localhost [127.0.0.1]) by beta.private.mielke.cc (8.17.1/8.15.2) with ESMTPS id 20Q0hTT8420905 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 25 Jan 2022 19:43:29 -0500 Received: (from dave@localhost) by beta.private.mielke.cc (8.17.1/8.17.1/Submit) id 20Q0hTUQ420904; Tue, 25 Jan 2022 19:43:29 -0500 Date: Tue, 25 Jan 2022 19:43:29 -0500 From: Dave Mielke To: Luiz Augusto von Dentz Cc: Linux Bluetooth Subject: Re: bluetoothctl set-alias - how to select the device Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.1.3 (2021-09-10) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org [quoted lines by Luiz Augusto von Dentz on 2022/01/25 at 15:18 -0800] >It only works while connected currently, Even then, it's unpredictable when more than one device is connected. In my case, for example, it can be my Bluetooth speaker as well as a braille device. I assumed, at first, that maybe it's the most recently connected device, but that, too, wasn't true. When I connected the second device it still changed the alias of the first device. >we could in theory extend the command to have an optional 2 parameter so one can enter an address. That, I think, would be very helpful. As I understand it, isn't set-alias only updating local (host-resident) data anyway? Also, given that set-alias isn't predictable anway when more than one device is connected, I think there definitely needs to be a way to explicitly say what one is wanting to do. -- I believe the Bible to be the very Word of God: http://Mielke.cc/bible/ Dave Mielke | 2213 Fox Crescent | WebHome: http://Mielke.cc/ EMail: Dave@Mielke.cc | Ottawa, Ontario | Twitter: @Dave_Mielke Phone: +1 613 726 0014 | Canada K2A 1H7 |