5.6.0 Kernel, release 20200401 and Nvidia propriatary driver.

Hi All
Looks like the kernel needs a patch for the 5.6.0 kernel and 440.64 driver, for those that use the run file with a standalone Nvidia GPU (like I do), the following will get things working again, remember, do this as your user, only need to be root user for installing;


cd
mkdir -p nvidia-5.6.0
cp NVIDIA-Linux-x86_64-440.64.run nvidia-5.6.0/
cd nvidia-5.6.0
wget -O kernel-5.6.patch https://gitlab.com/snippets/1945940/raw
find ./ -type f -exec sed -i 's/a\/kernel/kernel/g;s/b\/kernel/kernel/g' {} \;
./NVIDIA-Linux-x86_64-440.64.run --apply-patch kernel-5.6.patch
....
patching file....
Adding files to archive named "NVIDIA-Linux-x86_64-440.64-custom.run"...
....
Self-extractible archive "NVIDIA-Linux-x86_64-440.64-custom.run" successfully created.

You can then boot to multi-user.target and then manually run the custom run file.

Then all should be good…


pinxi -GSxxz

System:    Kernel: 5.6.0-1-default x86_64 bits: 64 compiler: gcc v: 9.2.1 Desktop: Gnome 3.34.4 wm: gnome-shell dm: GDM 
           Distro: openSUSE Tumbleweed 20200401 
Graphics:  Device-1: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:016a 
           Device-2: NVIDIA GK208B [GeForce GT 710] vendor: ZOTAC driver: nvidia v: 440.64 bus ID: 02:00.0 chip ID: 10de:128b 
           Device-3: NVIDIA GK208B [GeForce GT 710] vendor: ZOTAC driver: nvidia v: 440.64 bus ID: 05:00.0 chip ID: 10de:128b 
           Device-4: NVIDIA GK208B [GeForce GT 710] vendor: ZOTAC driver: nvidia v: 440.64 bus ID: 06:00.0 chip ID: 10de:128b 
           Display: x11 server: X.Org 1.20.7 driver: modesetting,nouveau unloaded: fbdev,vesa alternate: intel,nv,nvidia 
           compositor: gnome-shell resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics P4000 (IVB GT2) v: 4.2 Mesa 20.0.2 compat-v: 3.0 direct render: Yes 

Ref: https://gitlab.com/snippets/1945940

Hi,

Have this issue.
Booting 5.6.0-1-default boots to a console(not desktop).

I tried to follow the above instructions, but it’s not working?

jlp@SortaFastDesktop:~> cd
jlp@SortaFastDesktop:~> mkdir -p nvidia-5.6.0
jlp@SortaFastDesktop:~> cp NVIDIA-Linux-x86_64-440.64.run nvidia-5.6.0/
cp: cannot stat 'NVIDIA-Linux-x86_64-440.64.run': No such file or directory
jlp@SortaFastDesktop:~> cd nvidia-5.6.0
jlp@SortaFastDesktop:~/nvidia-5.6.0> wget -O kernel-5.6.patch https://gitlab.com/snippets/1945940/raw
--2020-04-04 11:04:33--  https://gitlab.com/snippets/1945940/raw
Resolving gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9
Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘kernel-5.6.patch’

kernel-5.6.patch              <=>                              ]  17.21K  --.-KB/s    in 0.001s  

2020-04-04 11:04:33 (23.7 MB/s) - ‘kernel-5.6.patch’ saved [17619]

jlp@SortaFastDesktop:~/nvidia-5.6.0> find ./ -type f -exec sed -i 's/a\/kernel/kernel/g;s/b\/kernel/kernel/g' {} \;
jlp@SortaFastDesktop:~/nvidia-5.6.0> ./NVIDIA-Linux-x86_64-440.64.run --apply-patch kernel-5.6.patch
bash: ./NVIDIA-Linux-x86_64-440.64.run: No such file or directory
jlp@SortaFastDesktop:~/nvidia-5.6.0> 

Please advise

Jesse

Hi
You need to copy the NVIDIA-Linux-x86_64-440.64.run file from wherever you have it into that directory, eg Downloads…

I have the “NVIDIA-Linux-x86_64-440.64.run” on my desktop.
It still does not work?

Any ideas, thanks!

Jesse

jlp@SortaFastDesktop:~/Desktop> cd
jlp@SortaFastDesktop:~> mkdir -p nvidia-5.6.0
jlp@SortaFastDesktop:~> cp NVIDIA-Linux-x86_64-440.64.run nvidia-5.6.0/
cp: cannot stat 'NVIDIA-Linux-x86_64-440.64.run': No such file or directory
jlp@SortaFastDesktop:~> 

Thanks Malcolm. I updated my kernel this morning and ran into this problem. Quick question: for some reason on my system ./ doesn’t work with the NVIDIA install script and I have to use the sh command. Any idea why this is? Maybe I need to add that I’m running Tumbleweed.

Got a little further, but stuck on below:

jlp@SortaFastDesktop:~/Desktop/nvidia-5.6.0> ./NVIDIA-Linux-x86_64-440.64.run --apply-patch kernel-5.6.patch
bash: ./NVIDIA-Linux-x86_64-440.64.run: Permission denied
jlp@SortaFastDesktop:~/Desktop/nvidia-5.6.0>

Hi
Executable bits…


chmod 0755 NVIDIA-Linux-x86_64-440.64.run

Hi
Likely executable bits… :wink: or ownership…


chmod 0755 NVIDIA-Linux-x86_64-440.64.run

What do I need to do after below?:

Self-extractible archive "NVIDIA-Linux-x86_64-440.64-custom.run" successfully created.
jlp@SortaFastDesktop:~/Desktop/nvidia-5.6.0>

Running the custom file shows an error:

ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in your kernel.  This  
         may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA  
         Persistence Daemon), but this may also happen if your kernel was configured without      
         support for module unloading.  Please be sure to exit any programs that may be using the 
         GPU(s) before attempting to upgrade your driver.  If no GPU-based programs are running,  
         you know that your kernel supports module unloading, and you still receive this message, 
         then an error may have occured that has corrupted an NVIDIA kernel module's usage count, 
         for which the simplest remedy is to reboot your computer.

                                                OK  

Hi,
./ and sh gives me a

Couldn't locate the 'patch' utility

I could not build the patch:(

Hi
Same as what you would do with a normal run file…


su -
systemctl set-default multi-user.target
exit

<reboot the system and login as root user>
<cd to the nvidia file location or cp to /root>

./NVIDIA-Linux-x86_64-440.64-custom.run -aq
systemctl set-default graphical.target
systemctl reboot

This process is only for users who use the run file NOT for users of the nvidia rpms (patches on the way AFAIK)…

I did not install the proprietary driver from nVidia website.
What should I do now? Just wait for new update from openSUSE team?
I am running the older kernel now.
Let me know, thanks!

Jesse

Hi
So you installed the RPM’s from http://http.download.nvidia.com/opensuse/tumbleweed/ if so you need to wait for the update to appear…

Ok, I will wait, thanks!

Jesse

My bad, it is not installed:X

One question:
Will nVidia driver update automatically with regular system updates?
(or I have to do something special?)
Let me know, thanks!

Jesse

Hi
If the repo is enabled, you should at some point see the update come through for nvidia rpms. At that time you should be able to update and reboot to the 5.6.x kernel and good to go. AFAIK if dkms is installed (and active) it should rebuild until it breaks again… That’s why I prefer the ‘hard way’ and with the occasional patch, keeps the system all up to date :wink:

Just use the previous kernel, and wait for the update while sitting on the chair without any effort :wink:

Hi
Exactly :wink: