I’ve got a server with 8xK40’s in it.
I want to use one of them to create 2x headless screens, so I can remote into the server, and maximize those two screens onto my local screens. They need to work together, as if they were and single desktop, as I’m doing CAD-like software on it (alas, I need to be able to drag windows across screens).
If I do it on a local desktop with heads, the following configuration works just fine:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Ancor Communications Inc ASUS VG278"
HorizSync 24.0 - 140.0
VertRefresh 50.0 - 122.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX TITAN"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "DVI-I-1: nvidia-auto-select +0+0, DVI-D-0: nvidia-auto-select +1920+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
However, trying something similar on the server, doesn’t work:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 24.0 - 140.0
VertRefresh 50.0 - 122.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Tesla K40m"
BusID "PCI:13:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "UseDisplayDevice" "DVI-I-1, DVI-D-0"
Option "CustomEDID" "DVI-I-1:/etc/X11/edid/1920x1080.bin; DVI-D-0:/etc/X11/edid/1920x1080.bin"
Option "metamodes" "DVI-I-1: nvidia-auto-select +0+0, DVI-D-0: nvidia-auto-select +1920+0"
Option "nvidiaXineramaInfoOrder" "DVI-I-1"
#Option "TwinViewXineramaInfoOrder" "DVI-I-1"
#Option "TwinViewXineramaInfoOverride" "1920x1080+0+0, 1920x1080+1920+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "RANDR" "Enable"
EndSection
If I start with the configuration above, I get a default 640x480 screen. If I uncomment the TwinView lines above, i get the correct size (3840x1080, for 2x 1920x1080), however, it still shows up as a single screen in for example TeamViewer (which shows 2 screens for the non-headless configuration).
Any ideas how I can make headless dual-screen work properly/same-as/identical-to as if it had heads?
Also, is it possible to set that up with various screen sizes as well, and not just two uniform screens?
Thanks!