Nvidia driver repeatedly produces random black screen on GTX 1060 6GB (Arch Linux)

Hi,

I am running ARCH Linux with the kernel Linux archlinux 5.13.6-arch1-1. I have a Geforce GTX 1060 6GB, running the Nvidia driver nvidia-470.57.02-6.

The driver seems to work fine at first, with a correct image, displayed. Then suddenly I experience random black screen for a few seconds, the image comes back for a undetermined period of time, then it goes back to a black screen again for a few seconds, and this pattern is repeated indefinitely with different elapsed period of time. This makes the computer basically unusable.

I do not experience this at all with the nouveau driver. I also run Windows 10 on dual boot on another SSD disk, and everything is fine.

It looks like there is a bug somewhere in the linux version of your driver that causes it to crash and restart randomly.

I attached as requested the bug report with Xorg started with the command startx -- -logverbose 6:
nvidia-bug-report.log.gz (346.6 KB)

Please be advised that I do not appear to be the only person to experience this, see: Random screen flickering/flashing / Applications & Desktop Environments / Arch Linux Forums

Please be also advised that this probably is not a hardware problem, since the card and W10 work well together with no issue. And the nouveau driver on linux works correctly.

This problem was already present a few weeks / months back with the 460 version of your driver, I waited a bit to see if a new release would fix the issue but the problem is still there, unfortunately.

I also noticed that I could run glmark2 with the nouveau driver and with the nvidia driver with different behaviour. The run with the nouveau driver completes successfully, but with the nvidia driver run outputs some strange error messages and then crashes:

  • nouveau output:
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     nouveau
    GL_RENDERER:   NV136
    GL_VERSION:    4.3 (Compatibility Profile) Mesa 21.1.5
=======================================================
[build] use-vbo=false: FPS: 1282 FrameTime: 0.780 ms
[build] use-vbo=true: FPS: 1118 FrameTime: 0.894 ms
[texture] texture-filter=nearest: FPS: 1024 FrameTime: 0.977 ms
[texture] texture-filter=linear: FPS: 1102 FrameTime: 0.907 ms
[texture] texture-filter=mipmap: FPS: 840 FrameTime: 1.190 ms
[shading] shading=gouraud: FPS: 1227 FrameTime: 0.815 ms
[shading] shading=blinn-phong-inf: FPS: 1069 FrameTime: 0.935 ms
[shading] shading=phong: FPS: 1236 FrameTime: 0.809 ms
[shading] shading=cel: FPS: 1236 FrameTime: 0.809 ms
[bump] bump-render=high-poly: FPS: 989 FrameTime: 1.011 ms
[bump] bump-render=normals: FPS: 1326 FrameTime: 0.754 ms
[bump] bump-render=height: FPS: 1315 FrameTime: 0.760 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 849 FrameTime: 1.178 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 815 FrameTime: 1.227 ms
[pulsar] light=false:quads=5:texture=false: FPS: 1043 FrameTime: 0.959 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 607 FrameTime: 1.647 ms
[desktop] effect=shadow:windows=4: FPS: 733 FrameTime: 1.364 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 801 FrameTime: 1.248 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 845 FrameTime: 1.183 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 810 FrameTime: 1.235 ms
[ideas] speed=duration: FPS: 1268 FrameTime: 0.789 ms
[jellyfish] <default>: FPS: 1071 FrameTime: 0.934 ms
[terrain] <default>: FPS: 161 FrameTime: 6.211 ms
[shadow] <default>: FPS: 655 FrameTime: 1.527 ms
[refract] <default>: FPS: 247 FrameTime: 4.049 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 1204 FrameTime: 0.831 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 1204 FrameTime: 0.831 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 1203 FrameTime: 0.831 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 1201 FrameTime: 0.833 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 1204 FrameTime: 0.831 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 1203 FrameTime: 0.831 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 1203 FrameTime: 0.831 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 1203 FrameTime: 0.831 ms
=======================================================
                                  glmark2 Score: 1008 
=======================================================
  • nvidia output:
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     NVIDIA Corporation
    GL_RENDERER:   NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
    GL_VERSION:    4.6.0 NVIDIA 470.57.02
=======================================================
[build] use-vbo=false: FPS: 10406 FrameTime: 0.096 ms
[build] use-vbo=true: FPS: 16036 FrameTime: 0.062 ms
[texture] texture-filter=nearest: FPS: 15167 FrameTime: 0.066 ms
[texture] texture-filter=linear: FPS: 15083 FrameTime: 0.066 ms
[texture] texture-filter=mipmap: FPS: 15245 FrameTime: 0.066 ms
[shading] shading=gouraud: FPS: 14706 FrameTime: 0.068 ms
[shading] shading=blinn-phong-inf: FPS: 14630 FrameTime: 0.068 ms
[shading] shading=phong: FPS: 14405 FrameTime: 0.069 ms
[shading] shading=cel: FPS: 14397 FrameTime: 0.069 ms
[bump] bump-render=high-poly: FPS: 11408 FrameTime: 0.088 ms
[bump] bump-render=normals: FPS: 16412 FrameTime: 0.061 ms
Error: Failed to add fragment shader from file None:
Error:   0(15) : error C0000: syntax error, unexpected identifier, expecting "::" at token "highp"
Error: 0(36) : warning C1503: undefined variable "TextureCoord"
Error: 0(37) : warning C1503: undefined variable "TextureCoord"
Error: 0(38) : warning C1503: undefined variable "TextureCoord"
Error: 
[bump] bump-render=height: Set up failed
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 12687 FrameTime: 0.079 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 9086 FrameTime: 0.110 ms
[pulsar] light=false:quads=5:texture=false: FPS: 15216 FrameTime: 0.066 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 5891 FrameTime: 0.170 ms
[desktop] effect=shadow:windows=4: FPS: 9842 FrameTime: 0.102 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 2156 FrameTime: 0.464 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 2526 FrameTime: 0.396 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 2665 FrameTime: 0.375 ms
[ideas] speed=duration: FPS: 13010 FrameTime: 0.077 ms
[jellyfish] <default>: FPS: 11409 FrameTime: 0.088 ms
Error: Failed to add fragment shader from file None:
Error:   0(26) : warning C7022: unrecognized profile specifier "highp"
Error: 0(26) : error C0502: syntax error at token "highp"
Error: 
Error: Failed to add fragment shader from file None:
Error:   0(75) : warning C7022: unrecognized profile specifier "highp"
Error: 0(75) : error C0502: syntax error at token "highp"
Error: 
[terrain] <default>:
Aborted (core dumped)

I do not know if this is of any relevance though…