Swapped Nvidia GPU in Ubnuntu now drivers do not work`

Hi,

I previously had Ubuntu 23.10 running with an RTX 3080 GPU using the ‘nvidia-driver-535 (proprietary, tested)’ drivers and it was working for the 6 months that I was using it.

Today I shut down the computer, removed the 3080 and installed a 4060 Ti and then restarted the computer. Now ‘nvidia-smi’ returns ‘No devices were found’.

If I run ‘sudo lshw -C display’ I get:

*-display                 
       description: VGA compatible controller
       product: AD106 [GeForce RTX 4060 Ti]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:16 memory:a2000000-a2ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:3000(size=128) memory:c0000-dffff
  *-graphics
       product: EFI VGA
       physical id: 1
       logical name: /dev/fb0
       capabilities: fb
       configuration: depth=32 resolution=1024,768

So it appears that the system recognizes that the card is installed.

‘lspci -k | grep -EA3 ‘VGA|3D|Display’’ gives me:

01:00.0 VGA compatible controller: NVIDIA Corporation AD106 [GeForce RTX 4060 Ti] (rev a1)
	Subsystem: PNY Device 13ec
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

Please let me know what I’m, doing wrong, and how to fix this.

Thanks in advance!