Linux-Mint
Linux Mint 19.2 中的雙顯示器設置奇怪問題
我正在使用NVIDIA Corporation GM206 GeForce GTX 960執行****Linux Mint 19.2 Cinnamon ( 4.15.0-70-generic kernel) 。我在雙顯示器設置方面遇到了一個奇怪的問題,包括兩台戴爾 P2212H顯示器,都帶有DVI和VGA埠。當我使用以下配置時,一切正常:
- 第一台顯示器使用DVI-D <-> DVI-D電纜連接到我的 PC。
- 第二台顯示器使用HDMI 到 VGA適配器和VGA <-> VGA電纜連接到我的 PC。
inxi -Gx Graphics: Device-1: NVIDIA GM206 [GeForce GTX 960] vendor: Micro-Star MSI driver: nvidia v: 435.21 bus ID: 01:00.0 Display: x11 server: X.Org 1.19.6 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz, 1920x1080~60Hz OpenGL: renderer: GeForce GTX 960/PCIe/SSE2 v: 4.6.0 NVIDIA 435.21 direct render: Yes
xrandr Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 16384 x 16384 DVI-I-0 disconnected (normal left inverted right x axis y axis) DVI-I-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 531mm x 299mm 1920x1080 60.00*+ 1280x1024 75.02 60.02 1152x864 75.00 1024x768 75.03 60.00 800x600 75.00 60.32 640x480 75.00 59.94 HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm 1920x1080 60.00*+ 59.94 1280x1024 75.02 60.02 1280x720 59.94 1152x864 75.00 1024x768 75.03 60.00 800x600 75.00 60.32 640x480 75.00 59.94 59.93 DP-0 disconnected (normal left inverted right x axis y axis) DP-1 disconnected (normal left inverted right x axis y axis) DP-2 disconnected (normal left inverted right x axis y axis) DP-3 disconnected (normal left inverted right x axis y axis) DP-4 disconnected (normal left inverted right x axis y axis) DP-5 disconnected (normal left inverted right x axis y axis)
雙顯示器設置工作正常,但由於顯示質量存在明顯差異,我購買了HDMI <-> DVI-D電纜。為什麼如果我更換我的 PC 和第二台顯示器之間的電纜,我無法讓雙顯示器設置工作?看起來使用波紋管設置,我的電腦不再能夠檢測到第二台顯示器。
- 第一台顯示器使用DVI-D <-> DVI-D電纜連接到我的 PC。
- 第二台顯示器使用HDMI <-> DVI-D電纜連接到我的電腦。
xrandr Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384 DVI-I-0 disconnected (normal left inverted right x axis y axis) DVI-I-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm 1920x1080 60.00*+ 1280x1024 75.02 60.02 1152x864 75.00 1024x768 75.03 60.00 800x600 75.00 60.32 640x480 75.00 59.94 HDMI-0 disconnected (normal left inverted right x axis y axis) DP-0 disconnected (normal left inverted right x axis y axis) DP-1 disconnected (normal left inverted right x axis y axis) DP-2 disconnected (normal left inverted right x axis y axis) DP-3 disconnected (normal left inverted right x axis y axis) DP-4 disconnected (normal left inverted right x axis y axis) DP-5 disconnected (normal left inverted right x axis y axis)
我可以確認HDMI <-> DVI-D電纜正常工作,因為我在另一台執行 Windows 10 的 PC 上對其進行了測試。有什麼建議嗎?
謝謝,克里斯
我可以使用 Mint 論壇的 @roblm 建議解決此問題。
sudo touch /etc/X11/xorg.conf
打開文件進行編輯:
xed admin:///etc/X11/xorg.conf
添加這些行:
Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0 0 EndSection Section "Monitor" Identifier "Monitor0" EndSection Section "Device" Identifier "Device0" Driver "nvidia" BusID "PCI:1:0:0" Option "ConnectedMonitor" "DFP, DFP" EndSection Section "Screen" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 EndSection