Xorg.conf 不起作用

Xorg.conf 不起作用

我正在尝试使用 Nvidia X 服务器设置中的“保存到 X 配置文件”选项保存我的分辨率/刷新率配置。它会在 /etc/X11 目录中生成一个 xorg.conf 文件。以下是 xorg.conf:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 367.35  (buildd@lgw01-18)  Tue Aug  9 10:11:49 UTC 2016

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 375.66  (buildmeister@swio-display-x86-rhel47-06)  Mon May  1 15:45:32 PDT 2017

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

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
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: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG Electronics M227WAP"
    HorizSync       28.0 - 83.0
    VertRefresh     48.0 - 61.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 750 Ti"
EndSection

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

我们如何才能看到Section "Screen",我有这一行:

 Option         "metamodes" "1920x1080_60_2 +0+0"

但是每次我重启电脑(操作系统:Ubuntu 17.04 LTS)时,分辨率和刷新率都会设置为“自动”。这个“_60_2”元模式对我来说很不一样,那么我想知道如何让它(xorg.conf)工作。

答案1

正如我们聊过的那样,有时 prime 不支持设置刷新率。

https://devtalk.nvidia.com/default/topic/982558/setting-default-refresh-rate/

您必须按照以下文章设置屏幕分辨率和可用刷新率。

如何查看/更改屏幕刷新率或显示器频率?

相关内容