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

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.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: Download and Use inttf NVIDIA Patcher BASH Script 1. Change root user su - # OR # sudo -i 2. Install...

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

1 2 3
    1. Would you consider also providing direct links to the patch files for those who’d rather not run a script or who just want to inspect them?

      Reply
    2. Thanks, works on driver 390.141 and kernel 5.11.

      Reply
      • Excellent! Nice to hear it worked for you!

        Reply
    3. thanks for publishing your work, I tried it out on Ubuntu Linux Mint 20.1 kernel 5.11
      it compiles, it installs
      but it can not load the driver

      [ 13.140069] nvidiafb 0000:02:00.0: BAR 3: can’t reserve [mem 0xdc000000-0xddffffff 64bit pref]
      [ 13.144322] nvidiafb: cannot request PCI regions

      Reply
      • Hello Michael,

        Is this some GPU passthrough style system?

        You can try add video=efifb:off boot parameter.

        Reply
    4. I’ve been running LMDE4(Linux Mint Debian Version) with Nvidia 390.141 from Debian Sid with liquorix kernels, will I need to uninstall The Sid version of Nvidia 390 before using the patch .run (by the way, already read and ran the script and it created the patch run with no errors)

      Reply
      • Hello Tenny,

        Yes uninstall sid version first. There might still be some configuration to do what Debian own installer do for you. Please let me know if you have problems and I can try to help.

        Reply
    5. I am running LMDE4 (Linux mint Debian Edition) with Nvidia 390 from Debian Sid and running liquorix kernels. Would I have to uninstall Nvidia Sid Version before using the patch .run?

      Reply
      • Hi Jaysen,

        Yes, if you have NVIDIA drivers installed before, then uninstall old drivers first.

        Reply
    6. Hello,

      would you mind adding support for 304.xx branch too ? for older hardware.

      Thanks

      Reply
      • Hello chleb,

        NVIDIA 304xx would be nice addition to this list, but unfortunately it might be even impossible to patch for latest 5.11 kernel versions. Looks like latest patches are mainly for kernel 4.xx and some maybe for 5.0, 5.1 and 5.4 kernels.

        Reply
        • Hello JR,

          thanks for your reply.

          I’ve found this repo talking about this specific point :
          https://github.com/jorgem-seq/NVIDIA-Linux-304.137-patches/issues/1

          User Alexandre20323453 links to some code there : https://pastebin.com/raw/Bn5s7hfz

          And user Burezzo who opened the issue thanks Alexandre, so I guess it may have worked for them ?

          Unfortunately, I am not an advanced user enough in linux OSes to know how to code / apply patch to code , recompile etc..

          I’ve found your “universal” patcher for 435.xx, 418.xx, 340.xx,
          and I was wondering if by any chance, you could add the 304.137 branch to the same 5.11/5.10 kernels
          (if this pastebin code is working, of course).

          Reply
          • Hello chleb,

            This pastebin code is only script which apply patches.

            I checked jorgem-seq repo and unfortunately this won’t work for Fedora. Latest kernel patches are for Kernel 5.6 and also this will need Xorg-server < 1.20, and all supported Fedora versions Fedora 34, 33, 32 uses Xorg-server 1.20 (https://koji.fedoraproject.org/koji/packageinfo?packageID=63). Actually Fedora 28 is the latest which uses compatible Xorg-server 1.19.

            So if you really need to get this working then you will need custom kernel and old Xorg. If you get this part working, then you will see next problems with desktop environments which will need Xorg 1.20 and then you will need also custom builds / older desktop versions and so on.

            So the easiest way is use some Linux distro which uses old packages or upgrade your NVIDIA graphics card.

            Reply
            • Hello JR,

              thanks again for your insight.
              totally stupid of me : forgot to tell I’m on Ubuntu 21.04

              Does it change anything to you analyse ?

              Just so you know, before even asking here in comments section, I force installed it on the pc, it was a virgin and fresh ubuntu install, wasn’t a big deal if I wreaked it and had to reinstall.

              I ran your script and then installed the driver, it had errors of course, BUT, before installing driver, GUI was working bad and it got worse each time you tried to interact with, until it completely froze and had to switch to CLI (ctrl Alt Fn)

              And after installing this Frankenstein baked driver, it is now stable but running at very low resolution.
              Can’t really tell why/how.

              Maybe I just wrecked everything and it’s just the failsafe mode.

              chleb

              Reply
              • Oh, sorry, some reason I assumed you are looking this for Fedora. Ubuntu might change this a bit.

                Could you post output of following commands:

                dpkg -l |grep xserver-xorg-core
                
                uname -a
                
                lspci |grep -E "VGA|3D"
                
                Reply
                • hey JR,

                  thanks for helping out.

                  here is the output of asked commands :


                  dpkg -l |grep xserver-xorg-core
                  ii xserver-xorg-core 2:1.20.11-1ubuntu1 amd64 Xorg X server - core server

                  uname -a
                  Linux 5.11.0-17-generic #18-Ubuntu SMP Thu May 6 20:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

                  lspci |grep -E "VGA|3D"
                  00:12.0 VGA compatible controller: NVIDIA Corporation C68 [GeForce 7025 / nForce 630a] (rev a2)

                  Just so you know, this computer is now reinstalled from scratch.
                  No more Frankenstein driver, only a clean ubuntu (full desktop install).

                  Reply
                  • Hi chleb,

                    Thanks for this information. It looks like there is no way to get any current distro working with 304xx drivers, because almost every distro is using xorg server 1.20+ and only 1.19 is supported. This is something what only NVIDIA can fix. Maybe some Ubuntu LTS, CentOS or old Debian support still 304xx and security updates.

                    Reply
    7. Have just the above and it saved me after recent kernel update to 5.11 on Fedora, funny thing it initially came out as “Failed to Start Light Display Manager Error”

      Reply
    8. Hello JR,

      Cannot read again your last reply with commands you asked me to input.
      (ubuntu 21.04 and 304.137 driver)

      My old shuttle computer was off for few days, mini itx PSU died.
      Put it back up with a full size ATX PSU for now.

      Could you please re publish our thread ?
      So I’d be able to try your commands and report results ?
      Thanks

      Reply
    9. How about 390 Driver? In April it worked. Now it’s gone? Why

      Reply
      • Hello Torsten,

        NVIDIA 390.143 works without any patches with Kernel 5.12. So that’s why it’s removed here until some patches are needed.

        Reply
    10. Man!!!
      This was a life saver for me.
      I have HP 8740w laptop with NVIDIA Quadro FX 2800M [G92GLM]. As it turns out it is unsupported driver in debian bullseye branch. So was strugling with power and sleep issues. And i then find this.
      Only thing i have to figure out was how to install .(Which i got from official NVIDIA site, I completed all the pre install tasks and the above patched installer script just installs fine).
      Thank you very much

      Reply
    11. Man, really, I don’t know how can I thank you
      Really… I suffer with legacy nvidia driver installation for a long long time
      Your script gave me a chance to use my VGA 9600 and in a old laptop 540M

      Again thank you soo much

      Reply
    12. This morning I got all of latest Fedora packages by doing a ‘dnf update’. In the process I got kernel 5.13. Your 340.108 patched Nvidia installer package does not work with the 5.13 kernel. Are you going to update your NVIDIA-Linux-x86_64-340.108-patched-kernel-5.10.run? Can you give me suggestions on how to update it for the 5.13 kernel? Thanks.

      Reply
    13. Yesterday I did a “dnf update” getting the latest packages for my Fedora 34 build. In the process I got the 5.13 kernel. Unfortunately your 340.108.patched Nvidia installer did not work. Are planning on updating it to make it work for the 5.13 kernel? Thanks.

      Reply
    14. Thanks for this excellent summary. I’ve been trying to make this work all week !
      (I was using Fedora 34 and a GeForce 210).

      Reply
1 2 3

Leave a Reply to torsumy 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