Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4627381pxb; Tue, 25 Jan 2022 14:55:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7KDeGjNOS+ulgz1bS2assqcTpL6SJHoK+HkESnaQLX9Qq1WxrRZdvX1mEMzfQwIJSU/CL X-Received: by 2002:a17:90a:f485:: with SMTP id bx5mr5831434pjb.46.1643151323950; Tue, 25 Jan 2022 14:55:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643151323; cv=none; d=google.com; s=arc-20160816; b=XUVcNZBbAv6ym4SvorMr8xV7ZPLln+SouRW/bK3mt9bwUifePF9kb0JhrZRmoKsn0j /9Px0ohBA0dNQDGIxyrtFrr3X4iLX/6USqULvtB33XpBJ07XnGTUbUQfNvv57dzr4n2H 5CU9u6yBITMtGIHFBYURciiyyTXKjSSlTL0OtYCpiZJagBe50CcPB78TjRY4RvlwHS7x lzeciWgGl8w1Lj/KOCmc3RBrpP5ctH807dydS3uwfAJlsHEoDWuEZZUEG1XSVGQi/aDB 7Fkbkahhr9bMkBExNWjqbu3Y3Kd0uWPrwFCnRqeJdrnwUc18OTu7GmPLz3Q3GGtu/+TX Du0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:to:from:date; bh=1sIOfqhE/5Cy2JvFkDPxyy8Ek9bvJQ5vjojaQhcAna0=; b=ZKwy+rnKgq6q8b06+hLbCy8kEdo2BWz4JYdxhM5uFnbYh2iaMRFW4K7qIcC97NzB60 y2i+Y6CsyYjA/FAkuFRs/W3pkohWPJ6GK34KS3+kEjxtM82c28pHAimiuYBGYcKEyskk cGZ8gDGIhU+ThlFZuUabMX/NImeaWTQRYzM9aIxcRFcGwLcpqw6I7Zen2xpPP5h/0YNX sgpkb8uMDWD+9NjDUfl0cuhPypItIiqGgUbK9s/5GRZ0vf37fRiEQTEkXZqG1OHYFSIP Bgc4cm4fxkv5B0hTkTJWjJUSazLvYkib8b73fk+z2Uh8GhugtrKl/3POMIEtR9d9AH1b 805w== 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 u62si9516209pgd.508.2022.01.25.14.55.10; Tue, 25 Jan 2022 14:55:23 -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 S242154AbiAYQDl (ORCPT + 99 others); Tue, 25 Jan 2022 11:03:41 -0500 Received: from nimbus1.mmprivatehosting.com ([54.208.90.49]:56982 "EHLO nimbus1.mmprivatehosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352009AbiAYQCW (ORCPT ); Tue, 25 Jan 2022 11:02:22 -0500 X-Greylist: delayed 356 seconds by postgrey-1.27 at vger.kernel.org; Tue, 25 Jan 2022 11:02:22 EST Received: from localhost (localhost [127.0.0.1]) by nimbus1.mmprivatehosting.com (Postfix) with ESMTP id B01F9609B6 for ; Tue, 25 Jan 2022 15:56:14 +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 ; Tue, 25 Jan 2022 15:56:14 +0000 (UTC) Received: from beta.private.mielke.cc (beta.private.mielke.cc [192.168.0.2]) by dave.mielke.cc (Postfix) with ESMTPS id E9EB048D for ; Tue, 25 Jan 2022 10:56:13 -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 20PFuDQ8416881 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 25 Jan 2022 10:56:13 -0500 Received: (from dave@localhost) by beta.private.mielke.cc (8.17.1/8.17.1/Submit) id 20PFuDR3416880 for linux-bluetooth@vger.kernel.org; Tue, 25 Jan 2022 10:56:13 -0500 Date: Tue, 25 Jan 2022 10:56:13 -0500 From: Dave Mielke To: Linux Bluetooth Subject: bluetoothctl set-alias - how to select the device Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.1.3 (2021-09-10) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi: It isn't clear to me how bluetoothctl set-alias decides which device to rename. From a bit of a look at the code, it seemed like it might be the most recent connect, but that proved to be an incorrect conclusion. In the same way that select can be used to pick the active controller, is there a way to explicitly pick the active device? -- 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 |