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.
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
There are no kernel modules installed for that kernel, please try installing the kernel headers
sudo apt install linux-headers-$(uname -r)
then check if
dkms status
lists the nvidia driver.
Thanks.
Things are going well. Because PRIME Profiles tab came again in Nvidia Settings app, but it doesn’t work. I selected Nvidia Performance mode and then it said that you should restart the system, Intel Power Saving Mode was selected as default after I restarted the system. Also there are the same errors (nvidia-smi and nvidia-settings).
I did clearly all of them, but unfortunately the system doesn’t shutdown or restart. When it is closing, it freeze. Also Intel GPU is coming as default and there are the same errors.
I run this command "grep nvidia /etc/modprobe.d/* /lib/modprobe.d/" again and then saw blacklist nvidia lines now:
/etc/modprobe.d/nvidia-graphics-drivers-kms.conf:# This file was generated by nvidia-drivers-515
/etc/modprobe.d/nvidia-graphics-drivers-kms.conf:options nvidia-drm modeset=1
/lib/modprobe.d/blacklist-nvidia.conf:# This file was generated by nvidia-prime > /lib/modprobe.d/blacklist-nvidia.conf:blacklist nvidia > /lib/modprobe.d/blacklist-nvidia.conf:blacklist nvidia-drm > /lib/modprobe.d/blacklist-nvidia.conf:blacklist nvidia-modeset
/lib/modprobe.d/blacklist-nvidia.conf:alias nvidia off
/lib/modprobe.d/blacklist-nvidia.conf:alias nvidia-drm off
/lib/modprobe.d/blacklist-nvidia.conf:alias nvidia-modeset off
/lib/modprobe.d/nvidia-kms.conf:options nvidia-drm modeset=1
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.
I installed Ubuntu 22 again, and everything works perfectly. I use the system on Performance Mode right now. I hope it is going to be well. Thank you very much.
nvidia-smi:
Fri Oct 28 20:13:30 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce … Off | 00000000:01:00.0 Off | N/A |
| N/A 39C P8 N/A / N/A | 372MiB / 4096MiB | 6% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1652 G /usr/lib/xorg/Xorg 114MiB |
| 0 N/A N/A 2151 G /usr/bin/gnome-shell 66MiB |
| 0 N/A N/A 7838 G …109813382925935932,131072 149MiB |
| 0 N/A N/A 9451 G …308728075114821443,131072 36MiB |
±----------------------------------------------------------------------------+