安装了 Nvidia 384 驱动程序,屏幕在黑暗背景下闪烁,并且 FPS 较低

安装了 Nvidia 384 驱动程序,屏幕在黑暗背景下闪烁,并且 FPS 较低

因此,我之前安装了 Nvidia 390.12 驱动程序,并想将其恢复为 384.11。我这样做了$ sudo apt install nvidia-384(清除后nvidia-*)并重新启动,结果分辨率只有 3:4。我这样做了,$ xrandr但显示无法检测到我的 DVI 端口:

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768
default connected primary 1024x768+0+0 0mm x 0mm
   1024x768      76.00* 
  1920x1080_144.00 (0x27b) 452.500MHz -HSync +VSync
        h: width  1920 start 2088 end 2296 total 2672 skew    0 clock 169.35KHz
        v: height 1080 start 1083 end 1088 total 1177           clock 143.88Hz

请注意,我cvt 1920 1080 144之前确实创建了一种新模式(我有一个 144Hz 显示器,它与 390 驱动程序一起工作)。

然后我$ xrandr --addmode default 1920x1080_144.00又重复了$ xrandr一遍,得到:

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768
default connected primary 1024x768+0+0 0mm x 0mm
   1024x768      76.00* 
   1920x1080_144.00 143.88

关闭终端并重新打开它,不知何故它现在显示

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1920 x 1080
default connected primary 1024x768+0+0 0mm x 0mm
   1024x768      76.00* 
   1920x1080_144.00 143.88

请注意,最大值已升至 1080p。尝试从显示管理器 GUI 设置模式并得到此结果。

在此处输入图片描述

另外,需要注意的是,为了以防万一,我尝试关闭 UEFI 的安全启动。但没成功。

最后我想检查一下 monitors.xml,发现设置来自“默认”部分。将其更改为 1920 x 1080,并设置刷新率,重新启动,最终变为 1080p。很棒,对吧?好吧,现在在深色背景下,东西似乎有点闪烁。另外,我$ xrandr再次运行:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DVI-D-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+ 144.00   119.98    99.93    84.90    59.94  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x960      60.00  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    66.67    60.00    59.94  
   720x400       70.08  
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)

现在它似乎可以检测到我的 DVI 输出,这很好,尽管我不确定为什么会这样。在此之前我重启了很多次,所以我不认为这是重启的问题。我还按照一些互联网人士的说法安装了nvidia-settingsnvidia-current,以便让它$ nvidia-xconfig工作(仍然无法运行$ nvidia-xconfig— 显示“未找到命令”),所以这可能改变了一些东西。

无论如何,在较暗的背景下(奇怪的是,在白色和中灰色上看不到这一点),屏幕明显闪烁,就像它快速变暗然后恢复正常。然后我尝试$ xrandr -r 144(因为它说我仍然处于 60Hz 状态)。屏幕按预期变黑,然后它弹道然后开始闪烁,颜色很暗,然后恢复正常。它看起来也不像黑屏,更像是屏幕上有一个半透明的黑色覆盖层,快速闪烁。当我说快速时,我的意思是迅速地. 比如,会诱发癫痫。

我惊慌失措地打字(没有看我的屏幕,因为它抽搐了)$ xrandr -r 60然后它恢复正常,我只能看到较暗背景上的轻微闪烁(例如 Discord)。

我检查了 monitors.xml,没错,我的输入的刷新率为 144,所以我不确定它默认为 60 是怎么回事。然后我尝试创建一个刷新率为 144 的新模式,然后将其设置为我的输出模式。然后我的显示器在黑色背景前显示“超出范围”。我硬关机并重新打开它。

现在我决定用一些游戏来测试。我启动了一款通常有 144+ FPS 的游戏(我将其限制在 140,这样就不会出现撕裂)。现在我得到了30-45帧每秒。我已经使用 384 驱动程序和这个精确的设置,没有任何问题——尽管上次我是使用 Nvidia 网站上的 .run 安装的,而不是从包管理器中安装的。

显卡:GTX 1060 6GB

其他信息:

$ lspci|grep VGA
06:00.0 VGA compatible controller: NVIDIA Corporation Device 1c03 (rev a1)

