From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Psionic K Newsgroups: gmane.emacs.help Subject: multiple monitor detection Date: Mon, 21 Oct 2024 15:05:01 +0900 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15787"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 21 08:05:54 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t2lYA-0003yS-MW for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Oct 2024 08:05:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2lXd-0004dn-NJ; Mon, 21 Oct 2024 02:05:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2lXZ-0004cg-OZ for help-gnu-emacs@gnu.org; Mon, 21 Oct 2024 02:05:17 -0400 Original-Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2lXX-00062G-NK for help-gnu-emacs@gnu.org; Mon, 21 Oct 2024 02:05:17 -0400 Original-Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-e29756dc019so3670307276.3 for ; Sun, 20 Oct 2024 23:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=positron.solutions; s=google; t=1729490712; x=1730095512; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ILWsWfdwd1xN66wvsOAEncH+BBojHqM7S5RCAI+P8sM=; b=eTSSvUYtNrTIFb7ISQ3TPKVN+FTfsMq6UE4wEQf/wdNu20kbNtYUCxUzaAvzLfckl8 e1dc2olauF5QPuD7DiO72tPKlhlowy1GI+tGBGIvHYeNoY7eoFkIgJBm48odg0gwf/7f v+llSwkS0sITE6aSvV1r0eAYkukaupqDwH036NUfhUcqPFLe9XauCy6OdVsP4EvvUYuh EITxE3y1iiJ94VLk8cN1UL+AYQ4zhAROrASkKzipM8VYdWY5W1yVveNfMnNheTUw+JOv HKith0QAeCcQIID+eVx2yrgOxUpgF7h+Jes3vwO0Z/9gypImwLKJr7gZDBNppiDQoxvr +Hsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729490712; x=1730095512; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ILWsWfdwd1xN66wvsOAEncH+BBojHqM7S5RCAI+P8sM=; b=SkEF1GNM6bon7N1qdq0uueulJcxu8LuWXFBpApyz8xXuGiF6THz9dAg9L8sSRh9eZ0 vmgQpNs6f40ISmiOzC32NkcjmRudQeL1M1QvAVX7nDC71zqw/lSfXiTytlr2CwqrfANv vtIWiLcsBB/yPUJm0Rx5xlMhUkx6wjiyj8DjKEvDBkYK/lnPVoXWOnDbh7n3PKRiymJY gxq/HJyB5u3duG29gqddRyKh3J0WbxhzzKBTXPQqQf1KJfnpGs2DSBIOYRz1JnbnHHno FQ/G9OBF5Of5tMMJBnuKdZduFOtO/xmOArjMYKWlDb/ogggZgZzGIMXLO23Vw8AJ6+4+ i2Sg== X-Gm-Message-State: AOJu0YxNgL92gI2JL/x1KlcjOEDq6FIQ93J8GJl5iwkTRmbWIeVTeFs+ bjyTBANkPdnzCE9RSBX1do6SZoHfHN11wxbS512lL189Kdysjkz+groTCFqapPqgmJx9wMYIK4+ m81+u2Aj01Uct5BrQcqPw6WgB9XTujEVggl6fdnQAjFv260881JY= X-Google-Smtp-Source: AGHT+IEyAs9xBiEa1wMsw/ttnhAaZ5eOeyiIij2ZqpL9CnR+bwaD3CbQMhPJN/3YQxCj6rSnfT2/k2+lDDmd0qTSuj8= X-Received: by 2002:a05:6902:120b:b0:e20:2a72:cd7d with SMTP id 3f1490d57ef6-e2bb12efa3dmr10616844276.21.1729490711935; Sun, 20 Oct 2024 23:05:11 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::b30; envelope-from=exec@positron.solutions; helo=mail-yb1-xb30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148198 Archived-At: I was going to add multiple monitor support to the dslide package. I have to physical monitors active now. However `display-monitor-attributes-list` returns the following: (((name . "combined screen") (geometry 0 0 6400 2160) (workarea 6400 2080 0 80) (mm-size 1693 572) (frames #) (source . "fallback"))) When running `xrandr`, xrandr is installed, so I'm not sure why the source is fallback. I restarted Emacs. (30.0.91). Xrandr's output more distinctly shows the two physical monitors: $ xrandr Screen 0: minimum 320 x 200, current 6400 x 2160, maximum 16384 x 16384 eDP connected 2560x1440+3840+0 (normal left inverted right x axis y axis) 309mm x 174mm 2560x1440 60.01*+ 48.01 HDMI-A-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 600mm x 340mm 3840x2160 60.00*+ 50.00 59.94 30.00 30.00 25.00 24.00 29.97 23.98 I'm not sure why the fallback is being used by `display-monitor-attribute-list'. Xrandr is available to `executible-find`. My goal is to detect the physical monitor and allow the user to display dslide presentations on the other physical monitor and switch between them. I'm presently unable to decide how to recognize the two physical monitors without rolling my own solution on top of xrandr.