Fix Nvidia graphics driver PPA corrupts Vulkan after recent update (Ubuntu, Linux Mint)

It seems to update the Nvidia 410 or 415 driver from Windows XP to the latest version. Proprietary GPU driver PPA Vulkan was broken for some users.
After updating to Nvidia graphics driver version 410.78 or 415.18, some Ubuntu (but users of Linux Mint and other Ubuntu-based Linux distributions may also be affected) users reported that Vulkan no longer works, breaking any games (for example, any DXVK / Proton Game) or the application that is using it.

This one Reddit thread Mentioned some fixes for Vulkan not working after updating Nvidia graphics driver from PPA: Try to reinstall the Nvidia driver. You can do this easily using Synaptic Package Manager (use the following tools to install it: sudo apt install synaptic), By searching for Nvidia, select all installed Nvidia driver packages, then click Mark for Reinstallation From Package Menu, last click Apply Button to see if libnvidia-gl-DRIVERVERSION Installed (this package is called libnvidia-gl-410 Driver for Nvidia 410, and libnvidia-gl-415 (For Nvidia 415 driver), if not already installed, please install it. You can check whether this package is installed by running the following command:

apt-cache policy libnvidia-gl-DRIVERVERSION

C. Another fixed method (through Twitter) After updating the latest Nvidia graphics driver from Ubuntu PPA, Vulkan does not work /usr/share/vulkan/icd.d/nvidia_icd.json file. Check if this file contains the following:

{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": "libGLX_nvidia.so.0",
        "api_version" : "1.1.84"
    }
}

in case library_path Value is libGL.so.1, Replace it with libGLX_nvidia.so.0. May need to restart.
If the file does not exist or is empty, use the following command to create it:

sudo mkdir -p /usr/share/vulkan/icd.d
sudo nano /usr/share/vulkan/icd.d/nvidia_icd.json

of nano Command to open /usr/share/vulkan/icd.d/nvidia_icd.json Use Nano command line text editor. Paste the following into nvidia_icd.json:

  • For Nvidia 410:
{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": "libGLX_nvidia.so.0",
        "api_version" : "1.1.82"
    }
}
  • For Nvidia 415:
{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": "libGLX_nvidia.so.0",
        "api_version" : "1.1.84"
    }
}

Save the file (use Ctrl + O, Then Enter Save and finally Ctrl + X Exit Nano). It may be necessary to restart the system.
You can check whether this problem is solved by installing vulkan-tools:

sudo apt install vulkan-tools

Then run vulkaninfo In the terminal:

vulkaninfo

If an error occurs, the Vulkan support on your Ubuntu or Linux Mint desktop has been broken. This is the error i get /usr/share/vulkan/icd.d/nvidia_icd.json The file is empty:

$ vulkaninfo
==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.82

vulkaninfo: /build/vulkan-tools-ZnxIl9/vulkan-tools-1.1.82.0+dfsg1/vulkaninfo/vulkaninfo.c:564: AppGetGlobalLayerExtensions: Assertion `!err' failed.
Aborted (core dumped)

And when an error is displayed /usr/share/vulkan/icd.d/nvidia_icd.json File usage libGL.so.1 Instead libGLX_nvidia.so.0:

$ vulkaninfo
==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.82

ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Attempt to retrieve either 'vkGetInstanceProcAddr' or 'vk_icdGetInstanceProcAddr' from ICD libGL.so.1 failed.
Cannot create Vulkan instance.
/build/vulkan-tools-ZnxIl9/vulkan-tools-1.1.82.0+dfsg1/vulkaninfo/vulkaninfo.c:825: failed with VK_ERROR_INCOMPATIBLE_DRIVER



Source

Sidebar