Nvidia-smi: No devices were found

I recently reinstalled Ubuntu 20.04.6 LTS in my MSI laptop with Nvidia RTX 3050 GPU and I have had some issues when running nvidia-msi showing “No devices were found”. I have run:

lspci | grep -i nvidia

Which returns:

01:00.0 3D controller: NVIDIA Corporation Device 25a2 (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 2291 (rev a1)

And i have checked that the device id corresponds to a RTX 3050 Mobile GPU.

I have reinstalled the GPU drivers with:

sudo apt purge nvidia-*
sudo ubuntu-drivers autoinstall
sudo reboot

which installed NVIDIA driver (open kernel) metapackage from nvidia-driver-535-server-open (proprietary, tested), but I still get “No devices were found” after entering nvidia-smi. Here I attach the nvidia bug report:
nvidia-bug-report.log.gz (298.3 KB)

It seems as if the system is recognising the GPU but I cannot make any use of it. My intention is to use it with CUDA and pytorch and take advantage of my GPU for deep learning, but I don’t have deep knowledge on computers, so I’d be grateful for any help I can get.