Nvidia drivers on Fedora 18 with kernel 3.8
It appears the workaround to allow the Nvidia 313.18 driver installation on Fedora 18 running 3.7.x kernels doesn’t work with the recently released 3.8.1 kernel. I found another workaround to install the Nvidia drivers for 3.8 kernels, so here it is:
Create a patch file and save it on your machine.
cat ~/nvidia_patch
--- a/conftest.sh +++ b/conftest.sh @@ -160,6 +160,7 @@ build_cflags() { if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include" + CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include/uapi" CFLAGS="$CFLAGS -I$OUTPUT/arch/x86/include/generated" CFLAGS="$CFLAGS -I$OUTPUT/arch/x86/include/generated/uapi" elif [ "$ARCH" = "arm" ]; then
I also uploaded the patch here to make it easier for copy & paste.
Go to the Nvidia source dir and apply the patch
cd /usr/src/nvidia-313.18 sudo patch < ~/nvidia_patch
Now run dkms and it should build without errors
sudo dkms install -m nvidia -v 313.18 -k 3.8.1-201.fc18.x86_64
Confirm the module was built successfully
sudo dkms status nvidia nvidia, 313.18, 3.7.9-201.fc18.x86_64, x86_64: installed nvidia, 313.18, 3.7.9-205.fc18.x86_64, x86_64: installed nvidia, 313.18, 3.8.1-201.fc18.x86_64, x86_64: installed
Hope this helps. Cheers.
via bugs.gentoo.org
Comments
seems to be obsolete for 313.26…? worked without your patch. thanks for the nvidia howtos tough
Hi, sorry for the late reply. I didn’t have time to test 313.26, maybe I will although it doesn’t bring anything new apart from the GTX Titan support. Anyway good to hear the new driver works without the patch. Thanks.