English
Ask Your Question
1

Patch for proprietary NVIDIA 375.39 drivers with kernel 4.10

asked 2017-03-29 19:39:05 +0000

daved314 gravatar image

updated 2017-03-29 19:58:07 +0000

With the latest update to kernel 4.10 in fedora 25, the latest version of the NVIDIA proprietary drivers for the GTX 900 series no longer compiles. The error happens when the installer attempts to compile the kernel modules and fails with a missing fence.h file (and other errors). This prevents the driver from being installed at all.

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
3

answered 2017-03-29 19:57:31 +0000

daved314 gravatar image

Thanks to @sideburns and @steveebey73742 I was able to put together a patch for the NVIDIA 375.39 driver (This is the latest driver for the GTX 950... which I use). Below is the patch file (I can't upload files with this account). To utilize this you need to:

Boot into multi-user mode using the new 4.10 kernel (command line only)

  1. Extract the driver source by running the NVIDIA-Linux-x86_64-375.39.run command with -x option.

    • ./NVIDIA-Linux-x86_64-375.39.run -x
  2. Use the patch command for the file you created:

    • patch -p1 < nameofpatchfile.patch
  3. Change into the extracted driver folder and run the NVIDIA installer

    • ./nvidia-installer
  4. Then utilize the same options you normally would for the driver

  5. Lastly, reboot into graphical user mode

Before this patch the NVIDIA install was failing with missing fence.h and other dkms kernel module failures. After the patch everything went as smoothly as before the kernel update.

https://pastebin.com/giS541m0

edit flag offensive delete link more

Comments

I do have a GTX970, and I have posted in another post, a link to download 378.13 if you want to use it. The post link is https://ask.fedoraproject.org/en/question/103314/newish-nvidia-driver/

steveebey73742 ( 2017-03-30 04:49:37 +0000 )edit

Yeah as I was investigating more, I realized that the 375.39 is the "long support" version and the 378.13 is also valid for my card type too. I should probably be running that one. The only reason I had the 375.39 is that when I did the "search for driver" on the NVIDIA website, this is the first one suggested for my card and linux.

I'll make trying the higher version'd one a weekend project :)

Thanks!

daved314 ( 2017-03-30 13:24:45 +0000 )edit

not sure why it has never been officially posted, found it when I was poking around the ftp site. The only issue i still deal with, is plymouth startup splash is text only. tried suggestions from all over the net, and think it might be specific to the 900 family as to not wanting frame buffer. funny thing, when shutdown or restart, i do get that splash from plymouth.

steveebey73742 ( 2017-03-30 13:56:21 +0000 )edit
0

answered 2017-04-05 07:55:32 +0000

Hello,

I have a GeForce GTX 770 (with driver version 375.39). After the recent update to kernel 4.9.~/4.10.~, building NVIDIA kernel modules failed. The patch worked fine, saved my day.

Thanks a ton!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2017-03-29 19:39:05 +0000

Seen: 1,744 times

Last updated: Mar 29