You are not logged in.
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 wired to Intel via eDP-1 output (you can see it in outputs below).
What I want to be able to do is 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 on the hardware monitor.
I'm starting X with just startx - disabled lightdm to eliminate it as a factor.
After reading Multihead article here's Xorg config I'm currently at. Some options are adopted from nvidia-xconfig output. I have 2 entries for monitors, because I want it to run at 144Hz when signal is from Nvidia and at 60Hz when signal is from Intel (Intel card can't output 144Hz).
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "ServerLayout"
Identifier "layout"
Screen 0 "Screen0_nvidia" 0 0
# Inactive "IntelHD5500"
Screen 1 "Screen1_intel" RightOf "Screen0_nvidia"
Option "Xinerama" "0"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor144Hz"
VendorName "Unknown"
ModelName "AOC G2460"
HorizSync 30.0 - 160.0
VertRefresh 50.0 - 146.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "MonitorAuto"
Option "DPMS"
EndSection
Section "Device"
Identifier "GTX1060"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 1060 6GB"
BusID "PCI:2:0:0"
EndSection
Section "Device"
Identifier "IntelHD5500"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0_nvidia"
Device "GTX1060"
Monitor "Monitor144Hz"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "1920x1080_144 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1_intel"
Device "IntelHD5500"
Monitor "MonitorAuto"
SubSection "Display"
Depth 24
EndSubSection
EndSection
lspci:
[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)
It behaves as follows:
On Arch boot video output (with tty2 login) goes to Intel->HDMI
I log in to tty2, run startx, HDMI screen goes black (but there's a HDMI signal - monitor does not power down)
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. Here's what xrandr shows:
[username@arch ~]$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x1b9 cap: 0x1, Source Output crtcs: 4 outputs: 8 associated providers: 0 name:NVIDIA-0
[username@arch ~]$ xrandr --screen 0
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DVI-D-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
1920x1080 60.00 + 144.00* 119.98 99.93
1680x1050 59.88
1440x900 59.90
1280x1024 75.02 60.02
1280x720 59.86
1024x768 119.99 100.00 75.03 70.07 60.00
800x600 119.97 100.00 75.00 72.19 60.32 56.25
640x480 120.01 99.99 75.00 72.81 59.94
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
[username@arch ~]$ xrandr --screen 1
Screen 1: minimum 320 x 200, current 3286 x 1080, maximum 8192 x 8192
eDP-1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
1366x768 60.07*+ 48.04
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
800x600 60.00 60.32 56.25
700x525 59.98
640x512 60.02
640x480 60.00 59.94
512x384 60.00
400x300 60.32 56.34
320x240 60.05
HDMI-1 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 531mm x 299mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x720 60.00 50.00 59.94
1024x768 119.99 99.97 75.03 70.07 60.00
832x624 74.55
800x600 119.97 99.99 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 119.99 100.00 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
So apparently outputs to Intel are "active", but I get only blank screen on them.
I'm probably missing some basic understanding of X. What should be fixed with this config to be able to switch X outputs between (Intel->HDMI) and (Nvidia->DVI)?
Last edited by nesk (2016-10-21 13:30:23)
Offline