I have following drivers and CUDA installed on my Ubuntu 22.04 system
user@user3:~$ whereis nvidia
nvidia: /usr/lib/x86_64-linux-gnu/nvidia /usr/lib/nvidia /usr/share/nvidia /usr/src/nvidia-535.104.12/nvidia
user@user3:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Aug_15_22:02:13_PDT_2023
Cuda compilation tools, release 12.2, V12.2.140
Build cuda_12.2.r12.2/compiler.33191640_0
user@user3:~$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
user@user3:~$ prime-select query
nvidia
but I get following errors -
user@user3:~$ nvidia-settings
ERROR: NVIDIA driver is not loaded
(nvidia-settings:4518): GLib-GObject-CRITICAL **: 13:36:04.690: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** (nvidia-settings:4518): CRITICAL **: 13:36:04.692: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed
ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file should have been installed along with this driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will continue to work, but values cannot be prepopulated or
validated, and will not be listed in the help text. Please see the README for possible values and descriptions.
user@user3:~$ 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.
I have tried rebooting system multiple times but still have above errors. What could be the issue?