SOVLED - [22.04.4 LTS] rtx 4060 stopped working after one night despite the driver being installed

[SOLVED]

Ok, I managed to solve the issue. Just FYI I have 2 OS on 1 drive.

  1. Remove nvidia driver by typing
sudo apt remove --purge nvidia-driver-535 
sudo apt autoremove
  1. Reboot your sytem
  2. Go to Software Updates, and then to Additional Drivers
  3. Select X.org (last option from the list), apply and reboot
  4. Go to Additional Drives again and select your preferred (tested) one - in my case it was the first option, apply and reboot

Hello,
just after one night my second monitor stopped working. It turned out that this is because of broken nvidia driver. I didn’t install or update anything yesterday. Not sure what to do now to not brick my laptop… The strange part is everything was OK for 2 weeks and suddenly this happened.

~/Desktop$ nvidia-settings

ERROR: NVIDIA driver is not loaded

(nvidia-settings:5857): GLib-GObject-CRITICAL **: 18:08:14.750: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed

** (nvidia-settings:5857): CRITICAL **: 18:08:14.752: 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: 18:08:14.786: PRIME: No offloading required. Abort
** Message: 18:08:14.786: PRIME: is it supported? no

~/Desktop$ apt list nvidia-driver-* --installed -a
Listing… Done
nvidia-driver-535/jammy-updates,jammy-security,now 535.183.01-0ubuntu0.22.04.1 amd64 [installed]
nvidia-driver-535/jammy 535.154.05-0ubuntu0.22.04.1 amd64

Attaching a log file as well:
nvidia-bug-report.log.gz (73.6 KB)

Thanks in advance.

Can anyone help? Tried to purge the drivers, then installing them again but the same thing is happening :( I’m totally lost becasue everything seemed fine for 2.5 weeks.