Config to be able to switch X output between 2 video cards via ARandR/xrandr

Aleksei alex3kov at zoho.com
Mon Oct 31 07:10:02 UTC 2016


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 at 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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg/attachments/20161031/43de901c/attachment.html>


More information about the xorg mailing list