centos 上的 Nvidia 显卡无法设置分辨率

centos 上的 Nvidia 显卡无法设置分辨率

我有一台带有 nvidia NVS 315 显卡的戴尔 T3620 工作站。

我使用以下命令安装了显卡驱动程序:

yum remove xorg-x11-drv-nouveau*
yum install nvidia-x11-drv.x86_64 nvidia-x11-drv-32bit.x86_64
reboot

重新启动后,我可以运行 nvidia-settings gui 工具,但无法更改分辨率,最高分辨率为 1024x768,但我的 LCD 支持最高 1600x900。我的液晶显示器只支持VGA端口,所以我使用了DVI转VGA转换器。

xorg.conf 是这样的:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 375.26  (buildmeister@swio-display-x86-rhel47-01)  Thu Dec  8 19:06:44 PST 2016

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

Section "Files"
    FontPath        "/usr/share/fonts/default/Type1"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    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-0"
    HorizSync       28.0 - 55.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVS 315"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "1024x768 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

答案1

您可以nvidia-xconfig从终端使用 , 。nvidia-xconfig会找到X配置文件并修改它以使用NVIDIA X驱动程序。在大多数情况下,当安装程序询问是否应该运行它时,您可以简单地回答“是”。如果稍后需要重新配置 X 服务器,可以nvidia-xconfig从终端再次运行。nvidia-xconfig将在修改配置文件之前对其进行备份。

请注意,必须重新启动 X 服务器才能使其配置文件的任何更改生效。

相关内容