You are not logged in.

#1 2021-05-29 06:55:30

Salkay
Member
Registered: 2014-05-22
Posts: 530

Use Vulkan with Optimus NVIDIA 390xx drivers

I have an XPS-17 laptop with NVIDIA Optimus. I can use the NVIDIA graphics perfectly either by using Optimus Manager or by simply using the NVIDIA graphics only (confirmed with glxinfo). However, I can't get Vulkan to work.

$ vulkaninfo
ERROR at /build/vulkan-tools/src/Vulkan-Tools-1.2.172/vulkaninfo/vulkaninfo.h:248:vkEnumeratePhysicalDevices failed with ERROR_INITIALIZATION_FAILED
$ vkcube
vkEnumeratePhysicalDevices reported zero accessible devices.

Do you have a compatible Vulkan installable client driver (ICD) installed?
Please look at the Getting Started guide for additional information.

I do have a file at /usr/share/vulkan/icd.d/nvidia_icd.json:

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

My GPU is a GeForce GT 555M, so I am forced to use the older NVIDIA 390xx drivers (which also means I can't use PRIME render offload as suggested elsewhere). I have the following packages installed.

nvidia-390xx
nvidia-390xx-dkms
nvidia-390xx-utils
lib32-nvidia-390xx-utils
vulkan-headers
vulkan-icd-loader
lib32-vulkan-icd-loader
vulkan-tools

I do not have vulkan-intel installed, and I am in group video. I am using KDE Plasma with SDDM. How can I get Vulkan working?

Last edited by Salkay (2021-05-29 15:37:05)

Offline

#2 2021-05-30 10:57:28

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,206

Re: Use Vulkan with Optimus NVIDIA 390xx drivers

Is there a /usr/share/vulkan/implicit_layer.d/nvidia_layers.json file present on your system ?

I suggest you post in nvidia-390xx AUR package discussion thread .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2021-05-30 13:40:12

Salkay
Member
Registered: 2014-05-22
Posts: 530

Re: Use Vulkan with Optimus NVIDIA 390xx drivers

Thanks for the reply Lone_Wolf

Lone_Wolf wrote:

Is there a /usr/share/vulkan/implicit_layer.d/nvidia_layers.json file present on your system ?

No, this doesn't exist. On another of my Arch systems, this file is provided by the package nvidia-utils, but the equivalent package nvidia-390xx-utils here only provides /usr/share/vulkan/icd.d/nvidia_icd.json, and not the other file.

Lone_Wolf wrote:

Thank you for the advice. I wasn't aware of that thread, so I'll post there.

Offline

Board footer

Powered by FluxBB