On a fresh elementary-OS setup, I installed the nvidia-driver-460 and its dependent packages. But no luck. neofetch fails to recognise the driver, and so does nvidia-smi. Here’s the error I see when I run the latter command:
$ sudo 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.
Also, there is not a xorg.conf file in etc/x11 and nvidia-persistenced gives “nvidia-persistenced failed to initialize. Check syslog for more details.”