nvidia-xconfig:由 nvidia-xconfig 生成的 X 配置文件

nvidia-xconfig:由 nvidia-xconfig 生成的 X 配置文件
  • 全新安装 Ubuntu 20 后,使用显示器(LG w2363d)以 120hz 和 1920x1080 搭配 nouveau 驱动程序(GTX 1060)和主板(Sabertooth 990fx)一切正常,但当我安装任何 nvidia 驱动程序(试过 450、455 beta、440、418、390)时,我的分辨率设置为 1024x768,刷新率为 85Hz(1920x1080 不可用,最高为 1600x1200 @ 60Hz)
  • 如果不是因为 tensorflow,我会坚持使用 nouveau 驱动程序,因此我确实需要安装它。
  • 我以某种方式设法将 1920x1080 作为可用分辨率,但最高为 60Hz。
  • 我尝试了以下方法将刷新率提高到 120Hz:
  1. xrandr --newmode "1920x1080_120.00" 369.50 1920 2080 2288 2656 1080 1083 1088 1160 -hsync +vsync
    但当我申请时
    xrandr --addmode DVI-D-0 1920x1080_120.00
    我得到了
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  18 (RRAddOutputMode)
  Serial number of failed request:  41
  Current serial number in output stream:  42

进一步阅读后,我发现当安装了 nvidia 驱动程序时,xrandr 根本不起作用,我应该坚持修改 xorg 文件以强制应用高于标准的刷新率。

  1. 尝试生成模式行,带 -r,不带 r,不同的分辨率和刷新率,但没有成功
    尝试从显示器网站规格列表中​​设置 HorizSync 和 VertRefresh
    尝试了不同的设备和屏幕设置,但都不起作用
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 450.80.02

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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"
    Identifier     "Monitor0"
    VendorName     "GSM"
    ModelName      "W2363D"
    Option         "DPMS"
    Option         "PreferredMode" "1920x1080"
    Option         "TargetRefresh" "120"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 120.0
    Modeline       "1920x1080R"  285.25  1920 1968 2000 2080  1080 1083 1088 1144 +hsync -vsync
    Option         "PreferredMode" "1920x1080R"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option "ModeValidation" "DVI-D-0: AllowNonEdidModes"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "DVI-D-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
#    Option         "ModeValidation" "NoVesaModes, NoXServerModes"
    Option         "ExactModeTimingsDVI" "True"
    SubSection     "Display"
        Depth       24
        Modes       "1920x1080_119.98"
    EndSubSection
EndSection
  1. 在monitors.xml中修改刷新率仍然没有变化
<monitors version="2">
  <configuration>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>DVI-D-1</connector>
          <vendor>GSM</vendor>
          <product>W2363D</product>
          <serial>0000000000</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>119.982177734375</rate>
        </mode>
      </monitor>
    </logicalmonitor>
  </configuration>
  <configuration>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>DVI-D-0</connector>
          <vendor>unknown</vendor>
          <product>unknown</product>
          <serial>unknown</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>59.933879852294922</rate>
        </mode>
      </monitor>
    </logicalmonitor>
  </configuration>
</monitors>

  1. 在 nvidia x 服务器设置中,获取 EDID 变灰,如果我使用 DVI-D 电缆,连接就是单链路: 图像 - Nvidia x 服务器设置
  1. 通过运行,get-edid | parse-edid我得到了以下信息:
    请注意,使用 nouveau 驱动程序,我得到了相同的输出,因此我认为如果校验和失败,就不会出现问题
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 1
No EDID on bus 2
No EDID on bus 3
No EDID on bus 4
No EDID on bus 5
No EDID on bus 6
No EDID on bus 8
No EDID on bus 9
No EDID on bus 10
No EDID on bus 11
2 potential busses found: 0 7
Will scan through until the first EDID is found.
Pass a bus number as an option to this program to go only for that one.
Bus 0 doesn't really have an EDID...
256-byte EDID successfully retrieved from i2c bus 7
Looks like i2c was successful. Have a good day.
Checksum Correct

