nvidia-patch icon indicating copy to clipboard operation
nvidia-patch copied to clipboard

New driver support (version 470.82.00)

Open jak3z opened this issue 5 years ago • 21 comments

Please provide details about your environment (please complete the following information)

  • Nvidia driver version: 470.82.00
  • GPU Model: GTX 1050
  • OS: Pop OS/Ubuntu 21.04
  • [x] I'm willing to participate in testing of new patch version

jak3z avatar Oct 28 '21 19:10 jak3z

Count me in

leillo1975 avatar Oct 31 '21 14:10 leillo1975

Count me in as well! More than willing to test the new patch

mauricioquintela avatar Nov 01 '21 10:11 mauricioquintela

same here

LethalManBoob avatar Nov 01 '21 20:11 LethalManBoob

Nvidia driver : 470.82.00 GPU Model: MSI GeForce RTX 2070 Super; MSI GeForce RTX 3070 Gaming OS: Linux/ Fedora 34

Consider me in when testing new patch.

specializedtom avatar Nov 02 '21 16:11 specializedtom

Nvidia driver: 470.82.00 GPU Model: GeForce RTX 2060 Super with 2176 CUDA Cores OS: Linux / Pop OS 20.04

Eager to help test! I rely on using this patch to enable NvENC within OBS

rpodcast avatar Nov 02 '21 20:11 rpodcast

Good news everyone: I found this post on Levelonetechs demonstrating that simply editing the patch.sh or patch-fbc.sh scripts to include new lines for the 470.82.00 driver enables the patching to complete. I tested this by adding the following lines in the patch_list and object_list arrays (while preserving the previous driver records):

patch_list

["470.82.00"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/'

object_list

["470.82.00"]='libnvidia-fbc.so'

I have tested this with patch-fbc.sh as that was my immediate need, so I haven't tried this with the nvenc patch.sh script. After running sudo ./patch-fbc.sh I was able to get my scene that uses the NvFBC source to function normally again!

rpodcast avatar Nov 05 '21 02:11 rpodcast

This works!!!

LethalManBoob avatar Nov 05 '21 11:11 LethalManBoob

@rpodcast 's fix also works for me. Both for patch-fbc.sh and for patch.sh. Only difference for patch.sh is that the line added to its object_list array is different, reading

object_list

["470.82.00"]='libnvidia-encode.so'

mauricioquintela avatar Nov 05 '21 12:11 mauricioquintela

Good news everyone: I found this post on Levelonetechs demonstrating that simply editing the patch.sh or patch-fbc.sh scripts to include new lines for the 470.82.00 driver enables the patching to complete. I tested this by adding the following lines in the patch_list and object_list arrays (while preserving the previous driver records):

patch_list

["470.82.00"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/'

object_list

["470.82.00"]='libnvidia-fbc.so'

I have tested this with patch-fbc.sh as that was my immediate need, so I haven't tried this with the nvenc patch.sh script. After running sudo ./patch-fbc.sh I was able to get my scene that uses the NvFBC source to function normally again!

I can also confirm that it works.

umitakkaya avatar Nov 07 '21 11:11 umitakkaya

Yes, it works. Can dev include it on the code?

leillo1975 avatar Nov 07 '21 12:11 leillo1975

Not working for me, on 470.82.00 after pulling main - ran both patch-fbc.sh and patch.sh, same result "cannot allocate memory"

pschroedl avatar Nov 10 '21 17:11 pschroedl

Same here. Getting a 'cannot allocate memory' error message when running livepool after applying the patch.

specializedtom avatar Nov 10 '21 18:11 specializedtom

What patch fails, patch.sh or patch-fbc.sh? I don't have problems with no one:

Detected nvidia driver version: 470.82.00
Attention! Backup not found. Copying current libnvidia-encode.so to backup.
18b4249e6513b77a69b26c3212c5779736d749a3  /opt/nvidia/libnvidia-encode-backup/libnvidia-encode.so.470.82.00
18b4249e6513b77a69b26c3212c5779736d749a3  /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.470.82.00
Patched!

leillo1975 avatar Nov 10 '21 19:11 leillo1975

Patch.sh - using Livepool on Fedora 34.

specializedtom avatar Nov 10 '21 19:11 specializedtom

Sorry, I only did a Pull Request with the changes shown in this thread...

leillo1975 avatar Nov 10 '21 20:11 leillo1975

Looks like the driver update is done correctly for NVFBC but not for NVENC here https://github.com/keylase/nvidia-patch/commit/97a959fe95fa41370341c17f3a137a151ef2317a#diff-0a4f8ba240035344f40ec13f1857d73e43f174394b6deba7a3b577c89647d4bbR170

Will fix.

jailuthra avatar Nov 11 '21 07:11 jailuthra

@pschroedl @specializedtom let me know if it works now. restore the backup driver first via: ./patch.sh -r then pull from master again and run: ./patch.sh

jailuthra avatar Nov 11 '21 07:11 jailuthra

yes, the new patch now works with livepool. Thanks.

specializedtom avatar Nov 11 '21 07:11 specializedtom

@pschroedl @specializedtom let me know if it works now. restore the backup driver first via: ./patch.sh -r then pull from master again and run: ./patch.sh I think it will be better for everyone if I leave this in more expert hands. I am very sorry

leillo1975 avatar Nov 11 '21 08:11 leillo1975

livepool

Apologies for the off-topic question, but what's livepool?

GenocideStomper avatar Nov 12 '21 23:11 GenocideStomper