经过搜索我还没有找到解决方案。
我有 2 张 nvidia quadro 295 卡和 3 个显示器,但我无法在多个 GPU 上扩展 twinview。
我安装了最新的 nvidia 专有驱动程序,它们在单 GPU/双显示器上工作正常。我尝试使用 xinerama,但没有成功。
如果可以处理我的多台显示器,我不介意切换到 nouveau 驱动程序,尽管如果可以的话我愿意继续使用 unity 和 compiz)。
答案1
事实证明,Unity 和 Xinerama 不再能很好地协同工作,因为 Xinerama 和 Composition 不能同时运行。直到 rrandr 接管多 GPU 功能,或者直到 twinview 变得更加智能,大多数较新的窗口管理器都无法实现多 GPU(Gnome3 也存在同样的问题)。
我尝试回到 ubuntu classic 来让它工作,但是我厌倦了摆弄它。它会在所有 3 个屏幕上复制相同的屏幕,但不会将它们视为一个大屏幕。遗憾的是,没有关于如何在 xorg.conf 中使其工作的很好的例子。
因此对于任何尝试此操作的人来说,您都是在 Unity/Compiz 方面推搡绳索。您可能可以在 Ubuntu Classic 中让它工作,但要做好战斗的准备。
这真是令人悲哀。如果我能在这个机器上运行 Windows 7,我会使用它并在 VM 中运行 Linux。这就是人们要做的事情,以使这些东西在多 GPU 系统上运行。
答案2
在同事的帮助下我能够让它工作。这是我的 xorg.conf 文件。它需要 gnome2 和专有 nvidia 驱动程序。
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" RightOf "Screen1"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "1"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "Files"
EndSection
Section "Module"
Load "glx"
EndSection
Section "Extensions"
Option "Composite" "Disable"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "HP w2207"
HorizSync 24.0 - 82.0
VertRefresh 48.0 - 76.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "HP w2207"
HorizSync 24.0 - 82.0
VertRefresh 48.0 - 76.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Unknown"
ModelName "HP w2207"
HorizSync 24.0 - 82.0
VertRefresh 48.0 - 76.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro NVS 295"
BusID "PCI:2:0:0"
Screen 0
Option "Rotate" "CCW"
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro NVS 295"
BusID "PCI:2:0:0"
Screen 1
Option "Rotate" "CCW"
EndSection
Section "Device"
Identifier "Device2"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro NVS 295"
BusID "PCI:3:0:0"
Option "Rotate" "CCW"
Screen 0
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Device2"
Monitor "Monitor2"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
答案3
我有 4 个屏幕,连接到 2 个相同的 Nvidia GPU
在 10.04 中,我使用 Xinerama 时一切运行顺畅。但是,升级到 12.04 后,一切都变得一团糟。我安装了 GNOME shell,因为我讨厌 Unity。我使用 GNOME classic。
我能最接近工作的是 TwinView 和 2 X 会话,但 GPU2 显示白色桌面背景,只要我启用 Xinerama,一切都会中断,我必须重新从头开始。
此外,根据 Ubuntu/Nvidia 的心情,nvidia-setting
有时会仅显示 1 个 GPU。其他时候,我会同时显示两个 GPU,然后继续我的设置。
xorg.conf
我使用mv
命令(而不是)打开的一个工作副本cp
,并丢失了我的工作备份
我让所有 4 个和 Xinerama 再次工作。
这是我的 xorg.conf:
#xorg.conf
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 1024
Screen 1 "Screen1" Above "Screen0"
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 "Samsung SyncMaster"
HorizSync 30.0 - 80.0
VertRefresh 55.0 - 75.0
Option "DPMS"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "Samsung SyncMaster"
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro FX 1800"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro FX 1800"
BusID "PCI:32:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "metamodes" "DFP-0: nvidia-auto-select +1920+0, DFP-1: nvidia- auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "1"
Option "metamodes" "DFP-1: nvidia-auto-select +1280+0, DFP-2: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
答案4
你试过跑步吗
sudo nvidia-xconfig
在任何情况下?
我通常发现,如果我无法手动整理出我需要的 nvidia 卡和专有驱动程序,那么通常可以整理出我需要的一切。我只是需要稍后更改显示器的顺序。