如何将屏幕分辨率设置为支持的最大分辨率?

如何将屏幕分辨率设置为支持的最大分辨率?

使用 win 7 并获得 1280x1024 的分辨率,而当我安装 Ubuntu 11.04 时获得的分辨率为 1152x864(通过更改 nvidia xorg 文件中的高级选项实现)进入系统设置并得到“监视器未知”。使用 nvidia 8400GS 并使用 173 版本的驱动程序。

xrandr o/p:

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 240, current 1152 x 864, maximum 1152 x 864
default connected 1152x864+0+0 0mm x 0mm
   1024x768       50.0     60.0  
   800x600        51.0     52.0     53.0  
   680x384        54.0     55.0  
   640x480        56.0  
   512x384        57.0  
   400x300        58.0  
   320x240        59.0  
   1152x864       60.0* 

xorg 输出:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 270.29  (buildd@roseapple)  Fri Feb 25 14:43:24 UTC 2011

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: builtin, VertRefresh source: builtin
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-1"
    HorizSync       28.0 - 55.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8400 GS"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "1152x864 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

计划使用 docky 但是分辨率太低,使用起来很浪费。

答案1

在 xorg.conf 中增加 HorizSync 行,如下所示

HorizSync       28.0 - 120.0

用于帮助过去使用 19 英寸 CRT 的日子。(60hz * 1280 列 + 一些回溯等于最低 78 kHz,而不是 55。)

答案2

如果您在文件中进行以下更改,也许可以解决问题/etc/X11/xorg.conf

将这一行添加到该部分Monitor

Option  "PreferredMode" "1280x1024"

从该部分中删除此行Screen

Option  "metamodes" "1152x864 +0+0"

将以下行添加到子部分Display(您可以添加其他分辨率):

Modes   "1280x1024" "1024x768"

然后你必须重新启动xserver

sudo service gdm restart

相关内容