[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: Config to be able to switch X output between 2 video cards via ARandR/xrandr
From: Aleksei <alex3kov () zoho ! com>
Date: 2016-10-31 7:10:02
Message-ID: 382a42fc-99ad-9477-0f9c-a48bc33dffe5 () zoho ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Any hints at all on this?
/--Regards, Aleksei/
------------------------------------------------------------------------
*From:* Aleksei
*Sent:* Wednesday, October 26, 2016 7:17PM
*To:* Xorg
*Subject:* Config to be able to switch X output between 2 video cards
via ARandR/xrandr
Hi,
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).
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.
I'm starting X with just startx - disabled display manager to eliminate
it as a factor.
Here's my lspci output:
[username@arch ~]$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500
(rev 09)
02:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX
1060] (rev a1)
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).
This config behaves as follows:
1. On boot video output (with text tty login) goes to Intel->HDMI
2. I log in, run startx, HDMI screen goes black (but there's a HDMI
signal - monitor does not power down)
3. After switching input port to DVI on the monitor I see my usual
Openbox session
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.
What should be fixed with this config (or something else) to be able to
switch X output between (Intel->HDMI) and (Nvidia->DVI)?
--
/--Regards, Aleksei/
[Attachment #5 (text/html)]
<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>
[Attachment #6 (text/plain)]
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic