如何设置具有 3 个显示器的 Linux 机器的教程?

如何设置具有 3 个显示器的 Linux 机器的教程?

您能否提供一个最新教程的链接,用于设置带有 3 个显示器的 Linux?具体来说,我想设置带有 3 个显示器的 2 个不同的 nvidia 显卡。我已经可以在 1 个显卡上设置 2 个显示器,所以我对这些教程不感兴趣。

答案1

我使用 xinerama 和两块 Nvidia gfx 卡运行三显示器设置。这适用于 X.org 1.9.4。看看我的 xorg.conf:

Section "ServerLayout"
Identifier     "X.org Configured"
Option      "Clone"     "off"
Option      "Xinerama"  "on"
Screen      0  "Screen0"
Screen      1  "Screen1" RightOf "Screen0"
Screen      2  "Screen2" LeftOf "Screen0"
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
    Option      "DontZap"       "false"
EndSection

Section "Files"
ModulePath   "/usr/lib/xorg/modules"
FontPath     "/usr/share/fonts/misc"
FontPath     "/usr/share/fonts/100dpi:unscaled"
FontPath     "/usr/share/fonts/75dpi:unscaled"
FontPath     "/usr/share/fonts/TTF"
FontPath     "/usr/share/fonts/Type1"
FontPath     "/usr/share/fonts/local"
EndSection

Section "Module"
Load  "record"
Load  "extmod"
Load  "dbe"
Load  "dri2"
Load  "dri"
Load  "glx"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
Option      "XkbLayout" "gb"
Option      "XkbOptions" "terminate:ctrl_alt_bksp" 
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option      "Protocol" "auto"
Option      "Device" "/dev/input/mice"
Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
Option       "DPMS"
EndSection

Section "Monitor"
Identifier   "Monitor1"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
Option       "DPMS"
EndSection

Section "Monitor"
Identifier   "Monitor2"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
Option       "DPMS"
EndSection



Section "Device"
Identifier  "Card0"
Driver      "nvidia"
VendorName  "nVidia Corporation"
BoardName   "G80 [GeForce 8800 GTS]"
BusID       "PCI:1:0:0"
Option      "NoLogo"    "1"
Option      "RenderAccel"   "True"
Screen      0
EndSection

Section "Device"
Identifier  "Card1"
Driver      "nvidia"
VendorName  "nVidia Corporation"
BoardName   "G80 [GeForce 8800 GTS]"
BusID       "PCI:1:0:0"
Option      "NoLogo"    "1"
Option      "RenderAccel"   "True"
Screen      1
EndSection

Section "Device"
Identifier  "Card2"
Driver      "nvidia"
VendorName  "nVidia Corporation"
BoardName   "G92 [GeForce 8800 GTS 512]"
BusID       "PCI:4:0:0"
Option      "NoLogo"    "1"
Option      "RenderAccel"   "True"
Screen      0
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
Option     "Metamodes" "1680x1050"
SubSection "Display"
    Depth     24
    Modes     "1680x1050"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device     "Card1"
Monitor    "Monitor1"
Option     "Metamodes" "1680x1050"
SubSection "Display"
    Depth     24
    Modes     "1680x1050"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen2"
Device     "Card2"
Monitor    "Monitor2"
Option     "Metamodes" "1680x1050"
SubSection "Display"
    Depth     24
    Modes     "1680x1050"
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

是的,我知道 Xinerama 已经过时了,所有酷孩子都应该使用 xrandr。好吧,如果有人能向我展示一个有效的 Xrandr 配置,我会立即更换。

另一个解决方案是使用多路复用显示器的硬件装置。虽然昂贵,但可以让你运行 SLI/xrandr/etc,而不是 Xinerama。小玩意儿在这里

答案2

如果您拥有足够现代的 Linux 安装,以及相当新的 nvidia 卡和驱动程序(我在工作时(ubuntu)有 185 个,在家里(Fedora12)有 190 个),那么您已经完成了最困难的部分。

您现在需要做的就是安装 nvidia-settings 包(yum install nvidia-settings),重新启动并插入新卡和显示器。

然后以 root 身份运行 nvidia-settings。

您的两个 GPU 都将(应该)与各自连接的显示器一起列出。

在“X 服务器显示配置”下,您将看到所有三个显示器,但其中一个可能被禁用。您可以通过先选择该屏幕在配置行上启用它。您还可以将屏幕放置在您想要的位置(左、右、顶部、底部……无论什么)。

注意:据我所知,使用两张独立的卡,您必须使用 Xinerama 或独立的 x 显示器。(在 SLI 设置中,您可能会在双视图中运行两个以上的显示器。我不确定该设置,因为我从未使用过它。我运行了两张没有 SLI 的卡)。

Xinerama 不允许合成 X 显示(没有精美的 3D 窗口效果)以及您在使用 Xinerama 时可能遇到的任何其他问题。

您不必再直接编辑 xorg.conf。

相关内容