My computer is under Ubuntu 22.04 (well Linux Mint, 21.1, but it’s the same) and has an Nvidia T600 GPU.
My kernel is 6.1.0-x64v3+.
My secure boot is disabled.
My installed driver is nvidia-driver-535 and should support Nvidia T600.
Nvidia X server settings doesn’t show any graphic card.
Running prime-select query displays
/etc/modprobe.d/blacklist-framebuffer.conf:blacklist nvidiafb
/etc/modprobe.d/nvidia-graphics-drivers-kms.conf:# This file was generated by nvidia-driver-525
/etc/modprobe.d/nvidia-graphics-drivers-kms.conf:options nvidia-drm modeset=1
/lib/modprobe.d/blacklist-nvidia.conf:# This file was generated by nvidia-prime
/lib/modprobe.d/blacklist-nvidia.conf:blacklist nvidia
/lib/modprobe.d/blacklist-nvidia.conf:blacklist nvidia-drm
/lib/modprobe.d/blacklist-nvidia.conf:blacklist nvidia-modeset
/lib/modprobe.d/blacklist-nvidia.conf:alias nvidia off
/lib/modprobe.d/blacklist-nvidia.conf:alias nvidia-drm off
/lib/modprobe.d/blacklist-nvidia.conf:alias nvidia-modeset off
/lib/modprobe.d/nvidia-kms.conf:# This file was generated by nvidia-prime
/lib/modprobe.d/nvidia-kms.conf:options nvidia-drm modeset=1
/lib/modprobe.d/nvidia-runtimepm.conf:options nvidia "NVreg_DynamicPowerManagement=0x02"
Please reinstall the kernel headers by running sudo apt install --reinstall linux-headers-$(uname -r)
Afterwards, post any errors and the output of
dkms status
again.
This results from the custom built kernel. You’ll have to create a symlink in /lib/modules/$(uname -r)/build to the kernel source directory where you built that kernel.
Oooops, I deleted the kernel’s built folder to make place :/
I rebuilt the kernel in the same folder, so the broken symlink is now fixed, now I can do $ cd /lib/modules/$(uname -r)/build and it works, showing the files and folders of the kernel (arch, block, built-in.a, etc.)
I rebooted my computer and relaunched the sudo apt install --reinstall linux-headers-$(uname -r) command, but same result.
Thanks again for your help.
The nvidia driver is installed and should be working (after a reboot). If not, please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.