Vulkan only on unlocked cards; unlock prompt defaults to Y

The 5-min VRAM stress is skipped unless verify.sh reports
unlocked-ok (--vulkan always still forces it) - no point testing
the locked stock chip. The unlock install prompt now defaults to
Y (Enter confirms) since each run exists to unlock; --unlock stays
for non-interactive runs. README updated to match.
This commit is contained in:
2026-10-15 01:22:26 +02:00
parent 294fb4a3c4
commit 9db67b84d7
2 changed files with 15 additions and 8 deletions
+10 -3
View File
@@ -7,7 +7,7 @@ Per run: wait for card -> auto UUID (folder) + serial probe -> VBIOS backup
-> cmpunlocker verify.sh (read-only) -> opt-in cmpunlocker unlock (install.sh,
y/N or --unlock; a successful install skips VRAM stress and asks for a cold
reboot, then you re-run this script for the final Gen2 x16 PCIe check)
-> optional 5-min Vulkan VRAM stress (last step, ask yes/no)
-> optional 5-min Vulkan VRAM stress (last step, unlocked cards only)
-> cards/<GPU-UUID>/report.json (+ serial.txt with the physical serial or N/A).
Scoring: FAIL on no-device/link-down/lost-after-rescan, and on a final
@@ -194,7 +194,7 @@ def process_card(args):
rep["unlock"] = {"attempted": False, "ok": False,
"note": "harness/cmpunlocker not cloned - run --preflight"}
warn("harness/cmpunlocker not cloned - run --preflight (unlock install skipped)")
elif args.unlock or ask("Run cmpunlocker install.sh now? (y/N)", "n").lower().startswith("y"):
elif args.unlock or ask("Run cmpunlocker install.sh now? (Y/n)", "y").lower().startswith("y"):
X.update_cmpunlocker()
rep["unlock"] = X.run_installer(folder / "install_unlocker.log")
unlock_installed = bool(rep["unlock"].get("attempted") and rep["unlock"].get("ok"))
@@ -210,8 +210,15 @@ def process_card(args):
info("unlock install skipped")
step("optional Vulkan VRAM test (last step)")
ver_status = rep["cmpunlocker_verify"].get("status")
if unlock_installed:
info("vulkan test skipped - unlock installed, cold reboot first")
elif ver_status != "unlocked-ok" and args.vulkan != "always":
# No point stressing stock memory - the test is meaningful only on
# the full unlocked capacity. --vulkan always forces it anyway.
rep["vulkan_test"] = {"requested": False, "ran": False,
"note": f"skipped - memory not unlocked (verify: {ver_status})"}
info(f"vulkan test skipped - card not unlocked (verify: {ver_status})")
elif args.vulkan == "never":
rep["vulkan_test"] = {"requested": False, "ran": False, "note": "disabled via --vulkan never"}
elif args.vulkan == "always":
@@ -310,7 +317,7 @@ def main():
ap.add_argument("--vulkan", choices=("ask", "always", "never"), default="ask",
help="5-min Vulkan VRAM test policy (default ask, runs as last step)")
ap.add_argument("--unlock", action="store_true",
help="run cmpunlocker install.sh without prompting (default: ask y/N)")
help="run cmpunlocker install.sh without prompting (default: ask Y/n)")
ap.add_argument("--no-install", action="store_true",
help="do not auto-install packages (skips the sudo precondition)")
ap.add_argument("--no-clone", action="store_true", help="do not clone harness repos")