inttf NVIDIA 340.108 / 390.154 Patcher for Kernel 6.2/6.1/6.0/5.19/5.18/5.17/5.16/5.15/5.14/5.13 [BASH Script] - Comment Page: 3

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.154 / 418.113 / 435.21 drivers and latest 6.2, 6.1, 6.0, 5.19, 5.18, 5.17, 5.16, 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 if-not-true-then-false.com Youtube...

257 comments on “inttf NVIDIA 340.108 / 390.154 Patcher for Kernel 6.2/6.1/6.0/5.19/5.18/5.17/5.16/5.15/5.14/5.13 [BASH Script] - Comment Page: 3

1 2 3 4 5 9
    1. x86 version not available?

      Reply
      • Unfortunately no. If you find suitable / working patches, then patching should be easy job.

        Reply
    2. Thanks for this. I’ve been begging NVidia to fix this (release a newer driver for older cards). Due to this post, I have the NVidia driver back on my Linux workstation!

      Reply
    3. Your script was a lifesaver, thank you!

      I have a VOSTRO 2510 which I really love and have used for many years.
      It’s stuck on NVIDIA 340.108 due to NVIDIA abandoning hardware that still has life in it.
      I’m able to play many new games, even the new Axiom Verge 2 under wine, yet NVIDIA seems to think it’s obsolete.
      (I prefer older 2D type games anyhow so almost everything I like runs perfectly on my laptop.)
      I’m able to get the latest prereqs and compile most software I like as well.

      One quick question: I used to use XANMOD and really like it but can not get it to work with your script.
      Is there an easy fix and/or a possible update you could add which would also allow XANMOD to work?

      Thank you for the script. It is greatly appreciated.

      – Dieter

      Reply
      • Hello,

        Thanks, nice to hear that this helped you.

        Do you mean XanMod kernel 5.13 or 5.14?

        Kernel 5.13 should work, currently only Fedora 5.13 is tested, so XanMod might have something built in what cause problems.

        Reply
        • I will try 5.13 and see.
          Sorry it took so long to respond.
          Thanks!

          Reply
          • Hot damn!
            I was able to get it working on 5.13 but it did give me the compiler version miss match error.
            I said “compile anyhow” and miraculously, it actually did!
            (I’ve had this error before and this is the first time I’ve had it successfully compile with it.)
            Everything is working.

            Reply
            • Excellent! Nice to hear that you got everything working!

              Reply
              • Is there any possibility of 5.14 ever working?
                I’ve been using Xanmod 5.13.19 and it’s great but APT keeps wanting to update to 5.14.X
                and I have to hold it back as I can’t get NVIDIA drivers working under it.
                Do U plan on doing an updated script for kernel 5.14 ?

                Reply
                • Hello MENTD,

                  340.xx is now updated for 5.14.x (re-run from step 4.). Next I’m testing 390.xx and others.

                  Reply
    4. Thanks bro, Working like a charm for kernel 5.11.0-34-generic. you saved our life :-)

      Reply
    5. I have kernel 5.9 on OpenSUSE. Can I use the patch to install the 340.108 driver or does or work only for 5.11?

      Reply
      • It should work with kernel 5.9 also. It’s possible to patch NVIDIA 340.108 working with kernel 5.9 too.

        Reply
    6. I have 2 VGA – integrated intel and GT8500. Tried to use patched version, it installs suceccsfully but X server freezes after boot. Tried to blacklist nouveau, unloaded it manually after loaded nvidia manually but when i try to start X it just freezes with black screen. Should it work with 2 cards?

      Reply
      • Hello Paul,

        It should work with two cards. What distro you are using? Could you post output of following commands:

        uname -a
        
        lspci |grep -E "VGA|3D"
        Reply
    7. Hi,

      thanks for the script. Kept my opensuse notebook with NVS3100M alive for quite some time now, until I upgraded to leap 15.3.

      Leap 15.3 uses kernel 5.9 (while 15.2 used 5.6) but backports it to pretend it is a 5.3 so I changed all linux version defines in your patch files to reflect that until it compiled and installed fine.

      Unfortunately when starting X, the drm module crashes anyways and the session hangs:

      [ 2217.121352] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 0
      [ 2217.121362] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 340.108 Wed Dec 11 11:06:58 PST 2019
      [ 2254.325537] BUG: kernel NULL pointer dereference, address: 0000000000000038
      [ 2254.325551] #PF: supervisor read access in kernel mode
      [ 2254.325558] #PF: error_code(0x0000) – not-present page
      [ 2254.325564] PGD 0 P4D 0
      [ 2254.325572] Oops: 0000 [#1] SMP PTI
      [ 2254.325582] CPU: 2 PID: 7378 Comm: X Tainted: P OE X N 5.3.18-57-default #1 SLE15-SP3
      [ 2254.325591] Hardware name: LENOVO 43147VG/43147VG, BIOS 6MET92WW (1.52 ) 09/26/2012
      [ 2254.325650] RIP: 0010:drm_pci_set_busid+0x12/0x80 [drm]
      [ 2254.325659] Code: fa ff ff 49 8b 84 24 80 01 00 00 eb d3 66 2e 0f 1f 84 00 00 00 00 00 90 66 66 66 66 90 53 48 8b 87 88 01 00 00 31 d2 48 89 f3 8b 40 38 48 8b 40 10 45 89 c1 41 c1 e8 03 0f b6 88 e0 00 00 00
      [ 2254.325676] RSP: 0018:ffffb34d00c97d70 EFLAGS: 00010246
      [ 2254.325683] RAX: 0000000000000000 RBX: ffff9d648eca8180 RCX: 0000000000000000
      [ 2254.325690] RDX: 0000000000000000 RSI: ffff9d648eca8180 RDI: ffff9d6494f5b800
      [ 2254.325697] RBP: ffff9d6494f5b800 R08: 000000000000e200 R09: 0000000000000001
      [ 2254.325703] R10: ffffb34d00c97e40 R11: 0000000000000000 R12: ffff9d6494f5b8a8
      [ 2254.325711] R13: ffff9d64aa58c400 R14: ffff9d648eca8180 R15: ffffffffc0b16008
      [ 2254.325716] FS: 00007fcb550c66c0(0000) GS:ffff9d64b3b00000(0000) knlGS:0000000000000000
      [ 2254.325722] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [ 2254.325726] CR2: 0000000000000038 CR3: 0000000230b88000 CR4: 00000000000006e0
      [ 2254.325731] Call Trace:
      [ 2254.325764] drm_setversion+0x148/0x190 [drm]
      [ 2254.325791] ? drm_ioctl_flags+0x40/0x40 [drm]
      [ 2254.325816] drm_ioctl_kernel+0xd0/0xf0 [drm]
      [ 2254.325841] drm_ioctl+0x348/0x3e0 [drm]
      [ 2254.325867] ? drm_ioctl_flags+0x40/0x40 [drm]
      [ 2254.325877] ksys_ioctl+0x92/0xb0
      [ 2254.325883] __x64_sys_ioctl+0x16/0x20
      [ 2254.325890] do_syscall_64+0x5b/0x1e0
      [ 2254.325898] entry_SYSCALL_64_after_hwframe+0x44/0xa9

      These changes compiled:

      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, 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, 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)

      any ideas on how to proceed?

      Reply
      • Did you tried drop whole 5.11 patch?

        Reply
    8. NVIDIA-340xx/kernel-5.10.p 100%[=====================================>] 762 –.-KB/s in 0s

      2021-10-10 14:11:35 (3,17 MB/s) – «NVIDIA-340xx/kernel-5.10.patch» salvato [762/762]

      NVIDIA-340xx/kernel-5.10.patch [Fail]

      Why if everything went correct?

      Reply
      • Hi Mario,

        Try remove all patches and re-download whole script. Is it working then?

        Reply
    9. Debian 11.1 5.10.09 I have installed NVIDIA version 340.108 on my computer, I have kernel 5.10.09, but the driver is not working, and my video card is GT Geforse 9600 GT, why?

      Reply
    10. Hey, first of all thanks for working on this, this is amazing.

      I’ve used your script to install 418.113 on Ubuntu 21.10 (linux-5.13). While it seems to install fine, it just refuses to work at all.

      I’d really like to get this working, it’s the only driver that supports geforce 780M with vulkan 1.1 which is required by dxvk.

      Reply
      • Hello Yuusou,

        Could you post output of following command:

        lspci |grep -E "VGA|3D"
        
        Reply
    11. First I want to thank you for this work! It was keeping my 2008 laptop alive, but now i have a problem.

      Your patcher was working with opensuse 15.2, but after upgrading to 15.3 it doesn’t work anymore. To be more precise. The patcher works, but not the created self-extracting archive.

      Here are the relevant parts of console output:

      ~# Self-extractible archive “NVIDIA-Linux-x86_64-340.108-patched-kernel-5.14.run” successfully created.

      ~# bash NVIDIA-Linux-x86_64-340.108-patched-kernel-5.14.run
      Verifying archive integrity… OK
      Uncompressing NVIDIA driver 340.108 patched for kernel 5.14+……..etc. etc.

      The Installations fails and tells me, to look at /var/log/nvidia-installer.log

      The relevant part in the log seems to be:
      […]
      In file included from /tmp/selfgz3790/NVIDIA-Linux-x86_64-340.108/kernel/nv.c:13:0:
      /tmp/selfgz3790/NVIDIA-Linux-x86_64-340.108/kernel/nv-linux.h: At top level:
      /tmp/selfgz3790/NVIDIA-Linux-x86_64-340.108/kernel/nv-linux.h:142:10: fatal error: linux/ioctl32.h: No such file or directory
      #include /* register_ioctl32_conversion() */
      ^~~~~~~~~~~~~~~~~
      compilation terminated.
      […]

      My first thought was, that the linux kernel headers where missing or some devel packages of some libraries. I installed everything i could think of, but the problem persists.

      (The kernel is 5.3.18)

      Any help would be appreciated!

      Sven

      Reply
      • Hello Sven,

        opensuse uses not just 5.3 kernel, but also some stuff backported from 5.9 kernel. I have to install opensuse to help with this.

        Reply
        • Any update on this?
          Do you need more information?

          Greetings
          Sven

          Reply
          • Hi Sven,

            Unfortunately, I haven’t had time to install Opensuse to my test pc where I have older NVIDIA card.

            Reply
    12. Patcher for Debian 11.1 dont work.

      Reply
      • Hello flin,

        Could you tell a bit more about the error(s) what you get?

        Reply
    13. Hi!
      I have a MacBook Pro 2010 with NVIDIA 320M running ubuntu 20.04 with kernel 5.11 and patch doesn’t install.
      The installation process sends error at the end.

      Reply
      • What NVIDIA version you are trying to install?

        Reply
    14. thank’s! good work
      390-drv is working in both modes with kernel 5.14.13 on Linux Mint 20.1 and Kde Neon 5.25

      Reply
      • You are welcome! Nice to hear that works for you!

        Reply
    15. not work 5.14 on ubuntu 20.04.3 with nvidia 340.108. old version 5.11 work on kernel 5.11.15

      Reply
      • Hello rybshchun,

        Is this some special kernel? Could you post error message what you get and output of following command:

        uname -a
        Reply
        • 5.11.15-051115-generic #202104161034 SMP Fri Apr 16 10:40:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux.this kernel works with the previous patch.
          the last patch causes an error in which the download does not occur on this kernel or on others (5.8.0-43).

          Reply
1 2 3 4 5 9

Leave a Reply to Dan Cancel 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.

Close