From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#34516: Multi-monitor frame sets Date: Mon, 4 Mar 2019 19:20:17 +0000 Message-ID: <20190304192017.GA21727@breton.holly.idiocy.org> References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="24945"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.3 (2019-02-01) Cc: Andy Moreton , 34516@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 04 21:10:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0tui-0006LH-3Y for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 21:10:16 +0100 Original-Received: from localhost ([127.0.0.1]:60289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0tug-0002vv-Um for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 15:10:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0t95-0002eG-K1 for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 14:21:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0t94-0002RW-KU for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 14:21:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46663) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0t94-0002R9-9z for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 14:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0t94-000674-1t for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 14:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2019 19:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34516 X-GNU-PR-Package: emacs Original-Received: via spool by 34516-submit@debbugs.gnu.org id=B34516.155172722823444 (code B ref 34516); Mon, 04 Mar 2019 19:21:01 +0000 Original-Received: (at 34516) by debbugs.gnu.org; 4 Mar 2019 19:20:28 +0000 Original-Received: from localhost ([127.0.0.1]:60207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0t8W-000664-4N for submit@debbugs.gnu.org; Mon, 04 Mar 2019 14:20:28 -0500 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:36267) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0t8U-00065s-EC for 34516@debbugs.gnu.org; Mon, 04 Mar 2019 14:20:27 -0500 Original-Received: by mail-wr1-f46.google.com with SMTP id o17so6827647wrw.3 for <34516@debbugs.gnu.org>; Mon, 04 Mar 2019 11:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=UJ/qGEurk6yJPYzz1rG4QOeJgwE3USQgIFEOnDym+84=; b=bvHJ4OvIGkbhWcZM/37YDRY3c+5k//zaMawYwWoAMhgnUDjmCysgxsPjkUb45rz5wT Cj35Kxz5ZNIhZR2PKuQgtgagrPb78DSpyJScsKQbRDVD5+5XcnNUY5W7WLNHCJ4oFBN1 LBceY1mwAfkyu4uG1BRF+j9AYK/iE88YMimke6H2Sx+woe6cIC+bfGeqySXMx9PejH5m cLIHQ6WZKeOrCU+i1fDwpDnGKxUFwrOSAE20xTrVA8E7mekSijG9IeeZDrg/4fKIvW3b rT5xYubUQ7TkhMWf62x9ugg6NCJxCRahx2DbaPXZbK/3XRyssaxGJNEzfDDwneB5l7I7 ON6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=UJ/qGEurk6yJPYzz1rG4QOeJgwE3USQgIFEOnDym+84=; b=Wz5YvMklElSbkNoULKeX6AB8zxvM/IqN5TSOxSZfg3aV6gASyAfrAZ7ceAieP53sJU OJxMlyMcExt8HU079PKG343X8Ra/Sx3BTslcJ40icgDs/MXHxEv6hTlbnBEJxqp5aOB3 W02f59ZEhctm1qBRIwJd/R4/xFirHszvDujLlEJdz3eqcYQ99F5Qq8BTHMyiut5/qM3Q jSb0m7SI5w7tKLU0G4CZAwvjqomqrQZH1Ic9OLYqVVjcAwVrCYNF9iAM4sNa+xFFYTpx 1fRv7rFCNAK8GH3y8dq8a6usYZwnhN/L+f1GfC4J9lF6nMDSLd3irwwx+H7E2PQXCRz3 5XJw== X-Gm-Message-State: APjAAAVz0R9hEzspd/Z/JrHzLAky0TPEycsXcRO1nZqwJenJgcxfftWW LhlV2puB75atlKu41X4lOmg= X-Google-Smtp-Source: APXvYqzUDi+R8c8YsSC2+wChpiXv6YvqwZNWac89bj2J4fbCxvkNjsZVeA2mw7JZ9CT3XDO2WFKf8w== X-Received: by 2002:a5d:6682:: with SMTP id l2mr13222717wru.271.1551727220537; Mon, 04 Mar 2019 11:20:20 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a434-efbf-3a29-731e.holly.idiocy.org. [2001:8b0:3f8:8129:a434:efbf:3a29:731e]) by smtp.gmail.com with ESMTPSA id o12sm8279833wrx.53.2019.03.04.11.20.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 11:20:19 -0800 (PST) Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156039 Archived-At: On Mon, Mar 04, 2019 at 05:10:59PM +0100, Robert Pluim wrote: > Andy Moreton writes: > > >> At least in 'system preferences/display', when you have two identical monitors > >> attached, they're called something like 'DELL 1234X' and 'DELL 1234X > >> (2)' (I canʼt test that right now). If you can show me code on how to > >> get those names in 10.14, I can confirm. That would be better than > >> making up names. > > > > So 'DELL 1234X (1)' and 'DELL 1234X (2)', where (1) is the primary > monitor. > > > There are usually two different names involved: the name of the > > file/device that represents the monitor, and a human-readable name for > > the UI. > > > > In Windows, the GUI settings/display describes the monitors as 1 and > > 2. In emacs, display-monitor-attributes-list reports the device > > names \\.\DISPLAY1 and \\.\DISPLAY2 (you can see these device names > > with the WinObj tool from SysInternals). Note that the device names do > > not mention the make/model of the hardware. > > > > For OSX, ioreg or the IoRegistryExplorer app show similar information > > from the IO registry (a non-persistent database of IO device > > information). I don't use a mac any more, so I don't know if these tools > > are still available). > > I donʼt know, but the code in ns_screen_name which appears to do > something similar does not work for me in 10.14 Try this: ioreg -lw0 | grep IODisplayEDID | sed "/[^<]* Iʼm not so sure about using the did, as someone suggested, since that > has a large value, eg here itʼs 724851601, Iʼd prefer to use a simple > index. I did think that might be an issue, the main advantage over the simple index is that it shouldn’t change, whereas I don’t think the index is guaranteed to be the same on any two consecutive calls. -- Alan Third