From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#34516: Multi-monitor frame sets Date: Mon, 04 Mar 2019 13:56:42 +0000 Message-ID: References: <87bm3a74s4.fsf@mail.linkov.net> <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="188165"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) To: 34516@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 04 14:58:13 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 1h0o6e-000mo9-W9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 14:58:13 +0100 Original-Received: from localhost ([127.0.0.1]:54423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0o6c-0001cd-Vb for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 08:58:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0o6V-0001cI-CE for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 08:58:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0o6U-00067B-HJ for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 08:58:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45697) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0o6U-00066R-7V for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 08:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0o6U-00041C-0S for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 08:58:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87bm3a74s4.fsf@mail.linkov.net> Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2019 13:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34516 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155170782315371 (code B ref -1); Mon, 04 Mar 2019 13:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Mar 2019 13:57:03 +0000 Original-Received: from localhost ([127.0.0.1]:59241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0o5W-0003zq-Nh for submit@debbugs.gnu.org; Mon, 04 Mar 2019 08:57:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0o5U-0003zJ-UE for submit@debbugs.gnu.org; Mon, 04 Mar 2019 08:57:01 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55670) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0o5P-0004MO-LK for submit@debbugs.gnu.org; Mon, 04 Mar 2019 08:56:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0o5O-0001Rm-Rs for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 08:56:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0o5O-0004KJ-1X for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 08:56:54 -0500 Original-Received: from [195.159.176.226] (port=57210 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0o5N-0004Hk-Pt for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 08:56:53 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1h0o5K-000lEL-Js for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 14:56:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:GwMziAqBiJYZ/srzzkvah7e2WgU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:156027 Archived-At: On Mon 04 Mar 2019, Robert Pluim wrote: > Alan Third writes: > >> On Sat, Mar 02, 2019 at 11:57:35PM +0000, Andy Moreton wrote: >>> On Sat 02 Mar 2019, Alan Third wrote: >>> >>> > On Sun, Feb 24, 2019 at 01:56:31PM +0100, Robert Pluim wrote: >>> >> Juri Linkov writes: >>> >> >>> >> > on macOS it could return something like that or generate fake names >>> >> > from geometry like "1920x1080+0+0", "2560x1440+1920+16". >>> >>> It would be more usefulr to use the underlying device name, like on other >>> platforms. >> >> It doesn’t look like macOS gives displays any sort of human readable >> name. The closest I can find is the monitor’s make and model, which >> appears to be lifted directly from the device driver. I expect if you >> have two identical monitors then it will be the same for both. >> > > 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. 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). AndyM