On 21.11.23 03:44, Masaru Nomiya via openSUSE Users wrote:
How about this?
1. cd ~
2. $ wget https://download.nvidia.com/XFree86/Linux-x86_64/390.157/NVIDIA-Linux-x86_64...
3. $ wget https://paste.opensuse.org/pastes/d0b21ec8d3d4
4. edit the file d0b21ec8d3d4 as follows;
--- a/nvidia-drm/nvidia-drm-drv.c +++ b/nvidia-drm/nvidia-drm-drv.c | V --- kernel/nvidia-drm/nvidia-drm-drv.c +++ kernel/nvidia-drm/nvidia-drm-drv.c
5. $ sh ./NVIDIA-Linux-x86_64-390.157.run --apply-patch d0b21ec8d3d4
then you will get the patched driver;
NVIDIA-Linux-x86_64-390.157-custom.run
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 If the kernel is updated, the recompilation is done automatically. If the Nvidia RPM is updated, you have to check, if the new Nvidia RPM driver needs patches too. Björn