The 340.101 driver is working well with Linux 4.8.13, but the 340.xx driver has always had this “already registered” problem with 4.9 since at least 4.9-rc2 - I had hoped (expected?) 340.101 would fix this issue.
Apply the following PATCH to NVIDIA Driver 340.101 for it to work with Linux Kernel 4.9. It adds 4 lines of code to the nv-drm.c file to enable the “DRIVER_LEGACY” flag if kernel version is >= 4.9.0.
I just want to let people know that I used ejmarkow’s patch and successfully got nvidia 340.101 to work on my system running openSUSE Leap-42.2 with the 4.9.0 Linux Kernel.
For me the patch worked right but only after changing the login session manager. I was using gdm and now I changed it to kdm. At least this the only thing I was finally did and then it worked.
I’m using Fedora 25 with kernel 4.9.3-200, nvidia legacy 340.101 patched, and xorg is 1.19.1.
Apply the following PATCH to NVIDIA Driver 340.101 for it to work with Linux Kernel 4.9. It adds 4 lines of code to the nv-drm.c file to enable the “DRIVER_LEGACY” flag if kernel version is >= 4.9.0.
Copy Patch File “patch_nv1” into “NVIDIA-Linux-x86_64-340.101” directory
Go into (cd into) “NVIDIA-Linux-x86_64-340.101” directory where patch file is now located
Apply Patch: patch -p0 < patch_nv1
Proceed with NVIDIA Driver Installation, Enjoy!
Tested on my Linux system & runs very well, both nvidia.ko & nvidia_uvm.ko compile and load without any issues.
Hi… quick question from a new poster. I’ve been having nothing but problems with my FC25 Linux box after the FC25 upgrade, related to the nvidia driver. I’m using a legacy GeForce 8400 GS video card. I understand the instructions above for applying the patch to the uncompressed 340.101 archive. What are the specifics for 8) above? Should I expect an issue since I’ve already run the installer a few times, without success?
Thanks so much for the reply. I tried this and got the (now usual) error:
ERROR : Unable to load the kernel module ‘nvidia.ko’. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that…
I’m running the following kernel (from uname -a):
Linux flash 4.9.3-200.fc25.x86_64 #1 SMP Fri Jan 13 01:01:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linix
Trying nvidia driver install on a Dell Poweredge T310 with 32GB memory and Intel X3470 quad processor. I’m thinking my
problem has to do with the fact I’m using a Dell server… BIOS settings perhaps? I had a similar problem when I upgraded to FC23,
but don’t remember how I got it working. I don’t know what video cards are supported by the platform. Maybe I need to spring for a legacy AMD Catalyst card…
Hi BillR,
Similar to yourself, I’m on a Dell T3500 workstation and none of the patches for .101/.102 or .98 have worked for my F24 install. I’m still getting NVRM: failed to register procfs! as well as the main message unable to load the kernel module nvidia.ko.
The odd thing is, if I rollback to use a 4.8 kernel from my F23 installation, the NVidia install using any one of the patched driver versions above work.
sed ‘s|./kernel|kernel|g’ kernel_4.10.patch > kernel_4.10.patch.conformant
sh ./NVIDIA-Linux-x86_64-378.13.run --apply-patch kernel_4.10.patch.conformant