inttf NVIDIA 340.xx, 390.xx, 418.xx, 435.xx Patcher for Kernel 5.15/5.14/5.13/5.12 [BASH Script] - Comment Page: 4

This is a BASH script, which download NVIDIA installer, extract it, patch it and make new patched installer package. This is very quickly tested alpha version so if you have any problems please let me know or if this works as it should you can also let me know. I use here currently ARCH Linux Patches + my own patches. Currently this works with NVIDIA 340.108 / 390.144 / 418.113 / 435.21 drivers and latest 5.15, 5.14, 5.13, 5.12, 5.11, 5.10 and 5.9 kernels. This should work with any distribution. You just need install wget and patch packages. Check video version of guide: Watch More Videos and Subscribe to Youtube Channel Download and...

103 comments on “inttf NVIDIA 340.xx, 390.xx, 418.xx, 435.xx Patcher for Kernel 5.15/5.14/5.13/5.12 [BASH Script] - Comment Page: 4

1 2 3 4
    1. not working on kernel 5.10.7

      • Hello asenler,

        What Linux distro+Kernel you are using and what version of NVIDIA drivers you are using? What errors you get?

    2. I used the with Ubuntu 20.04.3 LTS & kernel

      and got the this patch:

      is the the 5.14 patch is the correct one for me? I thought I should get something like not the …

      Am I right???

    3. Update. Ubuntu 20.04 lts and kernel

      After using the batch I got …. instead of …patched-5.11

      Anyway I used the

      After rebooting I got a black screen

      I had to uninstall the drivers using
      … — uninstall

      Could you please fix the patch file. Thanks

      • Hello usama,

        Thanks for this, I will check soon kernel 5.15 patches.

        • I have kernel 5.15.3 so the script doesn’t patch the driver. İf you added the kernel-5.15.patch it will be very good job.

          • Hello Ali,

            Kernel 5.15 patches are available.

    4. I have 5.11 kernel (and only one), when run:
      ./ -v 418.113
      I got
      but this is version 5.14
      so what to do?
      try to install from this file anyway?

      #uname -mrs
      Linux 5.11.0-40-generic x86_64

      • It’s backward compatible at some point, but if it fails, then it’s maybe easiest to drop some patches.

    5. Many thanks for putting this together. I’m still having issues after running this and following the instructions to install NVIDIA drivers. After installing and rebooting, I get the error, “Failed to start Dispatch Pmts to Console Directory Watch” during start up.

      One possible issue is that when I run the Patcher, it builds a file even though my current kernel is 5.11. Is this potentially causing the issue?

      I’m trying to install this on an old Macbook (mid-2010) running Ubuntu with a GeForce 320M.

      Any ideas what may be causing the error? I re-installed and reverted back to the Nouveau driver for now.

      • Hello BR Stoll,

        Looks like this is harmless error and depends on dracut. What version of Ubuntu you are using?

    6. Found a few other files that need patching. In the 5.14 kernel on Fedora 34, I still get these errors:
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/uvm_common.o
      /var/lib/dkms/nvidia/390.144/build/nvidia/nv-mmap.c: In function ‘nv_encode_caching’:
      /var/lib/dkms/nvidia/390.144/build/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
      255 | if (NV_ALLOW_CACHING(memory_type))
      | ^
      /var/lib/dkms/nvidia/390.144/build/nvidia/nv-mmap.c:257:9: note: here
      257 | default:
      | ^~~~~~~
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/uvm_linux.o
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/nvstatus.o
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/nvCpuUuid.o
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/uvm8.o
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/uvm8_tools.o
      /var/lib/dkms/nvidia/390.144/build/nvidia/nvlink_linux.c: In function ‘nvlink_sleep’:
      /var/lib/dkms/nvidia/390.144/build/nvidia/nvlink_linux.c:600:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
      600 | current->state = TASK_INTERRUPTIBLE;
      | ^~~~~
      | __state
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/uvm8_global.o
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/uvm8_gpu.o
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/uvm8_gpu_isr.o
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/uvm8_procfs.o
      make[2]: *** [scripts/ /var/lib/dkms/nvidia/390.144/build/nvidia/nvlink_linux.o] Error 1
      make[2]: *** Waiting for unfinished jobs….
      CC [M] /var/lib/dkms/nvidia/390.144/build/nvidia-uvm/uvm8_va_space.o
      /var/lib/dkms/nvidia/390.144/build/nvidia/os-interface.c: In function ‘os_delay’:
      /var/lib/dkms/nvidia/390.144/build/nvidia/os-interface.c:583:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
      583 | current->state = TASK_INTERRUPTIBLE;
      | ^~~~~
      | __state
      make[2]: *** [scripts/ /var/lib/dkms/nvidia/390.144/build/nvidia/os-interface.o] Error 1
      make[1]: *** [Makefile:1858: /var/lib/dkms/nvidia/390.144/build] Error 2
      make[1]: Leaving directory ‘/usr/src/kernels/5.14.16-201.fc34.x86_64’
      make: *** [Makefile:81: modules] Error 2

      • Hello John,

        Did you used patched version of NVIDIA 390.144? It works with 5.14 and 5.15 kernels.

    7. I upgraded kernel to 5.15 then nvidia 340.1098 driver fail. i hope to find a solution

      • Kernel 5.15 should work now!

    8. I have download sh file today but the file does’t update for kernel-5.15. for this reason installation of driver failed.

      • Hi Ali,

        It have to be cached copy, some reason, what you get. If you try again:

        wget -O

        Then run:

        grep "kernel-5.15.patch" 

        You should see:

        'kernel-5.15.patch' )
1 2 3 4

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.