Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Linux雙螢幕實戰:NVIDIA顯卡雙VGA輸出配置全記錄

編輯:Linux 教學

Windows下雙螢幕配置只需驅動介面點點滑鼠,Linux早期需手寫xorg.conf。本文以Fedora Core 3 + NVIDIA GeForce4 MX440(雙VGA)為例,記錄實戰配置過程,原理適用於現代發佈版。

硬體環境

  • 顯卡:GeForce4 MX440 8X,雙VGA輸出
  • 螢幕:TCL 15" CRT(左)、EMC 15" CRT(右)
  • 作業系統:Fedora Core 3
  • 驅動:NVIDIA-Linux-x86-1.0-7167-pkg1.run

步驟1:確認螢幕編號順序

在Windows「顯示屬性 → 設定 → 識別」查看編號:1號=TCL(左)、2號=EMC(右)。Linux配置需對應此物理順序。

步驟2:下載對應架構驅動

  • IA32:32位Intel/AMD(Pentium 4、Athlon XP等)
  • IA64:Intel Itanium
  • AMD64/EM64T:64位AMD64/Intel EM64T

本例CPU為Pentium 4 2.4C,選Linux IA32。

步驟3:安裝NVIDIA專有驅動

  1. 切換至文字模式:init 3
  2. 停止X Server:service xfs stop(或init 3已含)
  3. 執行安裝器:sh NVIDIA-Linux-x86-1.0-7167-pkg1.run
  4. 接受授權、編譯核心模組、自動修改xorg.conf。

步驟4:配置TwinView雙螢幕

編輯/etc/X11/xorg.conf,在Device區段加入:

Option "TwinView" "true"
Option "TwinViewOrientation" "RightOf"   # 第二螢幕在右側
Option "MetaModes" "1024x768,1024x768; 800x600,800x600"
Option "SecondMonitorHorizSync" "30-70"
Option "SecondMonitorVertRefresh" "50-160"
Option "ConnectedMonitor" "CRT, CRT"

MetaModes定義各螢幕解析度組合,分號分隔多種模式。

步驟5:重啟X驗證

startx
# 或 init 5

成功後可見桌面橫跨兩螢幕,滑鼠游標自由穿梭,視窗最大化可佔滿單螢幕。

常見問題排查

  • 第二螢幕黑屏:檢查ConnectedMonitor、MetaModes解析度是否超出螢幕支援範圍。
  • 解析度錯誤:手動添加ModeLine或使用xrandr動態調整。
  • 驅動版本不符:核心升級後需重新編譯安裝NVIDIA驅動(DKMS可自動化)。

現代化配置

現代發佈版(Fedora 38+、Ubuntu 22.04+)採用xrandr + nvidia-settings圖形工具,無需手編xorg.conf。Wayland會話下NVIDIA專有驅動亦支援多螢幕,體驗已大幅簡化。

雙螢幕擴展視野,對程式開發、文檔對照、多任務處理效率提升顯著,值得每位Linux使用者嘗試。

Copyright © Windows教程網 All Rights Reserved