Fully Working Patch for Nvidia Driver 340.102 [Compiler/Installer File] and Linux Kernel 4.11
For those who would like to immediately begin using [b]Nvidia Driver 340.102[/b] with [b]Linux Kernel 4.11-rcX / 4.11[/b], apply the fully working patch provided here: - Name of the patch file is: "[b]nv_patch_340.102_linux_kernel_4.11[/b]", see direct links or extract from attached "patch.zip" file below - The patch is a cleaned-up combination of 3 individual patches for Linux Kernels 4.9, 4.10, & 4.11 - I have fully tested the patch and it works well without any issues - [b]100% FULL CREDIT[/b] and [b]MANY THANKS[/b] for those original, individual patches go out to: [b]Alberto Milone[/b], [b]Michael Marley[/b], & [b]Robert Hooker[/b] Instructions for Applying Patch [nv_patch_340.102_linux_kernel_4.11] to Nvidia Driver Compiler/Installer 340.102 used with Linux Kernel 4.11 in CLI/Terminal: 1) Download the following NVIDIA Driver Compiler/Installer file from NVIDIA website for Linux: NVIDIA-Linux-x86_64-340.102.run 2) Go into CLI/Terminal, and SU into root(#) 3) Completely Exit Xorg Server: The command "systemctl isolate multi-user.target" usually followed by "CTL+ALT+[F1 to F6]" will do this 4) In CLI, go into root then provide execution permissions: "chmod 755 NVIDIA-Linux-x86_64-340.102.run" 5) Extract the Nvidia Driver Compiler/Installer Contents & Source Files: "./NVIDIA-Linux-x86_64-340.102.run --extract-only" 6) Copy [cp] Patch File "nv_patch_340.102_linux_kernel_4.11" into "NVIDIA-Linux-x86_64-340.102" directory 7) Go into [cd] "NVIDIA-Linux-x86_64-340.102" directory where patch file is now located 8) Apply Patch in that directory: "patch -p0 < nv_patch_340.102_linux_kernel_4.11" 9) Proceed with NVIDIA Driver Compilation & Installation by running "./nvidia-installer". Important: Make sure the Nouveau Driver is disabled-blacklisted and modeset set to 0 in /etc/modprobe.d with "blacklist nouveau" & "options nouveau modeset=0", and the Initial RAM Disk (initrd) is created prior to compiling, installing & rebooting. Enjoy! Note: You may wish to test out the patch first by executing a Dry-Run with: "patch --dry-run -p0 < nv_patch_340.102_linux_kernel_4.11" Pastebin & Google links for patch "nv_patch_340.102_linux_kernel_4.11": https://pastebin.com/raw/stBSENAk & https://goo.gl/VQpoY2
Answer Accepted by Original Poster
For those who would like to immediately begin using Nvidia Driver 340.102 with Linux Kernel 4.11-rcX / 4.11, apply the fully working patch provided here:

- Name of the patch file is: "nv_patch_340.102_linux_kernel_4.11", see direct links or extract from attached "patch.zip" file below

- The patch is a cleaned-up combination of 3 individual patches for Linux Kernels 4.9, 4.10, & 4.11

- I have fully tested the patch and it works well without any issues

- 100% FULL CREDIT and MANY THANKS for those original, individual patches go out to: Alberto Milone, Michael Marley, & Robert Hooker

Instructions for Applying Patch [nv_patch_340.102_linux_kernel_4.11] to Nvidia Driver Compiler/Installer 340.102 used with Linux Kernel 4.11 in CLI/Terminal:

1) Download the following NVIDIA Driver Compiler/Installer file from NVIDIA website for Linux: NVIDIA-Linux-x86_64-340.102.run
2) Go into CLI/Terminal, and SU into root(#)
3) Completely Exit Xorg Server: The command "systemctl isolate multi-user.target" usually followed by "CTL+ALT+[F1 to F6]" will do this
4) In CLI, go into root then provide execution permissions: "chmod 755 NVIDIA-Linux-x86_64-340.102.run"
5) Extract the Nvidia Driver Compiler/Installer Contents & Source Files: "./NVIDIA-Linux-x86_64-340.102.run --extract-only"
6) Copy [cp] Patch File "nv_patch_340.102_linux_kernel_4.11" into "NVIDIA-Linux-x86_64-340.102" directory
7) Go into [cd] "NVIDIA-Linux-x86_64-340.102" directory where patch file is now located
8) Apply Patch in that directory: "patch -p0 < nv_patch_340.102_linux_kernel_4.11"
9) Proceed with NVIDIA Driver Compilation & Installation by running "./nvidia-installer". Important: Make sure the Nouveau Driver is disabled-blacklisted and modeset set to 0 in /etc/modprobe.d with "blacklist nouveau" & "options nouveau modeset=0", and the Initial RAM Disk (initrd) is created prior to compiling, installing & rebooting. Enjoy!

Note: You may wish to test out the patch first by executing a Dry-Run with:
"patch --dry-run -p0 < nv_patch_340.102_linux_kernel_4.11"

Pastebin & Google links for patch "nv_patch_340.102_linux_kernel_4.11":
https://pastebin.com/raw/stBSENAk
& https://goo.gl/VQpoY2
Attachments

patch.zip

#1
Posted 04/21/2017 11:36 AM   
I tried this and it fails with "ERROR: Unable to load kernel module" When I tried modprobe myself it said it couldn't find nvidea_375 I'm guessing that's the problem since I believe it's supposed to look for nvidea_340 but I have no idea how to fix this
I tried this and it fails with "ERROR: Unable to load kernel module"
When I tried modprobe myself it said it couldn't find nvidea_375 I'm guessing that's the problem since I believe it's supposed to look for nvidea_340 but I have no idea how to fix this

#2
Posted 04/23/2017 03:33 PM   
Reply to Dav1d1700, who said: [quote=""]I tried this and it fails with "ERROR: Unable to load kernel module" When I tried modprobe myself it said it couldn't find nvidea_375 I'm guessing that's the problem since I believe it's supposed to look for nvidea_340 but I have no idea how to fix this [/quote] The post I made clearly indicates the patch is for Nvidia Linux Driver 340.102, and [b]NOT[/b] 375, and is only to be used with Linux Kernel 4.11.
Reply to Dav1d1700, who said:

said:I tried this and it fails with "ERROR: Unable to load kernel module"
When I tried modprobe myself it said it couldn't find nvidea_375 I'm guessing that's the problem since I believe it's supposed to look for nvidea_340 but I have no idea how to fix this


The post I made clearly indicates the patch is for Nvidia Linux Driver 340.102, and NOT 375, and is only to be used with Linux Kernel 4.11.

#3
Posted 04/23/2017 03:46 PM   
Thanks! Works great! Ben
Thanks! Works great!

Ben

#4
Posted 06/04/2017 03:13 PM   
Can confirm patch worked on my system as well. Thanks ejmarkow much appreciated. Tip: to avoid typing error hassels change patch and NVIDIA driver run file names to simpler names prior to leaving Xorg graphics mode for installation
Can confirm patch worked on my system as well.



Thanks ejmarkow much appreciated.



Tip: to avoid typing error hassels change patch and NVIDIA driver run file names to simpler names prior to leaving Xorg graphics mode for installation

#5
Posted 06/05/2017 12:09 AM   
I can confirm these instructions work for Fedora 25 with kernel 4.11.x. Thanks for posting.
I can confirm these instructions work for Fedora 25 with kernel 4.11.x. Thanks for posting.

#6
Posted 06/08/2017 11:55 PM   
Scroll To Top

Add Reply