I am using Ubuntu 22.04.1 LTS and have dual GPU Intel (HD 530)/Nvidia (GTX950). When I was using Ubuntu the first time after installed it, Nvidia drivers were successfully working, but now it doesn't work. I tried to install drivers in both Drivers window and command-line.
Secure boot is disabled.
That didn't work: https://www.murhabazi.com/install-nvidia-driver
nvidia-smi
output:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
nvidia-settings
output:
ERROR: NVIDIA driver is not loaded
(nvidia-settings:4383): GLib-GObject-CRITICAL **: 22:08:05.795:
g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** (nvidia-settings:4383): CRITICAL **: 22:08:05.797: 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.
** Message: 22:08:05.828: PRIME: No offloading required. Abort
** Message: 22:08:05.828: PRIME: is it supported? no