Alexander88207
Enthusiast
But maybe everyone take a step back .... a sip of an adult beverage.
I am normally also a person of peace, but this is not the first time from him.
But maybe everyone take a step back .... a sip of an adult beverage.
Maybe an HDMI switch then? also if one of the screens has a second hdmi or dvi input you can switch between using the OSD or one of the buttons should work as input selector.
forums.developer.nvidia.com
That’s why you waste everybody’s time here not having basic technical knowledge even how you pc is built. For example my motherboard can use Intel cpu with graphics chip built in, and I have HDMI, Displayport and D-sub outputs on motherboard(to use with that intel cpu built in graphics). If I want to solve your “problem”, I would just connect two monitors to my motherboard. Second monitor is connect with other cable to nvidia card so by switching inputs on that one I could use it as designated VM monitor.Sorry,I didn't understand what you mean with "more than one output on his motherboard" ; at school I've chosen another area,not the it,I'm sorry. But anyway,I like the it. My second monitor is very old.
From my experience Xorg should do the heavy lifting these days by itself, meaning Xorg should detect all supported cards and screens by it self, so there is no single xorg.conf needed as back in the days. There is actually a very good guide here in the forum: HOWTO: Setup Xorg with NVIDIA's driver .
I would start with that guide and go from there.
My workstation: 2x 24" IPS ilyama screens connected to a docking station on top a Lenovo x270 Gen 1 and FreeBSD 12.3-p5 (started with FreeBSD 10.x if I remember correctly). This has been running in that configuration since 2018 (24/7 365) and I experienced no issues at all.
Not sure if the NVidia driver will actually work in combination with other video cards. The NVidia driver uses a couple of modified Xorg libraries, those probably conflict with the AMD/Intel driver that uses the original Xorg libraries.
That is a good point SirDice. I'm hoping that if there is a conflict the packages/ports would be marked with CONFLICT so you can't shoot yourself in the foot.
Its not needed because NVIDIA xorg libs dont confilct with the normal ones.
They do have all -nvida or _nvidia at the end and both (mesa and nvidia) are using graphics/libglvnd.
XFCE latest binary package available.which desktop manager are you using ?
export DISPLAY=:0.0 #localhost 1st screen
export DISPLAY=:1.0 #localhost 2nd screen
Section "ServerLayout"
Identifier "Layout0"
Option "Xinerama" "on"
Option "Clone" "off"
# You would need one screen for each monitor
Screen 0 "Screen0"
Screen 1 "Screen1" RightOf "Screen0"
EndSection
Section "Files"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/share/fonts/misc/"
FontPath "/usr/local/share/fonts/TTF/"
FontPath "/usr/local/share/fonts/OTF/"
FontPath "/usr/local/share/fonts/Type1/"
FontPath "/usr/local/share/fonts/100dpi/"
FontPath "/usr/local/share/fonts/75dpi/"
FontPath "catalogue:/usr/local/etc/X11/fontpath.d"
EndSection
Section "Module"
Load "glx"
Load "glxserver_nvidia"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
Identifier "Device0"
Driver "intel"
# Actual PCI location of first card/gpu
BusID "PCI:0:2:0"
# Actual connector - as reported by /sys/class/drm/card0-xx (except HDMI, which is HDMI-x instead of HDMI-A-x)
Option "ZaphodHeads" "HDMI-1"
# Screen number for that PCI device, i.e. 0, 1, etc.
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
# Actual PCI location of first card/gpu
BusID "PCI:2:0:0"
# Actual connector - as reported by /sys/class/drm/card0-xx (except HDMI, which is HDMI-x instead of HDMI-A-x)
Option "ZaphodHeads" "HDMI-2"
# Screen number for that PCI device, i.e. 0, 1, etc.
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
XFCE latest binary package available.
There is basically two ways to have multiple screens:
A) Each screen got it’s own Xserver. If u want to display a window, the environment variable DISPLAY needs to be properly set:
Code:export DISPLAY=:0.0 #localhost 1st screen export DISPLAY=:1.0 #localhost 2nd screen
Is this correct ? because it seems to me that the value of DISPLAY is repeated,so since there is one only variable,it always assumes the value 1.0. Don't forget that I have two screens,so there should be at least two variables called DISPLAY1 and DISPLAY2 ? Here the problem could be that I can't open a terminal on the monitor 2,so I can't set the DISPLAY value to 1.0 there.
export DISPLAY=:1.0
xterm & # should appear on the 2nd screen
X -configure