Cannot install 340.96 on Fedora 23 4.6.

Since the update to kernel 4.6, I cannot get the driver to load. When I try to run the NVIDIA installer, it ends with these errors.

Right now, I am dead in the water, I have no graphics for my main computer. Kindly help.

echo >&2;
echo >&2 " ERROR: Kernel configuration is invalid.";
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";
echo >&2 " Run ‘make oldconfig && make prepare’ on kernel src to fix it."; \

Arch Linux patch [1] (nvidia 340.96 + kernel 4.6)

[1] https://git.archlinux.org/svntogit/packages.git/plain/trunk/linux-4.6.patch?h=packages/nvidia-340xx&id=bb665d69eca74f01003cb41112448260a1597dc4

blablo - I downloaded this patch, but when I tried to apply it, I get the following:

root@KD1YV3 nVidia]# ./NVIDIA-Linux-x86_64-340.96.run --apply-patch nvidia.patch
Verifying archive integrity… OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 340.96…

patching file b/kernel/nv-mm.h
can’t find file to patch at input line 61
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|— a/kernel/os-mlock.c

+++ b/kernel/os-mlock.c

File to patch:

===
I also tried unpacking the file with -x then rerunning the install with --apply-patch, but resutls are the same.

Thanks
JimR

@flaflashr

~/Download $ chmod +x ./NVIDIA-Linux-x86_64-340.96.run 
~/Download $ ./NVIDIA-Linux-x86_64-340.96.run -x
Creating directory NVIDIA-Linux-x86_64-340.96
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 340.96.................................................................................................................................................................................................................................
~/Download $ cd NVIDIA-Linux-x86_64-340.96/
~/Download/NVIDIA-Linux-x86_64-340.96 $ patch -p1 -i ../linux-4.6.patch 
patching file kernel/nv-mm.h
patching file kernel/os-mlock.c
Hunk #3 succeeded at 59 (offset -1 lines).
Hunk #4 succeeded at 86 (offset -1 lines).
patching file kernel/conftest.sh
patching file kernel/Makefile
patching file kernel/uvm/nvidia_uvm_lite.c
~/Download/NVIDIA-Linux-x86_64-340.96 $

Good luck

The patch worked as you stated. However, when I try to install the driver, I still get the same error:

NVIDIA: calling KBUILD…
make[1]: Entering directory ‘/usr/src/kernels/4.6.5-200.fc23.x86_64’
/usr/bin/make -C /lib/modules/4.6.5-200.fc23.x86_64/build KBUILD_SRC=/usr/src/kernels/4.6.5-200.fc23.x86_64
-f /usr/src/kernels/4.6.5-200.fc23.x86_64/Makefile modules
make[2]: Entering directory ‘/usr/src/kernels/4.6.5-200.fc23.x86_64’
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (
echo >&2;
echo >&2 " ERROR: Kernel configuration is invalid.";
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";
echo >&2 " Run ‘make oldconfig && make prepare’ on kernel src to fix it.";
echo >&2 ;
/bin/false)
mkdir -p /tmp/selfgz1333/NVIDIA-Linux-x86_64-340.96/kernel/.tmp_versions ; rm -f /tmp/selfgz1333/NVIDIA-Linux-x86_64-340.96/kernel/.tmp_versions/*

===
Kindly advise.

Anybody?

I have the same issue but I use the None 64 OS with PAE. I would like to get my system to work with Nvidia as well. any and all suggestion will help.

thank you