Vulkan not working after last nvidia update

After last nvidia update, I can’t start any game and vulkan seems to be broken. When I load snapshot before I updated system, everything works fine.

prime-run vulkaninfo                                                                                                                                                                                                                                                                  
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /usr/src/debug/vulkan-tools/Vulkan-Tools-1.3.255/vulkaninfo/vulkaninfo.h:676:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
prime-run glxinfo -B                                                                                                                                                                                                                                                             
name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  50
  Current serial number in output stream:  51

glxinfo from working snapshot:

prime-run glxinfo -B                                                                                                                                                                                                                                                                          Čt 24. srpna 2023, 22:56:29
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8192 MB
    Total available memory: 8192 MB
    Currently available dedicated video memory: 7912 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3070 Laptop GPU/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 535.98
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 535.98
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 535.98
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Nvidia 535.98 is not the latest, but 535.104 is.
So updating is needed.

If you just updated and these versions still exist in your system, maybe the Arch mirrors need re-ranking.

535.98 was last working version as seen in my post “glxinfo from working snapshot:”. First two outputs are from not working .104, third one is from working .98

For the record, would you show the output of

pacman -Qs nvidia

of the 535.104 system.

I also can’t start any games after the last nvidia update, but vulkan seems to be working (that is, the 2 commands that the OP used do not give me any errors). Here is the output of

pacman -Qs nvidia
local/egl-wayland 2:1.1.12-1
    EGLStream-based Wayland external platform
local/envycontrol 3.2.0-2
    CLI tool for Nvidia Optimus graphics mode switching on Linux
local/lib32-nvidia-utils 535.104.05-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 535.104.05-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 535.104.05-1
    NVIDIA NV-CONTROL X extension
local/nvidia-dkms 535.104.05-1
    NVIDIA drivers - module sources
local/nvidia-hook 1.3-1
    pacman hook for nvidia
local/nvidia-inst 23-7
    Script to setup nvidia drivers (dkms version) in EndeavourOS
local/nvidia-installer-common 23-7
    Common scripts for nvidia-installer-dkms and nvidia-inst
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-settings 535.104.05-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 535.104.05-1
    NVIDIA drivers utilities
local/opencl-nvidia 535.104.05-1
    OpenCL implemention for NVIDIA
pacman -Qs nvidia                                                                                                                                                                                                                                                                        
local/cuda 12.2.0-1
    NVIDIA's GPU programming toolkit
local/egl-wayland 2:1.1.12-1
    EGLStream-based Wayland external platform
local/lib32-nvidia-utils 535.104.05-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/nvidia-dkms 535.104.05-1
    NVIDIA drivers - module sources
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-utils 535.104.05-1
    NVIDIA drivers utilities
local/opencl-nvidia 535.104.05-1
    OpenCL implemention for NVIDIA

Might be a kernel issue (some compatibility problem?), maybe the LTS kernel works?

Doesn’t seem like kernel problem.

uname -a
Linux endeavouros 6.4.11-zen2-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sat, 19 Aug 2023 15:38:10 +0000 x86_64 GNU/Linux
cat /proc/cmdline
BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=3ede51a8-cbbe-4549-ae5a-23c0b4e0716d rw rootflags=subvol=@ nowatchdog nvme_load=YES resume=UUID=01b178f2-66a3-4413-8658-881195d3d57f loglevel=3 ibt=off nvidia_drm.modeset=1
lsmod | grep nvidia 
nvidia_uvm           3457024  0
nvidia_drm             98304  3
nvidia_modeset       1556480  1 nvidia_drm
nvidia              62664704  2 nvidia_uvm,nvidia_modeset
video                  73728  3 acer_wmi,i915,nvidia_modeset

Have you tried the default kernel (its version is 6.4.12.arch1-1)?
BTW, kernel parameter ibt=off is no more needed.

Linux endeavouros 6.4.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 24 Aug 2023 00:38:14 +0000 x86_64 GNU/Linux

