20

If I had chrome opened, and I put my laptop to sleep. When I log back in, google chrome's display gets distorted and becomes black (seen in screenshot below).

All tabs becomes black and when I move the mouse over the black spaces, the black squares move.

This problem started happening when I upgraded from 18.04 to 20.04

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:   focal

I'm using NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] and Nvidia 440 driver.

enter image description here

Lambasoft
  • 331

2 Answers2

3

I tried the enable-vulkan option which worked but I ended up having a lot of lag. I found another option that is to add --use-cmd-decoder=validating --use-gl=desktop when launching.

I.e. I copied the /usr/share/applications/google-chrome.desktop to ~/.local/share/applications and edited the Exec line to add those options.

Justin
  • 46
  • Other's previous solutions didn't work for me. I'd like to try yours. Can you copy/paste your exact exec= line? – Seek Truth Oct 27 '20 at 18:52
  • 1
    Exec=/usr/bin/google-chrome-stable --use-cmd-decoder=validating --use-gl=desktop %U

    There's 3 Exec lines you'll need to modify to get "New Window" and "New Incognito Window"

    – Justin Oct 28 '20 at 02:41
0

I copied /usr/share/applications/google-chrome.desktop to ~/.local/share/applications, by running:

sudo cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications

Then I gave myself the property of ~/.local/share/applications/google-chrome.desktop, by running:

sudo chown $USER: ~/.local/share/applications/google-chrome.desktop

And replaced each occurence (there must probably be 3) of /usr/bin/google-chrome-stable by /usr/bin/google-chrome-stable --use-cmd-decoder=validating --use-gl=desktop (keeping whatever comes before or after exactly like it is already), by running:

sed -i -e 's/\/usr\/bin\/google-chrome-stable/\/usr\/bin\/google-chrome-stable --use-cmd-decoder=validating --use-gl=desktop/g ~/.local/share/applications/google-chrome.desktop

And now it works without having to disable hardware acceleration!