Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to patch nvidia drivers?

  1. #1
    Join Date
    Jun 2008
    Location
    wichita
    Posts
    990

    Default How to patch nvidia drivers?

    This was my first attempt at patching an nvidia driver before building. I got the patch here:

    http://cvs.rpmfusion.org/viewvc/rpms...ee&view=markup

    I tried to apply the patch to the 331.38 and got an error message saying the patch failed at line 3 and the two lines leading up to it were:

    |--- a/kernel/nv-acpi.c
    |+++ b/kernel/nv-acpi.c

    These are the very first lines of the patch. Anyone know what is wrong here?

  2. #2

    Default Re: How to patch nvidia drivers?

    Quote Originally Posted by pilotgi View Post
    These are the very first lines of the patch. Anyone know what is wrong here?
    And how did you actually try to apply the patch?

    You should do something like this:
    Code:
    sh NVIDIA-Linux-x86-331.38.run --extract-only
    cd NVIDIA-Linux-x86-331.38
    patch -p1 < /path/to/nvidia-3.13.patch
    ./nvidia-installer

  3. #3
    Join Date
    Jun 2008
    Location
    wichita
    Posts
    990

    Default Re: How to patch nvidia drivers?

    The instructions I found just said to run the installer with --apply-patch <path to patch> added to the end.

    I'll try your way and see what happens.

  4. #4
    Join Date
    Jun 2008
    Location
    wichita
    Posts
    990

    Default Re: How to patch nvidia drivers?

    I tried the --extract-only method and got this error when I applied the patch:

    patch: **** strip count 1 is not a number
    Segmentation fault

  5. #5

    Default AW: Re: How to patch nvidia drivers?

    Quote Originally Posted by pilotgi View Post
    I tried the --extract-only method and got this error when I applied the patch:

    patch: **** strip count 1 is not a number
    Segmentation fault
    You typed in the digit 1 I hope, not the letter l or I? (in "patch -p1")

  6. #6

    Default Re: How to patch nvidia drivers?

    Ah, wait. Is _this_ really how your patch file looks like?
    Quote Originally Posted by pilotgi View Post
    |--- a/kernel/nv-acpi.c
    |+++ b/kernel/nv-acpi.c
    Then you did something wrong when downloading it.
    Hint: Copy and paste won't work most of the time for patches.

    You have to right-click on the Link "Download File" at the top-right corner of that page and choose "Save Link as..." to get the unmangled patch file.

  7. #7
    Join Date
    Jun 2008
    Location
    wichita
    Posts
    990

    Default Re: How to patch nvidia drivers?

    Oops. I use 'el' instead of 1. Back to the command line.

  8. #8
    Join Date
    Jun 2008
    Location
    wichita
    Posts
    990

    Default Re: How to patch nvidia drivers?

    It worked! Thanks for the help.

  9. #9
    Join Date
    Jun 2008
    Location
    wichita
    Posts
    990

    Default Re: How to patch nvidia drivers?

    If I have to reinstall this driver again, do I just cd into the new NVIDIA directory and run the installer, or do I have to patch it again?

  10. #10

    Default Re: How to patch nvidia drivers?

    Quote Originally Posted by pilotgi View Post
    If I have to reinstall this driver again, do I just cd into the new NVIDIA directory and run the installer, or do I have to patch it again?
    If you keep that directory, the files in there are already patched, so you don't have to patch them again.

    If you downloaded a new .run file, you would have to patch it again of course.
    But maybe the next version would already work with kernel 3.13 without patch, who knows?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •