GPU Drivers not loading on ubuntu 21

I’m not able to figure out why this gpu driver isn’t loading.

nvidia-smi
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

sudo prime-select query
nvidia

ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00002507sv00001462sd0000C978bc03sc00i00
vendor : NVIDIA Corporation
driver : nvidia-driver-510-server - distro non-free
driver : nvidia-driver-510 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin

modprobe nvidia
modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.18.0-051800rc1-generic

dkms status
nvidia, 510.60.02: added

gpu-manager.log
log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can’t access /run/u-d-c-nvidia-was-loaded file
can’t access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/5.18.0-051800rc1-generic/kernel
Looking for nvidia modules in /lib/modules/5.18.0-051800rc1-generic/updates/dkms
Looking for amdgpu modules in /lib/modules/5.18.0-051800rc1-generic/kernel
Looking for amdgpu modules in /lib/modules/5.18.0-051800rc1-generic/updates/dkms
Is nvidia loaded? no
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is nvidia kernel module available? no
Is amdgpu kernel module available? no
Vendor/Device Id: 8086:4692
BusID “PCI:0@0:2:0”
Is boot vga? yes
Vendor/Device Id: 10de:2507
BusID “PCI:1@0:0:0”
Is boot vga? no
Error: can’t access /sys/bus/pci/devices/0000:01:00.0/driver
The device is not bound to any driver.
Chassis type: “3”
Laptop not detected
Is nvidia runtime pm supported for “0x2507”? no
Checking power status in /proc/driver/nvidia/gpus/0000:01:00.0/power
Error while opening /proc/driver/nvidia/gpus/0000:01:00.0/power
Is nvidia runtime pm enabled for “0x2507”? no
Skipping “/dev/dri/card0”, driven by “i915”
Skipping “/dev/dri/card0”, driven by “i915”
Skipping “/dev/dri/card0”, driven by “i915”
Found “/dev/dri/card0”, driven by “i915”
output 0:
card0-HDMI-A-3
Number of connected outputs for /dev/dri/card0: 1
Does it require offloading? yes
last cards number = 2
Has amd? no
Has intel? yes
Has nvidia? yes
How many cards? 2
Loading nvidia with “no” parameters
Has the system changed? No
can’t access /run/u-d-c-nvidia-drm-was-loaded file
can’t access /run/u-d-c-nvidia-drm-was-loaded file
… ^ x150 rows
can’t access /run/u-d-c-nvidia-drm-was-loaded file
Takes 10000ms to wait for nvidia udev rules completed.
Intel IGP detected
Desktop system detected
or laptop with open drivers
Nothing to do

711-u-c-d-gpu-detection.rules

Rule installed by ubuntu-drivers-common

Create a file with the card details for gpu-manager

ACTION==“add”, SUBSYSTEM==“drm”, DEVPATH==“/drm/card”, RUN+=“/sbin/u-d-c-print-pci-ids”

Create a file when a module is loaded

ACTION==“add”, SUBSYSTEMS==“pci”, DRIVERS==“nvidia”, RUN+=“/bin/touch /run/u-d-c-nvidia-was-loaded”
ACTION==“add”, SUBSYSTEM==“module”, KERNEL==“nvidia_drm”, RUN+=“/bin/touch /run/u-d-c-nvidia-drm-was-loaded”

Posting on this thread as I’m experiencing the same issue/symptoms
Linuxmint 21.1 (Ubuntu 22.04 LTS) using nvidia-driver-530
Any chance this was solved?
Also not able to output hdmi via hdmi/thunderbolt

Hi there @nvidia.s4f00, welcome to the NVIDIA developer forums.

Would you mind opening a new topic for your issue following the guidelines we have for Linux issues?

Feel free to also look first for possible solutions in the Linux category of our forums.

Thanks!