Same story, no difference
BTW thanks for the tip with the ibt=off parameter :+1:

Upgrading to the newest Zen kernel solved it for me. I didn’t have the Vulkan problem, however.

I have up to date zen kernel sadly

Hopefully someone more familiar with Vulcan issues will chime in, as I’m not that familiar with it. :frowning:

What happens if you enter:

vkcube

in a terminal.

Does a window open with a spinning cube? This will tell if vulkan works or the problem is with for example steam configuration or proton etc.

If you get an error or no spinning cube appears, maybe the driver failed to correctly install.
You can install the vulkan driver:

sudo pacman -S nvidia-utils

You can also try setting the enviroment variable.
According to the arch wiki that may help.

https://wiki.archlinux.org/title/Vulkan#Troubleshooting

That’s my 2 cents. Maybe someone more knowledgeable can chime in.

Edit:

Are you sure the nvidia graphics are being used:

glxinfo | grep NVIDIA

https://wiki.archlinux.org/title/NVIDIA_Optimus

Since vulkaninfo returns error as shown in OP, this does not work eiter:

vkcube                                                                                                                                                                                                                                                                
vkEnumerateInstanceExtensionProperties failed to find the VK_KHR_surface extension.

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

As you can see from my pacman -Qs nvidia command I have both nvidia-utils and lib32-nvidia-utils installed.

Setting environment variable did nothing. And I don’t use optimus, result of glxinfo can be also seen in OP both broken state and working snapshot.

As you can see from my pacman -Qs nvidia command I have both nvidia-utils and lib32-nvidia-utils installed.

Why both? You probably aren’t running EOS on a 32 bit system. lib32-nvidia-utils is probably not needed.

The icd is not installed correctly. With the new driver something went wrong with the installation.

And I don’t use optimus, result of glxinfo can be also seen in OP both broken state and working snapshot.

My bad. I just thunk wrong because usually when people have problems with nvidia it is because they are using an intel/nvidia hybrid laptop graphics.

So I have completely reinstalled system. Installed nvidia drivers through nvidia-inst, installed steam to get all vulkan dependencies and problem is somehow solved, vulkan is working. However I am now facing another problem with gpu memory alocation. Will create seperate post for it and paste link here if you want to see:

Nvidia is working for me. I just don’t seem to have these issues when updating.

vulkaninfo
http://ix.io/4EXT

nvidi-smi
http://ix.io/4EXV

Edit:

[ricklinux@asus-tuff ~]$ inxi -Ga
Graphics:
Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: ASUSTeK
driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
ports: active: none empty: HDMI-A-3,HDMI-A-4 bus-ID: 00:02.0
chip-ID: 8086:3e92 class-ID: 0300
Device-2: NVIDIA GP104 [GeForce GTX 1060 6GB] vendor: ASUSTeK
driver: nvidia v: 535.104.05 alternate: nouveau,nvidia_drm non-free: 535.xx+
status: current (as of 2023-08) arch: Pascal code: GP10x
process: TSMC 16nm built: 2016-21 pcie: gen: 3 speed: 8 GT/s lanes: 4
link-max: lanes: 16 ports: active: none off: HDMI-A-1,HDMI-A-2
empty: DP-1,DP-2,DVI-D-1 bus-ID: 02:00.0 chip-ID: 10de:1b83 class-ID: 0300
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.2.0
compositor: kwin_wayland driver: X: loaded: modesetting,nvidia
alternate: fbdev,intel,nouveau,nv,vesa dri: iris gpu: i915,nvidia
display-ID: 0
Monitor-1: HDMI-A-1 res: 1920x1080 size: N/A modes: N/A
API: OpenGL v: 4.6.0 NVIDIA 535.104.05 renderer: NVIDIA GeForce GTX 1060
6GB/PCIe/SSE2 direct-render: Yes

I’m also running Wayland.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.