紅旗 Linux 6.0 SP1 桌面環境下,透過編輯 X11 設定檔 /etc/X11/xorg.conf 修改 Modes 參數可調整螢幕解析度。本文提供具體修改位置與生效步驟。
vi /etc/X11/xorg.conf
Section "Screen" 區塊:Section "Screen"
Identifier "Screen0"
Device "Card0 for screen 0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "800x600" # 目標修改行
EndSubSection
EndSection
Modes "800x600" 修改為所需解析度,如:Modes "1024x768"
# 或多解析度備選 (優先使用第一個)
Modes "1280x1024" "1024x768" "800x600"
init 3; init 5) 驗證生效。
xrandr --output HDMI-1 --mode 1920x1080 (無需重啟 X)。/etc/X11/xorg.conf.d/10-monitor.conf 片段檔而非修改主檔。/var/log/Xorg.0.log 確認模式驗證失敗原因 (頻率超範圍、顯示卡不支援)。Monitor 區塊設定 PreferredMode。