From 72659eda276190ea8084464d2abb7e7b14e25c11 Mon Sep 17 00:00:00 2001 From: Jai Luthra Date: Thu, 5 Dec 2024 19:48:27 +0530 Subject: [PATCH 1/4] linux: patch for 560.35.05 fixes #871 --- README.md | 1 + drivers.json | 6 ++++++ patch-fbc.sh | 1 + patch.sh | 1 + 4 files changed, 9 insertions(+) diff --git a/README.md b/README.md index e8dd946..036c1db 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,7 @@ If you want to donate, please send it to your favorite open source organizations | 555.58.02 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/555.58.02/NVIDIA-Linux-x86_64-555.58.02.run) | | 560.28.03 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/560.28.03/NVIDIA-Linux-x86_64-560.28.03.run) | | 560.35.03 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/560.35.03/NVIDIA-Linux-x86_64-560.35.03.run) | +| 560.35.05 | YES | YES | [Driver link](https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda_12.6.3_560.35.05_linux.run) | | 565.57.01 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/565.57.01/NVIDIA-Linux-x86_64-565.57.01.run) | ## Synopsis diff --git a/drivers.json b/drivers.json index 319a8c4..ad74264 100644 --- a/drivers.json +++ b/drivers.json @@ -1145,6 +1145,12 @@ "nvenc_patch": true, "nvfbc_patch": true, "driver_url": "http://international.download.nvidia.com/XFree86/Linux-x86_64/550.135/NVIDIA-Linux-x86_64-550.135.run" + }, + { + "version": "560.35.05", + "nvenc_patch": true, + "nvfbc_patch": true, + "driver_url": "https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda_12.6.3_560.35.05_linux.run" } ], "example": { diff --git a/patch-fbc.sh b/patch-fbc.sh index 19cd0eb..835773d 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -226,6 +226,7 @@ declare -A patch_list=( ["555.58.02"]='s/\x85\xc0\x0f\x85\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ["560.28.03"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ["560.35.03"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' + ["560.35.05"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ["565.57.01"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ) diff --git a/patch.sh b/patch.sh index e8a1388..fa90165 100755 --- a/patch.sh +++ b/patch.sh @@ -265,6 +265,7 @@ declare -A patch_list=( ["555.58.02"]='s/\xe8\x25\x43\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x25\x43\xfe\xff\x29\xc0\x41\x89\xc4/g' ["560.28.03"]='s/\xe8\x35\x3e\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x3e\xfe\xff\x29\xc0\x41\x89\xc4/g' ["560.35.03"]='s/\xe8\x35\x3e\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x3e\xfe\xff\x29\xc0\x41\x89\xc4/g' + ["560.35.05"]='s/\xe8\x35\x3e\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x3e\xfe\xff\x29\xc0\x41\x89\xc4/g' ["565.57.01"]='s/\xe8\x15\x34\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x34\xfe\xff\x29\xc0\x41\x89\xc4/g' ) From 5db577ccef1dbc48e8c22738612d6c86ac30f237 Mon Sep 17 00:00:00 2001 From: Jai Luthra Date: Wed, 11 Dec 2024 23:14:53 +0530 Subject: [PATCH 2/4] Revert "Added root check to patch.sh and patch-fbc.sh" This reverts commit 5c7b570254b99e6f995b7562d17e2fe73f094412. --- patch-fbc.sh | 9 --------- patch.sh | 9 --------- 2 files changed, 18 deletions(-) diff --git a/patch-fbc.sh b/patch-fbc.sh index 835773d..06eb9c0 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -4,15 +4,6 @@ set -euo pipefail ; # <- this semicolon and comment make options apply # even when script is corrupt by CRLF line terminators (issue #75) # empty line must follow this comment for immediate fail with CRLF newlines -# root check -if [ "$(id -u)" -ne 0 ]; then - echo - echo -e "Please run as root!" - echo - exit 1 -fi - - backup_path="/opt/nvidia/libnvidia-fbc-backup" silent_flag='' manual_driver_version='' diff --git a/patch.sh b/patch.sh index fa90165..ee9d638 100755 --- a/patch.sh +++ b/patch.sh @@ -4,15 +4,6 @@ set -euo pipefail ; # <- this semicolon and comment make options apply # even when script is corrupt by CRLF line terminators (issue #75) # empty line must follow this comment for immediate fail with CRLF newlines -# root check -if [ "$(id -u)" -ne 0 ]; then - echo - echo -e "Please run as root!" - echo - exit 1 -fi - - backup_path="/opt/nvidia/libnvidia-encode-backup" silent_flag='' manual_driver_version='' From e3bc2fac20835c7687c483fe10f46608b7190d77 Mon Sep 17 00:00:00 2001 From: ramhaidar <49301219+ramhaidar@users.noreply.github.com> Date: Fri, 6 Dec 2024 05:46:38 +0700 Subject: [PATCH 3/4] win: add support for DCH driver 566.36 --- drivers.json | 9 +++++++++ win/README.md | 5 +++-- win/win10_x64/566.36/nvencodeapi.1337 | 6 ++++++ win/win10_x64/566.36/nvencodeapi64.1337 | 5 +++++ 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 win/win10_x64/566.36/nvencodeapi.1337 create mode 100644 win/win10_x64/566.36/nvencodeapi64.1337 diff --git a/drivers.json b/drivers.json index ad74264..4f6846c 100644 --- a/drivers.json +++ b/drivers.json @@ -4535,6 +4535,15 @@ "patch64_url": "win10_x64/566.14/nvencodeapi64.1337", "patch32_url": "win10_x64/566.14/nvencodeapi.1337", "driver_url": "https://international.download.nvidia.com/Windows/566.14/566.14-desktop-win10-win11-64bit-international-dch-whql.exe" + }, + { + "os": "win10", + "product": "GeForce", + "version": "566.36", + "variant": "DCH", + "patch64_url": "win10_x64/566.36/nvencodeapi64.1337", + "patch32_url": "win10_x64/566.36/nvencodeapi.1337", + "driver_url": "https://international.download.nvidia.com/Windows/566.36/566.36-desktop-win10-win11-64bit-international-dch-whql.exe" } ] } diff --git a/win/README.md b/win/README.md index 62084c5..fa43cfe 100644 --- a/win/README.md +++ b/win/README.md @@ -1,7 +1,7 @@ NVENC and NvFBC patches for Windows Nvidia drivers ================================================== -![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest GeForce version](https://img.shields.io/badge/latest%20GeForce%20version-566.14-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-536.25-blue.svg) +![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest GeForce version](https://img.shields.io/badge/latest%20GeForce%20version-566.36-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-536.25-blue.svg) NVENC patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs. @@ -42,7 +42,7 @@ If you like this project, best way to contribute is by sending PRs and fixing do 5. Apply x86 library patch to corresponding file in `%WINDIR%\SysWOW64\` in the same way as previous one. - *If patching fails, close all applications using nvencodeapi.dll, such as OBS Studio, Plex or Discord.* -**Example:** for 64bit Windows 10 running driver version 566.14, use `win10_x64/566.14/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/566.14/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. +**Example:** for 64bit Windows 10 running driver version 566.14, use `win10_x64/566.36/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/566.36/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. If you still get "problem occured when patching" error, refer to the [instructions to change the ownership of the DLLs](https://github.com/keylase/nvidia-patch/issues/795#issuecomment-2225573296) by @VorlonCD @@ -259,6 +259,7 @@ Credits to [TroubleChute channel](https://www.youtube.com/channel/UCkih2oVTbXPEp | GeForce | 565.90 DCH | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/565.90/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/565.90/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/565.90/565.90-desktop-win10-win11-64bit-international-dch-whql.exe) | | GeForce | 566.03 DCH | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/566.03/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/566.03/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/566.03/566.03-desktop-win10-win11-64bit-international-dch-whql.exe) | | GeForce | 566.14 DCH | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/566.14/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/566.14/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/566.14/566.14-desktop-win10-win11-64bit-international-dch-whql.exe) | +| GeForce | 566.36 DCH | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/566.36/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/566.36/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/566.36/566.36-desktop-win10-win11-64bit-international-dch-whql.exe) | | Product series | Version | x64 library patch | x86 library patch | Driver link | diff --git a/win/win10_x64/566.36/nvencodeapi.1337 b/win/win10_x64/566.36/nvencodeapi.1337 new file mode 100644 index 0000000..487c7ec --- /dev/null +++ b/win/win10_x64/566.36/nvencodeapi.1337 @@ -0,0 +1,6 @@ +>nvencodeapi.dll +0000000000043107:89->33 +0000000000043108:45->C0 +0000000000043109:08->89 +000000000004310A:85->45 +000000000004310B:C0->08 \ No newline at end of file diff --git a/win/win10_x64/566.36/nvencodeapi64.1337 b/win/win10_x64/566.36/nvencodeapi64.1337 new file mode 100644 index 0000000..caa87d1 --- /dev/null +++ b/win/win10_x64/566.36/nvencodeapi64.1337 @@ -0,0 +1,5 @@ +>nvencodeapi64.dll +000000000004B381:8B->33 +000000000004B382:F0->C0 +000000000004B383:85->8B +000000000004B384:C0->F0 \ No newline at end of file From 5b39eba1be8f1e58c6566f5aec9ca498dbbf2550 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 23 Dec 2024 06:58:23 +0000 Subject: [PATCH 4/4] linux: add support for driver 565.77 fix #878 --- README.md | 3 ++- drivers.json | 8 +++++++- patch-fbc.sh | 1 + patch.sh | 1 + win/README.md | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 036c1db..b846a5e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ NVENC and NvFBC patches for Nvidia drivers ========================================== -![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest version](https://img.shields.io/badge/latest%20linux%20driver%20version-565.57.01-brightgreen.svg) +![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest version](https://img.shields.io/badge/latest%20linux%20driver%20version-565.77-brightgreen.svg) [NVENC patch](patch.sh) removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs. @@ -225,6 +225,7 @@ If you want to donate, please send it to your favorite open source organizations | 560.35.03 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/560.35.03/NVIDIA-Linux-x86_64-560.35.03.run) | | 560.35.05 | YES | YES | [Driver link](https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda_12.6.3_560.35.05_linux.run) | | 565.57.01 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/565.57.01/NVIDIA-Linux-x86_64-565.57.01.run) | +| 565.77 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/565.77/NVIDIA-Linux-x86_64-565.77.run) | ## Synopsis diff --git a/drivers.json b/drivers.json index 4f6846c..a8c5624 100644 --- a/drivers.json +++ b/drivers.json @@ -1151,6 +1151,12 @@ "nvenc_patch": true, "nvfbc_patch": true, "driver_url": "https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda_12.6.3_560.35.05_linux.run" + }, + { + "version": "565.77", + "nvenc_patch": true, + "nvfbc_patch": true, + "driver_url": "http://international.download.nvidia.com/XFree86/Linux-x86_64/565.77/NVIDIA-Linux-x86_64-565.77.run" } ], "example": { @@ -4536,7 +4542,7 @@ "patch32_url": "win10_x64/566.14/nvencodeapi.1337", "driver_url": "https://international.download.nvidia.com/Windows/566.14/566.14-desktop-win10-win11-64bit-international-dch-whql.exe" }, - { + { "os": "win10", "product": "GeForce", "version": "566.36", diff --git a/patch-fbc.sh b/patch-fbc.sh index 06eb9c0..00004d7 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -219,6 +219,7 @@ declare -A patch_list=( ["560.35.03"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ["560.35.05"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ["565.57.01"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' + ["565.77"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ) check_version_supported () { diff --git a/patch.sh b/patch.sh index ee9d638..31596d5 100755 --- a/patch.sh +++ b/patch.sh @@ -258,6 +258,7 @@ declare -A patch_list=( ["560.35.03"]='s/\xe8\x35\x3e\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x3e\xfe\xff\x29\xc0\x41\x89\xc4/g' ["560.35.05"]='s/\xe8\x35\x3e\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x3e\xfe\xff\x29\xc0\x41\x89\xc4/g' ["565.57.01"]='s/\xe8\x15\x34\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x34\xfe\xff\x29\xc0\x41\x89\xc4/g' + ["565.77"]='s/\xe8\x15\x34\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x34\xfe\xff\x29\xc0\x41\x89\xc4/g' ) check_version_supported () { diff --git a/win/README.md b/win/README.md index fa43cfe..3e9087f 100644 --- a/win/README.md +++ b/win/README.md @@ -42,7 +42,7 @@ If you like this project, best way to contribute is by sending PRs and fixing do 5. Apply x86 library patch to corresponding file in `%WINDIR%\SysWOW64\` in the same way as previous one. - *If patching fails, close all applications using nvencodeapi.dll, such as OBS Studio, Plex or Discord.* -**Example:** for 64bit Windows 10 running driver version 566.14, use `win10_x64/566.36/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/566.36/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. +**Example:** for 64bit Windows 10 running driver version 566.36, use `win10_x64/566.36/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/566.36/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. If you still get "problem occured when patching" error, refer to the [instructions to change the ownership of the DLLs](https://github.com/keylase/nvidia-patch/issues/795#issuecomment-2225573296) by @VorlonCD