Commit Graph

1266 Commits

Author SHA1 Message Date
GitHub Action
8ed99a6462 win: add support for DCH driver 621.40 2026-11-27 07:22:46 +00:00
ram/haidar
7f30a61d15 linux: add support for driver 595.112.07 2026-11-15 11:41:07 +07:00
ram/haidar
2a61b61073 fix(win/nvfbcwrp): restore backup owner only after install succeeds
- Defer the backup owner/DACL restore out of Move-Genuine into a new Invoke-FinalizeOwner that runs only after every target was applied, so a later failure still finds the Administrators grant needed to move a backup back.
- Set AddedAdminGrant only after Unlock-DLL succeeds, so a failed takeown or grant is never treated as a grant that must be removed.
- Report a finalize failure as a red warning while keeping exit code 0, since rolling back a completed install would leave the system worse.
- README.md manual restore now includes the takeown/icacls commands needed to regain access to the Administrators-owned backups.
- Target: win/nvfbcwrp
2026-11-14 20:17:20 +07:00
ram/haidar
310ffd9895 refactor(win/nvfbcwrp): make patch script idempotent and rollback safe
- Rewrite Patch.ps1 around a read-only pre-flight plan that refuses missing wrappers, wrong wrapper PE architecture, stale or wrapper backups, and a non-NVIDIA file at the original path before anything is changed.
- Use takeown/icacls instead of Set-Acl, record each owner SID and whether an Administrators ACE already existed, and restore both so a temporary unlock is undone on rollback and after a successful move.
- Stage the wrapper as a .nvfbcwrp-tmp copy, verify SHA-256 after every copy and move, and revert recorded copy, move and ACL steps in reverse when any target fails.
- Add -Unattended and -SkipGenuineCheck switches, quote elevation arguments correctly for Windows PowerShell 5.1, and replace pause/Read-Host with explicit exit codes.
- RunPatch.bat confines ExecutionPolicy Bypass to its own process and propagates the exit code; README.md documents the re-run, refusal and manual-restore behavior.
- Target: win/nvfbcwrp
2026-11-14 19:26:18 +07:00
Howard Wu
e24e899d81 docs(win/nvfbcwrp): remove driver reset shortcut tip
- Delete the note in the 3rd-party software section that pointed users at the Windows key + Ctrl + Shift + B shortcut to quickly reset the graphics driver.
- Leave the registry command and the reboot note as the only steps for enabling NvFBC.
- Target: win/nvfbcwrp
2026-11-14 17:48:26 +07:00
Howard Wu
4c429187b7 feat(win/nvfbcwrp): add PowerShell patch script and launcher
- Add Patch.ps1, which relaunches itself elevated, renames NvFBC64.dll and NvFBC.dll to the NvFBC64_.dll and NvFBC_.dll backups, and copies nvfbcwrp64.dll and nvfbcwrp32.dll into System32 and SysWOW64.
- Grant Administrators ownership and FullControl on each genuine DLL before moving it, and roll back the moves already done when a wrapper is missing or a later step throws.
- Add RunPatch.bat, which requires Patch.ps1 next to itself and starts it with a per-process ExecutionPolicy Bypass.
- Document the scripts in win/nvfbcwrp/README.md and normalize headings, link syntax and blank lines in win/README.md.
- Target: win/nvfbcwrp
2026-11-14 17:48:18 +07:00
ram/haidar
2b25626c77 linux: skip nvidia-smi lookup when driver version is given with -d (#1150)
patch_common() looked up nvidia-smi and exited with "nvidia-smi utility not found" before checking the manually entered driver version, so -d could not be used on systems without nvidia-smi (e.g. Batocera). Move the lookup into the branch that detects the version, so -d never touches nvidia-smi.

Apply the same change to patch.sh and patch-fbc.sh. Behaviour without -d is unchanged, including the error message when nvidia-smi is missing.

Based on #876 by DTJW92, whose patch.sh change could not be merged as-is.

Co-authored-by: DTJW92 <96082560+DTJW92@users.noreply.github.com>
2026-11-14 17:41:50 +07:00
ram/haidar
97341d3e60 docs(docs): update container usage documentation (#1127)
Explain that container patching is an alternative to host patching rather than an extra requirement
2026-11-14 16:55:41 +07:00
ram/haidar
090ad99994 win: drop pCloud mirrors and link patching tool usage docs (#1128)
- Remove the two pCloud Mirror links from the patching tool step. The mirrors duplicate the release downloads and go stale between releases.
- Link the Win_1337_Apply_Patch and Win_1337_Apply_Patch_Powershell READMEs at their usage sections, so readers land on the instructions instead of the top of the file.
2026-11-14 16:55:23 +07:00
ram/haidar
8cccfedc1f fix(autopatch): support older driver bytecodes (#1126)
- Replace the hardcoded newest-generation -S/-R defaults with auto-detection over a BYTECODE_GENERATIONS table of known NVENC generations, so older drivers resolve without passing patterns explicitly.
- Keep explicit -S/-R arguments, including comma-separated fallback alternatives, working unchanged, and add the legacy x86 pair previously supplied only by legacy.sh.
- Verify an extracted target file actually appeared and fall back between the .dll and .dl_ spellings, since 7z exits 0 when the requested member is absent.
- Require -S and -R together or neither, and fail clearly when no known generation matches exactly once in the target library.
- Add regression tests for bytecode auto-detection, target resolution and argument validation, and update the README flag defaults.
- Target: autopatch
2026-11-14 16:54:37 +07:00
dvdan
e729574937 tools: patch-tester: fix for newer FFmpeg and make it terminate (#1144)
- Replace -vsync 0 with per-output -fps_mode passthrough (requires FFmpeg 5.1 or newer).
- Limit the input with testsrc=d=50 instead of "-t 50" after -i, which only limited the first output so the other encodes never terminated.
- Allow selecting the ffmpeg binary through the FFMPEG variable.
2026-11-14 16:33:30 +07:00
nilankadesilva
425d3535d7 win: autopatch: forward --7zip argument to patch_flow (#1148)
parse_args() stores -7/--7zip in args.sevenzip, but main() never passed it to patch_flow(), so extraction always used the default "7z" and failed with FileNotFoundError when 7z is not on PATH. Forward sevenzip=args.sevenzip.
2026-11-14 16:26:14 +07:00
ram/haidar
38227b2c2e win: autopatch: support fallback binary patterns (#1074)
- Accept comma-separated fallback alternatives in -S/--search and -R/--replacement; alternatives are tried in order and the first one found in the binary is used.
- Check uniqueness only for the selected alternative.
- Validate that every search/replacement pair has equal length and reject empty alternatives.
- Narrow the download error handling to urllib.error.URLError and raise UnknownPlatformException when ProductType is missing in setup.cfg.
2026-11-14 16:21:00 +07:00
dvdan
1d454ef89b linux: add support for driver 620.70.06 2026-11-14 16:07:24 +07:00
nilankadesilva
c7b6976115 win: add support for DCH driver 621.24 2026-11-14 15:46:22 +07:00
nilankadesilva
620c4aa29c win: add support for DCH driver 621.14 2026-11-08 18:42:08 +07:00
Dylan Duan
809fa4add1 linux: add support for driver 580.196.07 (#1138)
Fixes #1137
2026-11-05 07:06:23 +07:00
ram/haidar
8c27b6fa95 win: add support for DCH (Notebook Hotfix) driver 621.12 2026-10-29 20:21:54 +07:00
dvdan
9b487a584a linux: add support for driver 615.71.10 2026-10-23 01:45:50 +00:00
ram/haidar
c57866cf6f linux: add support for driver 615.78.08 2026-10-23 08:39:25 +07:00
d42
cd3c6f5ba7 linux: add support for driver 615.78.08 2026-10-22 18:12:47 +02:00
ram/haidar
1755065598 linux: add support for driver 595.104.02 2026-10-22 11:31:12 +07:00
ram/haidar
5f4020ca3d Revert "Dropping FBC from PR"
This reverts commit c087a0f8c7.
2026-10-22 11:25:45 +07:00
ram/haidar
5f35e7ed2a win: add support for DCH driver 621.01 2026-10-21 23:59:51 +07:00
GitHub Action
51c2f96983 win: add support for DCH driver 621.01 2026-10-21 16:57:50 +00:00
tgeorge
c087a0f8c7 Dropping FBC from PR 2026-10-21 12:36:47 -04:00
tgeorge
4b9a9b51c9 Revert Dockerfile 2026-10-20 14:33:12 -04:00
tgeorge
d642af7e5a Update Dockerfile
Latest does not exist in as a tag on dockerhub
2026-10-19 14:35:09 -04:00
tgeorge
8554ce2f6e Update patch-fbc.sh 2026-10-19 10:56:48 -04:00
tgeorge
09eb1fff6e Update patch.sh 2026-10-19 10:55:59 -04:00
tgeorge
628be43713 Update README.md 2026-10-19 10:54:15 -04:00
tgeorge
6df115fa35 Adding 595.104.02 to drivers.json 2026-10-19 10:50:11 -04:00
ram/haidar
39ec449173 win: add support for DCH driver 617.42 2026-10-10 08:58:05 +07:00
GitHub Action
b35fd4ecf7 win: add support for DCH driver 617.42 2026-10-06 23:25:18 +00:00
Jai Luthra
bf2965a126 win: add support for DCH driver 617.14 (#1124)
Co-authored-by: GitHub Action <action@github.com>
2026-09-24 11:08:05 +05:30
ram/haidar
b68d0ed0c1 win: add support for DCH driver 616.92 (#1119) 2026-09-15 19:50:21 +05:30
Jai Luthra
2a8365eed2 patch-fbc.sh: Update bytecode for 615.xx
Suggested by @Renegtd

Signed-off-by: Jai Luthra <me@jailuthra.in>
2026-09-15 19:49:23 +05:30
GitHub Action
58e3a46b56 linux: add support for driver 615.71.09 2026-09-15 19:49:23 +05:30
GitHub Action
9e4f1cd723 linux: add support for driver 595.99.02 2026-09-07 15:19:41 +05:30
GitHub Action
58ce1f0bce win: add support for DCH (Notebook Hotfix) driver 616.86 2026-09-07 15:19:27 +05:30
GitHub Action
37653ea391 win: add support for DCH driver 616.64 2026-09-04 22:37:01 +05:30
GitHub Action
7406cb6fb0 win: add support for DCH driver 616.56 2026-08-29 12:23:37 +05:30
GitHub Action
7b022ce1e0 linux: add support for driver 595.91.07 2026-08-17 11:40:56 +05:30
Jai Luthra
e7a28468a9 Add AGENTS.md
Signed-off-by: Jai Luthra <me@jailuthra.in>
2026-08-14 11:40:56 +05:30
GitHub Action
cdccc70abf linux: add support for driver 610.57.04 2026-08-14 11:35:46 +05:30
Jai Luthra
4f66410454 linux: fix wrong bytecode for 610.xx
Signed-off-by: Jai Luthra <me@jailuthra.in>
2026-08-14 11:26:38 +05:30
Jai Luthra
ae1dd41bae linux: add support for driver 580.178.04 (#1105)
Co-authored-by: GitHub Action <action@github.com>
2026-08-14 11:24:26 +05:30
ram/haidar
401f91a4a7 win: add support for DCH drivers 610.74, 610.62, 582.66, 582.53, 553.35, 552.22, and 537.70 (#1103) 2026-08-12 17:05:24 +05:30
Anonymous
2c3adf1ed8 Fix 610.88 .1337 patches: correct VA offsets and remove trailing newline (#1100)
* Delete win/win10_x64/610.88 directory

* Add files via upload

* Add 610.88 to README

* Delete win/win10_x64/610.88 directory

* Add files via upload

* Add files via upload
2026-08-06 17:44:43 +05:30
Bertaz
03151e791c win: fix patch-tester (#1099)
* win: fix patch-tester

updates ffmpeg command as per documentation

* win: fix patch-tester ffmpeg command

Replaces testsrc with testsrc2 for correct pixel format for latest ffmpeg
Fixes position of duration parameter `-t`
Adds cuda:0 to explicitly select the first CUDA device

* win: change patch-tester input duration

Uses the duration(d) parameter for the source instead of generic option '-t'
Changes source's duration to 150s (2:30 minutes) so that encoding output is shown longer
2026-08-05 10:57:24 +05:30