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: 5

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 / 418.113 / 435.21 drivers and latest 5.15, 5.14, 5.13, 5.12, 5.11, 5.10 and 5.9 kernels. NVIDIA 390.147 works currently without any kernel patches. 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...

123 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: 5

1 3 4 5
    1. I was able to use this patch to get NVIDIA driver 460.80 working on kernel 5.15. It would be nice if the shell script could be updated accordingly.

      diff -Nurp NVIDIA-Linux-x86_64-460.80.orig/kernel/common/inc/nv-time.h NVIDIA-Linux-x86_64-460.80/kernel/common/inc/nv-time.h
      — NVIDIA-Linux-x86_64-460.80.orig/kernel/common/inc/nv-time.h 2021-05-07 07:11:13.000000000 +0000
      +++ NVIDIA-Linux-x86_64-460.80/kernel/common/inc/nv-time.h 2021-12-27 20:54:47.759983626 +0000
      @@ -205,7 +205,7 @@ static inline NV_STATUS nv_sleep_ms(unsi
      // the requested timeout has expired, loop until less
      // than a jiffie of the desired delay remains.
      //
      – current->state = TASK_INTERRUPTIBLE;
      + current->__state = TASK_INTERRUPTIBLE;
      do
      {
      schedule_timeout(jiffies);
      diff -Nurp NVIDIA-Linux-x86_64-460.80.orig/kernel/nvidia-drm/nvidia-drm-crtc.c NVIDIA-Linux-x86_64-460.80/kernel/nvidia-drm/nvidia-drm-crtc.c
      — NVIDIA-Linux-x86_64-460.80.orig/kernel/nvidia-drm/nvidia-drm-crtc.c 2021-05-07 07:11:13.000000000 +0000
      +++ NVIDIA-Linux-x86_64-460.80/kernel/nvidia-drm/nvidia-drm-crtc.c 2021-12-27 21:49:57.541971000 +0000
      @@ -227,8 +227,9 @@ static bool __is_async_flip_requested(co
      }

      static int nv_drm_plane_atomic_check(struct drm_plane *plane,
      – struct drm_plane_state *plane_state)
      + struct drm_atomic_state *atomic_state)
      {
      + struct drm_plane_state *plane_state = atomic_state->planes->state;
      int i;
      struct drm_crtc *crtc;
      struct drm_crtc_state *crtc_state;
      @@ -276,12 +277,12 @@ done:
      }

      static void nv_drm_plane_atomic_update(struct drm_plane *plane,
      – struct drm_plane_state *old_state)
      + struct drm_atomic_state *old_state)
      {
      }

      static void nv_drm_plane_atomic_disable(struct drm_plane *plane,
      – struct drm_plane_state *old_state)
      + struct drm_atomic_state *old_state)
      {
      }

      diff -Nurp NVIDIA-Linux-x86_64-460.80.orig/kernel/nvidia-drm/nvidia-drm-drv.c NVIDIA-Linux-x86_64-460.80/kernel/nvidia-drm/nvidia-drm-drv.c
      — NVIDIA-Linux-x86_64-460.80.orig/kernel/nvidia-drm/nvidia-drm-drv.c 2021-05-07 07:11:13.000000000 +0000
      +++ NVIDIA-Linux-x86_64-460.80/kernel/nvidia-drm/nvidia-drm-drv.c 2021-12-27 21:57:28.059969281 +0000
      @@ -865,9 +865,9 @@ static void nv_drm_register_drm_device(c

      dev->dev_private = nv_dev;
      nv_dev->dev = dev;
      – if (device->bus == &pci_bus_type) {
      + /* if (device->bus == &pci_bus_type) {
      dev->pdev = to_pci_dev(device);
      – }
      + } */

      /* Register DRM device to DRM sub-system */

      Reply
      • Hi Andrew,

        Thanks for sharing this, looks nice. I will update script, if this is needed. So do you have some specific reason why you want to run NVIDIA 460.80 Drivers?

        Reply
    2. Been using this script to get my Vostro 2510 with GeForce 8400M GS working for a long time now on every new kernel that comes out.
      I have it on 5.15.13 currently and can even use Xanmod as well! 8)

      Will there be support for kernel 5.16 soon?

      This script is a life saver, I don’t know what I’ll do if it stops being updated as this is the only way I’ve been keeping my laptop up to date.

      Thank you JR for all your work!

      Reply
1 3 4 5

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.

Close