萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> Linux 教學

Ubuntu 調整螢幕解析度與重新整理率?cvt 產生 Modeline + xorg.conf 手動配置

Ubuntu 安裝後預設解析度過低 (如 800×600),需手動產生 Modeline 並寫入 /etc/X11/xorg.conf 指定目標解析度與重新整理率。

設定步驟

  1. 產生 Modeline:
    cvt 1280 1024 75
    輸出範例:
    Modeline "1280x1024_75.00" 138.75 1280 1368 1504 1728 1024 1027 1034 1072 -hsync +vsync
    複製紅字部分。
  2. 編輯/建立 xorg.conf:
    sudo gedit /etc/X11/xorg.conf
  3. 貼入以下內容 (紅字依 cvt 輸出修正):
    Section "Monitor"
        Identifier "Configured Monitor"
        Modeline "1280x1024_75.00" 138.75 1280 1368 1504 1728 1024 1027 1034 1072 -hsync +vsync
        Option "PreferredMode" "1280x1024_75.00"
    EndSection
    
    Section "Screen"
        Identifier "Default Screen"
        Monitor "Configured Monitor"
        Device "Configured Video Device"
    EndSection
    
    Section "Device"
        Identifier "Configured Video Device"
    EndSection
    
  4. 存檔重開機,解析度與重新整理率即生效。

核心關鍵在 cvt 指令產生正確 Modeline 參數。

copyright © 萬盛學電腦網 all rights reserved