Brokent 515.76 on new kernel

Just want to report that Nvidia driver 515.76 does not work with kernel 6.0. When I boot Ubuntu with 6.0 kernel, Nvidia driver just doesn’t work. Latest kernel I can use is 5.19.12

1 Like


It works fine here.

that’s what it says for me:

I assume you are on Ubuntu Jammy. The steps that are working for me are:

  1. Install gcc-12
  2. Remove and symlink /etc/alternatives/cc to /usr/bin/gcc-12 (nvidia dkms is using cc)
  3. Change the following lines in /usr/src/nvidia-515.65.01/nvidia-drm/nvidia-drm-helper.c
---     2022-10-06 09:11:59.857005122 +0200
+++ nvidia-drm-helper.c 2022-10-06 09:12:02.837791655 +0200
@@ -41,6 +41,10 @@
 #include <drm/drm_atomic_uapi.h>

+#include <drm/drm_framebuffer.h> 
 static void __nv_drm_framebuffer_put(struct drm_framebuffer *fb)
  1. Reinstall the kernel headers to run dkms again (apt purge linux-headers-xxx-generic, dpkg -i linux-headers-xxx-generic.deb).
1 Like

Oh, I had no idea I have to use newer gcc, and link it, after doing those steps you provided, it all works now! Thank you!

There was an error in the log about trivial-auto-var-init which gave me a hint.

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