On Tue, Nov 21, 2023 at 1:38 PM Bjoern Voigt via openSUSE Users <users@lists.opensuse.org> wrote:
I think, it's not a good idea to use the driver from https://download.nvidia.com/ if you usually use the RPM Nvidia driver. At least in the past some additional steps were necessary to switch back to the RPM Nvidia driver later.
If I have a problem with the Nvidia sources, I use the following steps (I use version 545.29.02 here, but 390.157 should work similar):
1. cd /usr/src/kernel-modules/nvidia-545.29.02-default 2. Apply the patches 3. Compile the driver (here for Kernel version 6.6.1-1-default): vers=6.6.1-1-default; make clean modules KERNEL_UNAME=$vers; make modules_install KERNEL_UNAME=$vers; make clean KERNEL_UNAME=$vers; depmod $vers
This will not work if Secure Boot is enabled. NVIDIA package will additionally generate key, sign modules and enroll the corresponding certificate in MOK.
If the kernel is updated, the recompilation is done automatically. If
Yes, by virtue of the trigger script in the openSUSE NVIDIA package.
the Nvidia RPM is updated, you have to check, if the new Nvidia RPM driver needs patches too.
Björn