Nvidia Driver on Opensuse Leap 15.3

From JoBaPedia
Jump to navigation Jump to search

see

Using an Opensuse 15.2 kernel 5.3.18-lp152.92-default with a 15.3 system and the script works. To set up grub default submenu menu in /etc/default/grub with this kernel (and have fast highres framebuffer):

GRUB_DEFAULT='1>4'

GRUB_CMDLINE_LINUX_DEFAULT="spash=silent"
GRUB_GFXMODE="1280x800x8"
GRUB_GFXPAYLOAD_LINUX=keep

Current Opensuse 15.3 kernels can be made to compile the nvidia module with the script and some patches but dont load it (hangs):

diff -Nr -U0 NVIDIA-340xx/kernel-5.11.patch NV/NVIDIA-340xx/kernel-5.11.patch
--- NVIDIA-340xx/kernel-5.11.patch	2021-10-04 11:55:09.000000000 +0200
+++ NV/NVIDIA-340xx/kernel-5.11.patch	2021-10-08 13:50:54.080722098 +0200
@@ -128 +128 @@
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
@@ -131 +131 @@
-+#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 8, 0)
++#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 2, 0)
diff -Nr -U0 NVIDIA-340xx/kernel-5.9.patch NV/NVIDIA-340xx/kernel-5.9.patch
--- NVIDIA-340xx/kernel-5.9.patch	2020-11-23 00:45:00.000000000 +0100
+++ NV/NVIDIA-340xx/kernel-5.9.patch	2021-10-08 11:21:06.824529135 +0200
@@ -22 +22 @@
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
@@ -35 +35 @@
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
@@ -51 +51 @@
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
@@ -63 +63 @@
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
@@ -82 +82 @@
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
@@ -98 +98 @@
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)