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 6.0 SP1 修改屏幕分辨率:编辑 xorg.conf 与显示设置工具

編輯:關於 Linux

红旗 Linux 6.0 SP1 如需手动指定屏幕分辨率(如 1024×768),可编辑 /etc/X11/xorg.conf 的 Screen 区段 Modes 行,随后在图形工具中应用并重启验证。

一、编辑 xorg.conf

sudo vim /etc/X11/xorg.conf
# 找到 Section "Screen"
Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth 24
    SubSection "Display"
        Depth   24
        Modes   "800x600"   # 修改此行
    EndSubSection
EndSection

将 Modes "800x600" 修改为所需分辨率,如:

Modes "1024x768" "800x600" "640x480"

建议保留多个模式作为回退,首个为首选。

二、图形工具应用与重启

  1. 打开显示配置工具(系统 → 设置 → 显示)。
  2. 在分辨率下拉菜单选择 1024×768,点击应用。
  3. 重启系统或重启 X 服务(Ctrl+Alt+Backspace 或 systemctl restart display-manager)。

三、现代发行版提示(无 xorg.conf 情况)

当前主流发行版(基于 Kernel Mode Setting)通常不需要 xorg.conf,分辨率由内核 DRM + XRandR 自动协商。若需强制指定,可创建 /etc/X11/xorg.conf.d/10-monitor.conf:

Section "Monitor"
    Identifier "Monitor0"
    Option "PreferredMode" "1024x768"
EndSection

Section "Screen"
    Identifier "Screen0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
        Modes "1024x768"
    EndSubSection
EndSection

xorg.conf Screen 区段示意图

编辑 xorg.conf 的 Modes 行配合图形工具应用,即可在红旗 6.0 SP1 固定屏幕分辨率。现代系统建议优先使用 xrandr 或桌面环境自带显示设置。

Copyright © Windows教程網 All Rights Reserved