Broken desktop background on Ubuntu 18.04 under gnome after waking up from suspend on nvidia-390

9,449

Solution 1

I'm also having a similar problem. I have a Dell/Alienware box with a GeForce GTX 860M, running Ubuntu 18.04.

When the computer wakes from suspend, I also have the problem with a corrupted desktop background, sometimes, white, or with with color "snow". I can fix the problem with:

dbus-send --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval "string:global.reexec_self()"

I have my account set up to not have a lockscreen on resume, and I think that might be relevant. Lock-on-suspend doesn't seem to matter.

EDIT: I've changed my nvidia driver from 390 to 396, and that didn't fix it. But more interesting, if I use Unity desktop, the problem DOESN'T occur. This points a finger at the Gnome desktop software maybe...

I would love to fix this for real!

Solution 2

Another way to work around this problem is to run: AltF2,r,Enter.
This will restart the Gnome desktop.

On some systems, or if you have FnLock off, you may need to run AltFnF2,r,Enter.

Solution 3

I have the same problem too running Ubuntu 18.04.1. I have the nvidia GT220, driver version 340.106. The bug was reported here : bugzilla.gnome.org a long time ago.It concerned Gnome 3.14, and Ubuntu 18 is now running Gnone 3.28. It should be fixed. With the Nouveau driver you don't get that issue.

Here's what Nvidia says about it :

Our current software architecture doesn't preserve the contents of FBOs across modeswitches or power events. As a result, our implementation relies on applications re-rendering to their FBOs every frame. This is a fundamental limitation of our design that will be fixed in the future.

Gnome uses FBOs to not have to render the background on every frames. But the content of FBOs are not saved when the computer enter in sleep mode.

Solution 4

I also have this issue. the workaround for me seems to be to use an image as a background instead of using a color.

Solution 5

This problem still exists up to July 2020. (Using color as Background)

Nvidia Driver Version 440.100, GTX 950 with AMD Ryzen 7, x470 motherboard

Need use Alt+F2, enter R to restart Gnome to solve the issue.

Share:
9,449

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin almost 2 years

    I have the Nvidia 1080ti graphics card, which is just a few days old. Furthermore, I have a clean installation of Ubuntu 18.04 and the latest nvidia-390 drivers installed, using apt:

    ~$ sudo dpkg -l  | grep nvidia
    ii  libnvidia-cfg1-390:amd64                   390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA binary OpenGL/GLX configuration library
    ii  libnvidia-common-390                       390.59-0ubuntu0~gpu18.04.1              all          Shared files used by the NVIDIA libraries
    ii  libnvidia-compute-390:amd64                390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA libcompute package
    ii  libnvidia-compute-390:i386                 390.59-0ubuntu0~gpu18.04.1              i386         NVIDIA libcompute package
    ii  libnvidia-decode-390:amd64                 390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA Video Decoding runtime libraries
    ii  libnvidia-decode-390:i386                  390.59-0ubuntu0~gpu18.04.1              i386         NVIDIA Video Decoding runtime libraries
    ii  libnvidia-encode-390:amd64                 390.59-0ubuntu0~gpu18.04.1              amd64        NVENC Video Encoding runtime library
    ii  libnvidia-encode-390:i386                  390.59-0ubuntu0~gpu18.04.1              i386         NVENC Video Encoding runtime library
    ii  libnvidia-fbc1-390:amd64                   390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
    ii  libnvidia-fbc1-390:i386                    390.59-0ubuntu0~gpu18.04.1              i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
    ii  libnvidia-gl-390:amd64                     390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
    ii  libnvidia-gl-390:i386                      390.59-0ubuntu0~gpu18.04.1              i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
    ii  libnvidia-ifr1-390:amd64                   390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
    ii  libnvidia-ifr1-390:i386                    390.59-0ubuntu0~gpu18.04.1              i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
    ii  nvidia-390                                 390.59-0ubuntu0~gpu18.04.1              amd64        Transitional package for nvidia-driver-390
    ii  nvidia-compute-utils-390                   390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA compute utilities
    ii  nvidia-dkms-390                            390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA DKMS package
    ii  nvidia-driver-390                          390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA driver metapackage
    ii  nvidia-kernel-common-390                   390.59-0ubuntu0~gpu18.04.1              amd64        Shared files used with the kernel module
    ii  nvidia-kernel-source-390                   390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA kernel source package
    ii  nvidia-prime                               0.8.8                                   all          Tools to enable NVIDIA's Prime
    ii  nvidia-settings                            396.24-0ubuntu0~gpu18.04.1              amd64        Tool for configuring the NVIDIA graphics driver
    ii  nvidia-utils-390                           390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA driver support binaries
    ii  xserver-xorg-video-nvidia-390              390.59-0ubuntu0~gpu18.04.1              amd64        NVIDIA binary Xorg driver
    

    My problem is that every time I am waking my computer from suspend mode my background turns to this noise pattern (I have solid color set):

    enter image description here

    I think it is worth to mention that I do NOT have any graphical glitches on the login screen (it was sometimes a problem on Ubuntu 16.04). The login screen works perfectly here.

    Any ideas how to solve this issue and where it comes from?

  • Esen Mehmet
    Esen Mehmet almost 5 years
    How can I revert this? Because it's caused some unexpected things.
  • applemonkey496
    applemonkey496 over 3 years
    Tip: this is equivalent to running the command gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Meta.restart(_("Restarting…"))'. You could add that script to your .bash_profile so it runs on login. (It might not work if your computer doesn't log you out on suspend.)
  • mckenzm
    mckenzm about 3 years
    Does not work for me. My corruption only occurs for lid closed sleep.