<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
<div id="smartTemplate4-template">
<p>Any hints at all on this?<br>
</p>
</div>
<br>
<div class="moz-signature"><i>--Regards, Aleksei</i>
</div>
<br>
<div id="smartTemplate4-quoteHeader">
<hr><br>
<b>From:</b> Aleksei<br>
<b>Sent:</b> Wednesday, October 26, 2016 7:17PM<br>
<b>To:</b> Xorg<br>
<b>Subject:</b> Config to be able to switch X output between 2
video cards via ARandR/xrandr</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Hi,<br>
My hardware setup is 2 video cards (1 integrated Intel, 1 discrete
Nvidia). Intel is connected to a monitor via HDMI, Nvidia is
connected to the same monitor via DVI. There's also internal monitor
hard-wired to Intel via eDP-1 output (you can see it in attached
files).<br>
<br>
I want to have 2 available outputs in ARandR so I can e.g. switch X
output from (Intel->HDMI) to (Nvidia->DVI) and then manually
choose input port (DVI/HDMI) on the hardware monitor.<br>
<br>
I'm starting X with just startx - disabled display manager to
eliminate it as a factor.<br>
<br>
Here's my lspci output:<br>
[username@arch ~]$ lspci | grep VGA<br>
00:02.0 VGA compatible controller: Intel Corporation HD Graphics
5500 (rev 09)<br>
02:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce
GTX 1060] (rev a1)<br>
<br>
After reading various Xorg manuals I came up with attached Xorg
config. Some options are adopted from nvidia-xconfig output. I have
2 entries for monitors, because I want it to run at 144Hz when
signal comes from Nvidia and at 60Hz when signal comes from Intel
(Intel card can't output 144Hz).<br>
<br>
This config behaves as follows:<br>
<ol>
<li>On boot video output (with text tty login) goes to
Intel->HDMI</li>
<li>I log in, run startx, HDMI screen goes black (but there's a
HDMI signal - monitor does not power down)</li>
<li>After switching input port to DVI on the monitor I see my
usual Openbox session<br>
</li>
</ol>
The problem is that ARandR shows only DVI-D-0 as selectable output.
Attached are xrandr outputs for various queries. Apparently outputs
to Intel are "active" (marked with "*"), but I get only blank screen
on them.<br>
<br>
What should be fixed with this config (or something else) to be able
to switch X output between (Intel->HDMI) and (Nvidia->DVI)?<br>
<br>
<div class="moz-signature">-- <br>
<i>--Regards, Aleksei</i> </div>
<br>
</body>
</html>