Section "Monitor"
    Identifier "W2363D"
    ModelName "W2363D"
    VendorName "GSM"
    # Monitor Manufactured week 3 of 2011
    # EDID version 1.3
    # Digital Display
    DisplaySize 510 280
    Gamma 2.20
    Option "DPMS" "true"
    Horizsync 30-141
    VertRefresh 59-121
    # Maximum pixel clock is 300MHz
    #Not giving standard mode: 1280x1024, 60Hz
    #Not giving standard mode: 1280x1024, 75Hz
    #Not giving standard mode: 1152x864, 60Hz
    #Not giving standard mode: 1680x1050, 60Hz
    #Not giving standard mode: 1280x960, 75Hz
    #Not giving standard mode: 1152x864, 75Hz

    #Extension block found. Parsing...
Extension block checksum failed
  1. 其他值得一提的事情:
  • 我的主板没有安全启动选项
  • 通过双启动运行 Ubuntu,通过 DVI-D 电缆连接到显示器,在 Windows 中它可以在 120Hz 下正常工作,并且在 Ubuntu 中使用 nouveau 驱动程序也可以正常工作。
  • 另一个有趣的事情是,使用 nouveau 驱动程序时,xrandr 中的连接是通过 DVI-D-1 进行的,而当我安装 nvidia 驱动程序时,它会更改为 DVI-D-0。运行也xrandr -s 0正常,但当我尝试屏幕 1 或 2 或 3 而不是 0 时,它会变黑
  • 在 Ubuntu 设置中,在显示中,我得到未知显示(使用 nouveau 或使用 HDMI 时除外)。
  • 当我尝试安装旧版本的 nvidia 驱动程序时,它说找到了一个较新的版本,并且它会安装所有版本,直到最后一个版本(例如,如果我想要 430,它会安装 430、440 和 450)
  • 尝试通过所有可用的方法安装驱动程序。

我希望我没有遗漏任何细节,但我已经尽力解决这个问题了。如果有人知道如何解决这个问题,那就太好了。谢谢!

答案1

这是我的 xorg.conf,位于 /ect/x11,这可能有助于您设置您的 xorg.conf,因为我发现您的 xorg.conf 和我的 xorg.conf 之间有很多差异,至少它可以作为参考

nvidia-xconfig:由 nvidia-xconfig 生成的 X 配置文件

nvidia-xconfig:版本 455.28

nvidia-settings:nvidia-settings 生成的 X 配置文件

nvidia-settings:版本 440.82

nvidia-xconfig:由 nvidia-xconfig 生成的 X 配置文件

nvidia-xconfig:版本 435.21

“服务器布局”部分

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

结束部分

“文件”部分 EndSection

“输入设备”部分

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

结束部分

“输入设备”部分

# generated from default
Identifier     "Keyboard0"
Driver         "kbd"

结束部分

“监控”部分

Identifier     "Monitor0"
VendorName     "Unknown"
ModelName      "Microstep MSI G241"
HorizSync       180.0 - 180.0
VertRefresh     48.0 - 144.0
Option         "DPMS"

结束部分

“设备”部分

Identifier     "Device0"
Driver         "nvidia"
VendorName     "NVIDIA Corporation"
BoardName      "GeForce GTX 1070"
Option         "Coolbits" "13"

结束部分

“屏幕”部分

Identifier     "Screen0"
Device         "Device0"
Monitor        "Monitor0"
DefaultDepth    24
Option         "TripleBuffer" "On"
Option         "Stereo" "0"
Option         "nvidiaXineramaInfoOrder" "DFP-6"
Option         "metamodes" "DP-4: 1920x1080_144 +0+0 {AllowGSYNCCompatible=On}, HDMI-0: 1920x1080_60 +1920+0"
Option         "SLI" "Off"
Option         "MultiGPU" "Off"
Option         "BaseMosaic" "off"
SubSection     "Display"
    Depth       24
EndSubSection

结束部分

相关内容