$ xrandr --verbose
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DVI-D-1 connected primary 1920x1080+0+0 (0x67) normal (normal left inverted right x axis y axis) 531mm x 299mm
    Identifier: 0x63
    Timestamp:  2118219
    Subpixel:   unknown
    Gamma:      1.0:1.0:1.0
    Brightness: 1.0
    Clones:    
    CRTC:       0
    CRTCs:      0 1 2 3
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    EDID: 
        00ffffffffffff000469e12401010101
        351a010380351e78ea9de5a654549f26
        0d5054b7ef00714f8180814081c08100
        9500b3000101023a801871382d40582c
        4500132b2100001e000000fd0032961e
        a021000a202020202020000000fc0056
        473234380a20202020202020000000ff
        0047434c4d51533133373137340a01c7
        020104008a4d80a070382c4030203500
        132b2100001afe5b80a0703835403020
        3500132b2100001a866f80a070384040
        30203500132b2100001afc7e80887038
        124018203500132b2100001e00000000
        00000000000000000000000000000000
        00000000000000000000000000000000
        000000000000000000000000000000bb
    dithering depth: auto 
        supported: auto, 6 bpc, 8 bpc
    dithering mode: auto 
        supported: auto, off, static 2x2, dynamic 2x2, temporal
    scaling mode: None 
        supported: None, Full, Center, Full aspect
    color vibrance: 150 
        range: (0, 200)
    vibrant hue: 90 
        range: (0, 180)
    underscan vborder: 0 
        range: (0, 128)
    underscan hborder: 0 
        range: (0, 128)
    underscan: off 
        supported: auto, off, on
    link-status: Good 
        supported: Good, Bad
  1920x1080 (0x67) 148.500MHz +HSync +VSync *current +preferred
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
  1920x1080 (0x68) 325.080MHz +HSync +VSync
        h: width  1920 start 1944 end 1976 total 2056 skew    0 clock 158.11KHz
        v: height 1080 start 1083 end 1088 total 1098           clock 144.00Hz
  1920x1080 (0x69) 285.500MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock 137.26KHz
        v: height 1080 start 1083 end 1088 total 1144           clock 119.98Hz
  1920x1080 (0x6a) 235.500MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock 113.22KHz
        v: height 1080 start 1083 end 1088 total 1133           clock  99.93Hz
  1920x1080 (0x6b) 198.500MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock  95.43KHz
        v: height 1080 start 1083 end 1088 total 1124           clock  84.90Hz
  1920x1080 (0x6c) 148.352MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.43KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  59.94Hz
  1680x1050 (0x6d) 119.000MHz +HSync -VSync
        h: width  1680 start 1728 end 1760 total 1840 skew    0 clock  64.67KHz
        v: height 1050 start 1053 end 1059 total 1080           clock  59.88Hz
  1280x1024 (0x6e) 135.000MHz +HSync +VSync
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock  79.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  75.02Hz
  1280x1024 (0x6f) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1440x900 (0x70) 88.750MHz +HSync -VSync
        h: width  1440 start 1488 end 1520 total 1600 skew    0 clock  55.47KHz
        v: height  900 start  903 end  909 total  926           clock  59.90Hz
  1280x960 (0x71) 108.000MHz +HSync +VSync
        h: width  1280 start 1376 end 1488 total 1800 skew    0 clock  60.00KHz
        v: height  960 start  961 end  964 total 1000           clock  60.00Hz
  1280x800 (0x72) 71.000MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  49.31KHz
        v: height  800 start  803 end  809 total  823           clock  59.91Hz
  1152x864 (0x73) 108.000MHz +HSync +VSync
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock  67.50KHz
        v: height  864 start  865 end  868 total  900           clock  75.00Hz
  1280x720 (0x74) 74.250MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  45.00KHz
        v: height  720 start  725 end  730 total  750           clock  60.00Hz
  1280x720 (0x75) 74.176MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  44.96KHz
        v: height  720 start  725 end  730 total  750           clock  59.94Hz
  1024x768 (0x76) 78.750MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock  60.02KHz
        v: height  768 start  769 end  772 total  800           clock  75.03Hz
  1024x768 (0x77) 75.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1328 skew    0 clock  56.48KHz
        v: height  768 start  771 end  777 total  806           clock  70.07Hz
  1024x768 (0x78) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  832x624 (0x79) 57.284MHz -HSync -VSync
        h: width   832 start  864 end  928 total 1152 skew    0 clock  49.73KHz
        v: height  624 start  625 end  628 total  667           clock  74.55Hz
  800x600 (0x7a) 50.000MHz +HSync +VSync
        h: width   800 start  856 end  976 total 1040 skew    0 clock  48.08KHz
        v: height  600 start  637 end  643 total  666           clock  72.19Hz
  800x600 (0x7b) 49.500MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock  46.88KHz
        v: height  600 start  601 end  604 total  625           clock  75.00Hz
  800x600 (0x7c) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x7d) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  640x480 (0x7e) 31.500MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock  37.50KHz
        v: height  480 start  481 end  484 total  500           clock  75.00Hz
  640x480 (0x7f) 30.240MHz -HSync -VSync
        h: width   640 start  704 end  768 total  864 skew    0 clock  35.00KHz
        v: height  480 start  483 end  486 total  525           clock  66.67Hz
  640x480 (0x80) 25.200MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.50KHz
        v: height  480 start  490 end  492 total  525           clock  60.00Hz
  640x480 (0x81) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  720x400 (0x82) 28.320MHz -HSync +VSync
        h: width   720 start  738 end  846 total  900 skew    0 clock  31.47KHz
        v: height  400 start  412 end  414 total  449           clock  70.08Hz
