Repository navigation
Universal GPU Unlock v2.2.1
Safer USB Install & Uninstall · Cleaner Stickless Reinstalls ([R] ➔ [I]) · DXE Slot Filename Fix
v2.2.1 is a focused reliability patch on top of v2.2.0 that protects plugged-in USB drives during Windows uninstallation, validates USB targets before formatting, and makes Stickless [R] cleanup and [I] upgrades reliable on real UEFI firmware.
(0 permanent VBIOS writes · 0% gaming difference · Official signed NVIDIA drivers & Secure Boot compatible)
What's New in v2.2.1
1. Safer Windows USB Install, Rollback & Uninstall
- Protects plugged-in USB drives: Uninstalling in Windows now checks drive type, storage bus, and launcher files, touching only internal unlock/EFI partitions and leaving connected
GPU_UNLOCKUSB sticks alone. - Pre-format safety checks: Before quick-formatting a USB stick to FAT32, the installer verifies Administrator privileges, sufficient partition capacity, and that the tool, source folder, and active working directory are not sitting on the target drive.
- Preserved backups on interrupted updates: If a USB update or file removal fails midway (for example if a USB drive is unplugged during rollback), temporary backups remain preserved on disk instead of being discarded.
2. Cleaner Stickless Removals & Upgrades ([R] ➔ [I])
- Full folder cleanup on
[R](REMOVE): Removing the Stickless driver in the UEFI boot menu now empties and deletes leftoverAD102-ASSETS,GA102-ASSETS, andTU102-ASSETSdirectories on internal ESP andGPU_UNLOCKpartitions—including when NVRAM boot entries were already cleared earlier. - Smooth orphaned-asset replacement on
[I](INSTALL): If old leftover asset files exist without an activeAdaUnlockNVRAM entry,[I]now replaces them automatically. If an active installation has differing assets, the prompt guides clearly to press[R](REMOVE), reboot, and then[I](INSTALL).
3. Fixed Stickless Update Driver Naming (AdaUnlockDxe1..9.efi)
- In-place Stickless upgrades now write properly spelled
AdaUnlockDxe1.efi–AdaUnlockDxe9.efifilenames instead of truncatedAdaUnlockDx1..9.efinames, while diagnostics and uninstallers continue recognizing and cleaning up earlierv2.1.4–v2.2.0AdaUnlockDx1..9.efientries.
Quick Upgrade / Setup
- Create or update your USB drive (
Setup.bat): Download Universal_GPU_Unlock_v2.2.1.zip, extract cleanly, plug in your FAT32 USB flash drive, and runSetup.bat([2]Update Existing USB or[1]Create New USB). - If you use Stickless
[I]: Boot once from the updated USB (F8/F11/F12) and press[I]to update, or run[R]➔ reboot ➔[I]when clearing leftover asset folders or migrating Turing (RTX 20) from<= v2.1.4. - Verify in Windows: Run
Launch-Dashboard.batorCheck-GPU-Unlock.bat.
Technical Notes, Verification & SHA-256 Checksums (Click to expand)
Technical Changelog
- Windows CLI USB Safety, Rollback & Pre-Format Validation (
src/win/src/win32.rs,src/win/src/install.rs):- Added
drive_type(GetDriveTypeW) andbus_type(IOCTL_STORAGE_QUERY_PROPERTY) toVolumeRootinenumerate_log_roots()and filtereduninstall()targets withshould_include_uninstall_volume()(DRIVE_FIXED_TYPE, confirmed non-USB bus, noSetup.bat). - Replaced silent
TxJournal::rollback()error suppression with structuredRollbackOutcome/DeployFailurediagnostics, target-root reachability checks, post-renamecreated_filestracking, andDropbackup preservation on failed rollback. - Added
partition_bytes(IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS) RAW capacity fallback and extractedvalidate_usb_install_preflight()(checking--yes, FAT32 state,current_exe,repo_root,cwd, elevation, and capacity with4 MiBoverhead strictly beforeFormat-Volume).
- Added
- UEFI Stickless DXE Slot Naming & Asset Cleanup (
src/driver_nvram.c,src/uefi_lang.h,src/win/src/install.rs):- Updated
DriverUpdatePath()to 31-CHAR16template\EFI\Drivers\AdaUnlockDxe0.efi(AdaUnlockDxe1..9.efi) usingStrSize16(), while retaining backward-compatible detection/removal of legacyAdaUnlockDx1..9.efiinIsOwnOption(),HasAnyOwnDriverOnVolume(),DeleteDriverFilesAndAssetsIfPresent(),is_own_efi_load_option(), andcollect_internal_uninstall_paths(). - Fixed
DeleteAssetDirTree()withGU_MIN_EFI_FILE_INFO_BYTES(offsetof(EFI_FILE_INFO, FileName) + sizeof(CHAR16)) so real EDK2FatDxe.(84B) and..(86B) entries do not terminate enumeration before child files (sizeof(EFI_FILE_INFO) == 88B on x64), clearedEFI_FILE_READ_ONLYattributes, ensured spec-compliantDeleteOpenedFile()handle closing, extended[R](GuRemoveDriverOption()->CleanupAllInternalDriverArtifacts()) to delete driver binaries and*-ASSETStrees even with empty NVRAM, enabledStageArchAssetsToVolume(..., allow_replace = !reinstall), and updatedGU_STR_INST_DRIVER_CONFLICTacross EN/ZH-CN/DE.
- Updated
- Version & Doc Synchronization (
src/version.h,bin/version.h,src/win/Cargo.toml,CHANGELOG.md,DOCUMENTATION.md,README*.md,bin/):- Bumped all version headers, Cargo metadata, signed
bin/BOOTX64.EFI/bin/AdaUnlockDxe.efi,bin/gpu-unlock.exe, and co-locatedbin/docs tov2.2.1.
- Bumped all version headers, Cargo metadata, signed
Verification Scope (56adc6e)
- Rust CLI Unit Tests (
cargo test --manifest-path src/win/Cargo.toml --locked --offline):22 passed; 0 failed(coveringuninstall_volume_filter_excludes_usb_sticks_with_gpu_unlock_label,tx_rollback_failure_preserves_backups_and_reports_incomplete,usb_format_preflight_checks_self_run_repo_and_capacity_before_format, andrecognizes_adaunlock_efi_load_option_and_filters_driver_order) - MSVC Host C Tests (
tests/Run-MsvcHostTests.ps1):MSVC_HOST_TESTS=PASS(15suites, including expandedtest_driver_nvrammodeling EDK2FatDxe./..sizes + legacyAdaUnlockDx1..9.eficleanup,test_s3_resume:9809checks,test_s3_non_identity:77checks,test_turing_dmactl_scrub:43checks,test_turing_unlock_path:33checks,test_bar0_guard:26checks) - Windows Host Tests (
tests/Run-WindowsHostTests.ps1):WINDOWS_HOST_TESTS=PASS - Python Unit Tests (
python -m unittest tests.test_clock_cap -v):13/13passed (OK) - Live Hardware Verification: Confirmed
[R](REMOVE) ->[I](INSTALL) -> stickless cold boot on real UEFIFatDxehardware (RTX 4090, S3ARMED,v2.2.1signed binaries) cleanly removed legacy internal ESP andGPU_UNLOCKasset directories before reinstalling, while liveuninstall --dry-run --include-espexcluded the connected FAT32 USB deployment stick. - Release Archive (
src/Build-Release-Zip.ps1):308entries (87.08 MB); co-locatedbin/documentation (README.md,DOCUMENTATION.md,CHANGELOG.md,version.h) byte-identical to repository root.
SHA-256 Checksums
Universal_GPU_Unlock_v2.2.1.zip : A74C5FCC04DDF53DF5EEE3D9E4543150344D3FAD222D6353390DA6B5CF8DF67D
bin/BOOTX64.EFI : D811A66FBB879A63B0E062D5E8AD9A35A7B64FFE93582667C1F51FA442BF59E8
bin/AdaUnlockDxe.efi : 350D715E147E97D8A02944FB4E6DC34CE5365ACB78B12080097C7DEC51B8B496
bin/gpu-unlock.exe : 9DDB5F1247A9CD31216F5D773040BEB8865DDCB471E13D2796BD7AEDD88E87FB