由于某种原因,我似乎无法将 Unity3D 与以下 xorg.conf 文件一起使用:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" RightOf "Screen1"
Screen 3 "Screen3" RightOf "Screen2"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "1"
EndSection
Section "Files"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Acer AL1916"
HorizSync 31.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "Acer AL1916"
HorizSync 31.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Unknown"
ModelName "Acer AL1916"
HorizSync 31.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "Monitor3"
VendorName "Unknown"
ModelName "Acer AL1916"
HorizSync 31.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 520"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 520"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Device"
Identifier "Device2"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 520"
BusID "PCI:6:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device3"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 520"
BusID "PCI:6:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "CRT-0: 1280x1024_75 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "CRT-1: 1280x1024_75 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Device2"
Monitor "Monitor2"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "CRT-0: 1280x1024_75 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen3"
Device "Device3"
Monitor "Monitor3"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "CRT-1: 1280x1024_75 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
目前,如果我选择 Unity3D,它只会显示在 1 个屏幕上,如果我选择 Unity2D,它会将 1 个屏幕镜像到所有屏幕,所以我不得不求助于 gnome-classic 来让所有 4 个屏幕与上述 xorg.conf 一起工作。
经过进一步测试,我发现如果只将 1 或 2 个显示器连接到单个显卡,Unity3D 就可以正常工作。如果我将单个显示器连接到每个显卡,Unity3D 将无法工作,它会降为 Unity2D。如果我连接 3 个显示器,即卡 1 上有 2 个显示器,卡 2 上有 1 个显示器,它会降为 Unity2D。如果我将 2 个显示器分别连接到每个显卡,它会再次降为 Unity2D。
所以看起来 Unity3D 只适用于单张显卡......
如何修复此问题?
答案1
在 Unity 3d 中尝试使用多台显示器时,我发现显示器显示的虚拟桌面的最大宽度不能超过 2048。我认为从上到下的最大值也是 2048。我认为这与使用 compiz 完成的合成有关。为了显示我的两台显示器,我必须将它们一个接一个地放置。
如果您想要 Unity 3D,那么在上面有两个显示器、在下面有两个显示器是否合适(并且有帮助)?