- Kubuntu 20.04, 64 bit
- GPU: Geforce GT610
- nvidia-driver-390
- Chrome Version 85.0.4183.83
- Intel i5-4430, core 4, 4 thread , 3GHz
- RAM: 16GB
Each time I go into suspend mode and then resume, Chrome browser displays the current tab as full of sand of colors, something like dithering in image processing.
Other tabs display glitches too.
The current solution is to close and reopen the browser.
I tested nvidia-driver-418
but got a black screen problem and reinstalled nvidia-driver-390
.
The problem is more evident in Chrome, but it sometimes appears in vscode in small areas. There, hovering the mouse over the affected place or resizing the window fixes the problem. In Kubuntu the avatar of the user in the application launcher also shows dithered.
I tested in the same machine with fedora 32 workstation(gnome), nvidia driver, and had the same problems with Chrome browser.
Could it be a GPU problem?
Same problem for me.
Enabling
enable-vulkan
inchrome://flags
then restarting the browser fixed it. If that does not work, you can also try enablingignore-gpu-blacklist
as well.Answer based on this old askubuntu answer
I'm having more or less the same issue, on:
I don't want to have to deactivate GPU usage for Chrome, and I don't want to have to restart the browser every time, losing all my tabs.
But I found a workaround that is good enough for me (at least for now):
You can kill just the browser's GPU process
Open the Task Manager:
Sort by process Task name.
Find the process called GPU Process.
Click on End process.
That will "clean" all the glitchy image noise. And Chrome will immediately create a new GPU process automatically.
Note: You can automatize the process, check Andrew Bruce's answer putting these steps in a script that runs automatically.
I assume the problem is something like the GPU process using memory assuming it has the old state as before the sleep cycle, but it just has some default random noise from the default state. So I imagine Ubuntu doesn't save and restore GPU memory on a sleep cycle (I don't think it should) but the Chrome process doesn't detect that. And by killing the process it "frees" that GPU memory and then Chrome creates a new process that re-generates any needed GPU memory state (that's instant).
Using tiangolo's answer, you can automate the restart of the Chrome GPU process on wake. As root, I put this script in
/lib/systemd/system-sleep/revive-chrome-gpu
:Be sure to make the script executable with:
I have the same issues on Arch, and although enabling Vulkan does fix the glitches when resuming from sleep or hibernation, it also impacts performance a lot. Based on this bug report and this answer I've tried starting Chrome with the following flags:
--use-cmd-decoder=validating --use-gl=desktop
and this seems to fix my issue without any performance penalties.I'm not sure if this applies to all distros, but on Arch you can put these arguments into
~/.config/chrome-flags.conf
and then they will be used every time Chrome is started (or~/.config/chromium-flags.conf
if using Chromium):~/.config/chrome-flags.conf
1st Solution (performance issues)
In my case a solution for the Chrome browser is
disable
inSettings
:Use hardware acceleration when available
.2nd Solution
Yes, the above solution comes with performance issues. If you don't like that, you can test this other option, Chrome will run flawlessly.
Run Chrome with some flags, run always Chrome by terminal.
The
&
avoid blocking the terminal.I followed xx77aBs's solution but, since I'm using Chromium under Ubuntu, I added these options in
/etc/chromium-browser/customizations
, as mentioned here. I added a file namednvidia-fix
under that directory with the following content:I had a very similar issue on my Arch system with both Chrome and Chromium where I had to restart it ever time after sleep (VS code and Steam also had minor artifact but simply switching tabs fixed it there)
Simply enabling Vulkan in
chrome://flags
seems to have finally resolved it.I also wanted to mention that I did not suffer from this issue up until several weeks ago I am on nVidia 1060 with 450.66 driver
xx77aBs's can be adapted for Chrome, not Chromium, on Ubuntu using this answer.
Then use that newly created and modified
.desktop
file to launch Chrome.For my setup (Ubuntu 20.04, Thinkpad P53) flag
--use-gl=desktop
was enough to avoid Chromium problems after resume. I didn't notice a visible slowdown of my machine.I added the file
~/.chromium-browser.init
with contents:CHROMIUM_FLAGS="--use-gl=desktop"
.My problems with chrome after resume were reproducible by switching to vty and back to X or after sleep, lock etc. I finally ran with the --disable-extensions flag from the command line and the problem went away.
The issue was pretty strange. It would jumble contents from different tabs or block out portions of pages with large black block or leftover content from a previous tab. Scrolling caused issues too or popover etc.
Via trial and error I narrowed in on ....
Microsoft Office Extension
It apparently messes with the browsers use of gl. It was spitting out these errors when started from a console and triggering the bug. Disabling or removind the extension fixed it.
86.0.4240.75 Linux 5.4.0-48-generic nvidia 450 and libnvidia-gl-450.