HDMI-1 disconnected (normal left inverted right x axis y axis)
    Identifier: 0x64
    Timestamp:  2118219
    Subpixel:   unknown
    Clones:    
    CRTCs:      0 1 2 3
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    dithering depth: auto 
        supported: auto, 6 bpc, 8 bpc
    dithering mode: auto 
        supported: auto, off, static 2x2, dynamic 2x2, temporal
    scaling mode: None 
        supported: None, Full, Center, Full aspect
    color vibrance: 150 
        range: (0, 200)
    vibrant hue: 90 
        range: (0, 180)
    underscan vborder: 0 
        range: (0, 128)
    underscan hborder: 0 
        range: (0, 128)
    underscan: off 
        supported: auto, off, on
    link-status: Good 
        supported: Good, Bad
DP-1 disconnected (normal left inverted right x axis y axis)
    Identifier: 0x65
    Timestamp:  2118219
    Subpixel:   unknown
    Clones:    
    CRTCs:      0 1 2 3
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    dithering depth: auto 
        supported: auto, 6 bpc, 8 bpc
    dithering mode: auto 
        supported: auto, off, static 2x2, dynamic 2x2, temporal
    scaling mode: None 
        supported: None, Full, Center, Full aspect
    color vibrance: 150 
        range: (0, 200)
    vibrant hue: 90 
        range: (0, 180)
    underscan vborder: 0 
        range: (0, 128)
    underscan hborder: 0 
        range: (0, 128)
    underscan: off 
        supported: auto, off, on
    link-status: Good 
        supported: Good, Bad

$ lspci -nnk | grep -A3 -Fe '[0300]'
06:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1c03] (rev a1)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3283]
    Kernel driver in use: nouveau
    Kernel modules: nvidiafb, nouveau, nvidia_304

这里是 的内容/var/log/Xorg.0.log

这里是 的输出apt-cache policy nvidia-\*

$ dkms status
bbswitch, 0.8, 4.13.0-36-generic, x86_64: installed
nvidia-304, 304.137, 4.13.0-36-generic, x86_64: installed

编辑:尝试按照 David Foerster 的说明重新安装驱动程序,现在我可以选择使用 390 驱动程序。我将尝试使用它们。选择 390.25 驱动程序并:

$ lspci -nnk | grep -A3 -Fe '[0300]'
06:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1c03] (rev a1)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3283]
    Kernel driver in use: nouveau
    Kernel modules: nvidiafb, nouveau, nvidia_390, nvidia_390_drm

输出$ apt-cache policy nvidia-\*

$ dkms status
bbswitch, 0.8, 4.13.0-36-generic, x86_64: installed
nvidia-390, 390.25, 4.13.0-36-generic, x86_64: installed

编辑:

$ sudo modprobe nvidia_390 && lsmod | grep nvidia || dmesg | grep nvidia
modprobe: ERROR: could not insert 'nvidia_390': No such device
[   15.101755] nvidia: loading out-of-tree module taints kernel.
[   15.101759] nvidia: module license 'NVIDIA' taints kernel.
[   15.107491] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[   15.113512] nvidia-nvlink: Nvlink Core is being initialized, major device number 243
               NVRM: nouveau, rivafb, nvidiafb or rivatv 
[   15.113767] nvidia-nvlink: Unregistered the Nvlink Core, major device number 243
[   15.327252] nvidia-nvlink: Nvlink Core is being initialized, major device number 243
               NVRM: nouveau, rivafb, nvidiafb or rivatv 
[   15.327510] nvidia-nvlink: Unregistered the Nvlink Core, major device number 243
[30422.212356] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
               NVRM: nouveau, rivafb, nvidiafb or rivatv 
[30422.212757] nvidia-nvlink: Unregistered the Nvlink Core, major device number 242

编辑:好的,经过一番搜索,我发现在 中/etc/modprobe.d/blacklist.conf,有一个nvidia被列入黑名单。我删除了它并重新启动,当我启动到 Ubuntu 时,屏幕现在开始闪烁。我从恢复模式启动,不知为何,它起作用了,在恢复模式下,我不再遇到这个问题。一切都正常显示,我可以将其设置为 144Hz。所以我想我已经解决了名义上的问题,但现在我必须从恢复模式启动。至少我现在有一个解决方法,我想?

答案1

因此,问题在于包含/etc/modprobe.d/blacklist.confnvidia删除它并重新启动后,该问题自行解决。

相关内容