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
  • 3
  • 5
  • 2
    i can confirm this behavior with latest Chrome and Nvidia on Ubuntu 16.04.7 LTS. – N0rbert Sep 05 '20 at 16:59
  • Have you submitted a bug? I confirm exactly the same bug on Thinkpad P14s (NVIDIA Corporation GP108GLM [Quadro P520] (rev a1)) – Alek Kowalczyk Sep 05 '20 at 19:20
  • Same bug happens but it affects everything, if I tried to use an application with a list and tries to scroll, graphics become glitchy in this area. I get this bug on bıth elementaryos and popos with mx150 and 440 drivers. – Murat Angın Sep 06 '20 at 09:51
  • I haven't submitted a bug yet, II wasn't sure if it was only happening to me. – Lambasoft Sep 07 '20 at 08:41
  • Can confirm the same issue on Ubuntu 20 and Chrome Version 85.0.4183.83 on a system with GeForce MX150 and running NVIDIA driver 440.100 I had previously faced this issue on Ubuntu 16, some months ago, and it was resolved by using a older version of the NVIDIA driver. This did not work for me this time around, though. – dotdeb Sep 07 '20 at 16:06
  • According to [this](https://askubuntu.com/a/1272298/669558) using the older 435 driver solved the issue. I tried changing it again myself and the issue has not replicated yet. Maybe you can try it as well? – dotdeb Sep 07 '20 at 16:31
  • Same issue on ubuntu 20.04 with chrome Version 85.0.4183.83 (Official Build) (64-bit) and GeForce GTX 970 with Nvidia Driver Version 440.100. – Dark Templar Sep 07 '20 at 18:48
  • Ubuntu 16.04, nvidia-384, GTX 1070, same thing. – Mikhail Batcer Sep 09 '20 at 16:55
  • 8
    Go to `chrome://flags` and enable `ignore-gpu-blacklist` and `enable-vulkan`. Works like a charm! – alexeydemin Sep 20 '20 at 02:12
  • [This post](https://askubuntu.com/questions/1271103/ubuntu-20-04-display-glitches-after-wake-up) suggests disabling hardware integration in Chrome's settings. Worked for me with Ubuntu 20.04 and GeForce GTX650 Ti. – Ooberdan Sep 24 '20 at 18:59
  • 1
    @alexeydemin You should post that as the answer below! This problem has been driving me crazy for weeks, and that finally fixed it – David Snopek Oct 01 '20 at 17:03
  • Does this answer your question? [Problems with Chrome browser after suspending the computer on Ubuntu 20.04](https://askubuntu.com/questions/1273399/problems-with-chrome-browser-after-suspending-the-computer-on-ubuntu-20-04) – BeastOfCaerbannog Nov 03 '20 at 18:02

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
  • 2
  • 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!

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
Paul ALBERT
  • 309
  • 2
  • 4