Software & AppsOperating SystemLinux

Fixing Chrome Browser Glitches After Suspending on Ubuntu 20.04 with Nvidia GPU

Ubuntu 8

In this article, we will address an issue that many Ubuntu 20.04 users with Nvidia GPUs have faced – glitches in the Chrome browser after suspending their systems. These glitches can range from dithered colors to more severe visual distortions. We will cover several potential solutions to this problem, explaining each step in detail.

Quick Answer

To fix Chrome browser glitches after suspending on Ubuntu 20.04 with an Nvidia GPU, you can try enabling Vulkan in Chrome flags, disabling hardware acceleration, restarting the Chrome GPU process, using command-line flags, or installing NVIDIA power management scripts. Remember to try these solutions one by one to see which one works best for you.

Enable Vulkan in Chrome Flags

The first solution we will explore involves enabling Vulkan in Chrome flags. Vulkan is a new-generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs.

To do this, open your Chrome browser and type chrome://flags into the address bar. This will open a page with various experimental features. In the search bar, type “Vulkan” and enable the option that appears. Once you have done this, restart your browser and check if the issue persists.

Please note that enabling Vulkan may slow down Chrome, especially if you have multiple windows open.

Disable Hardware Acceleration

The next solution is to disable hardware acceleration in Chrome. Hardware acceleration is a feature in Chrome that allows the browser to delegate certain tasks to specific hardware components, thereby improving performance. However, this can sometimes cause issues with certain GPU configurations.

To disable hardware acceleration, navigate to chrome://settings/system in your browser. Here, you will find the option “Use hardware acceleration when available”. Toggle this option off, then restart your browser.

Be aware that this may impact performance, especially when watching videos or playing games in your browser.

Restart the Chrome GPU Process

Another potential solution is to restart the Chrome GPU process. This can be done via the Chrome Task Manager.

To open the Chrome Task Manager, press Shift+Esc, or navigate to the Chrome menu → More Tools → Task Manager. In the list of processes, find the one called “GPU Process” and click on “End process”. Chrome will automatically create a new GPU process.

This solution can be applied manually each time the issue occurs, or it can be automated using a script.

Use Command-Line Flags

You can also try launching Chrome with the --use-cmd-decoder=validating --use-gl=desktop flags.

These flags change how Chrome interacts with your GPU. The --use-cmd-decoder=validating flag enables command buffer validation, which can help prevent errors. The --use-gl=desktop flag forces Chrome to use the desktop OpenGL driver.

To apply these flags, you can modify the Chrome desktop file or create a script to launch Chrome with these flags. The exact steps to do this may vary depending on your specific distribution.

Install NVIDIA Power Management Scripts

Finally, you can try installing NVIDIA power management scripts. These scripts can help manage GPU-related issues after resuming from suspend.

Please note that this solution may require some customization based on your specific NVIDIA driver version. You can find these scripts and more information on how to use them on the NVIDIA website.

Conclusion

These are just a few of the potential solutions to Chrome browser glitches after suspending on Ubuntu 20.04 with an Nvidia GPU. Remember to try these solutions one by one to see which one works best for you.

Remember, this issue seems to be related to Chromium-based browsers, as VS Code also experiences similar problems due to its underlying Chromium framework.

As always, remember to keep your system and software up to date, as updates often contain fixes for these types of issues.

What is Vulkan?

Vulkan is a graphics and compute API that provides efficient access to modern GPUs. It is designed to be cross-platform and offers high performance for applications such as gaming, virtual reality, and more.

How do I enable Vulkan in Chrome flags?

To enable Vulkan in Chrome flags, open your Chrome browser and type chrome://flags into the address bar. Search for "Vulkan" in the search bar on the flags page and enable the option that appears. After enabling it, restart your browser to apply the changes.

What does disabling hardware acceleration do?

Disabling hardware acceleration in Chrome stops the browser from utilizing specific hardware components for certain tasks. This can help resolve issues that may arise due to compatibility problems with GPU configurations.

How can I disable hardware acceleration in Chrome?

To disable hardware acceleration in Chrome, go to chrome://settings/system in your browser. Locate the option "Use hardware acceleration when available" and toggle it off. Remember to restart your browser for the changes to take effect.

How do I restart the Chrome GPU process?

To restart the Chrome GPU process, open the Chrome Task Manager by pressing Shift+Esc or navigating to the Chrome menu → More Tools → Task Manager. Find the process named "GPU Process" and click on "End process". Chrome will automatically create a new GPU process.

How can I launch Chrome with command-line flags?

To launch Chrome with command-line flags, you can modify the Chrome desktop file or create a script. Add the flags --use-cmd-decoder=validating --use-gl=desktop to change how Chrome interacts with your GPU. Please note that the exact steps may vary depending on your specific distribution.

Where can I find NVIDIA power management scripts?

NVIDIA power management scripts can be found on the NVIDIA website. However, please note that these scripts may require customization based on your specific NVIDIA driver version. Visit the NVIDIA website for more information and detailed instructions.

Are these solutions specific to Ubuntu 20.04 with an Nvidia GPU?

While these solutions are specifically mentioned for Ubuntu 20.04 with an Nvidia GPU, they may also work for other Linux distributions or GPU configurations. However, it’s always recommended to check for any distribution-specific instructions or updates for the best results.

Leave a Comment

Your email address will not be published. Required fields are marked *