mirror of
https://github.com/JustAResearcher/gpu-unlock-ada.git
synced 2026-12-03 20:45:57 +07:00
[GH-ISSUE #117] Windows Hybrid success: MSI GE78HX RTX 4090 Laptop (2717/13cd), FP16 +85%, Intel display and brightness preserved #73
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JustAResearcher/gpu-unlock-ada#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Mayhem50 on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/117
Result
Reporting a successful Windows 11 Hybrid/MSHybrid unlock on an MSI Raider GE78HX 13VI, tested on October 29, 2026. The unlock survived NVIDIA driver initialization, the internal screen stayed on Intel, and physical brightness control still works.
The source branch will follow in a separate publication. This post shares the measured results first; the adapted source and EFI are not attached yet.
Exact configuration
10de:2717, subsystem1462:13cd, rev A1, PCI01:00.0, 16 GB.95.03.2A.00.2A.8086:a788; internal panel AUO84A6.32.0.15.9579.Hybrid handoff and Windows-side change
The UEFI path preserves Intel PCI/GOP/console ownership throughout. After the payload and one PCIe FLR, it verifies the selectors/readout, quiesces the firmware, releases DMA allocations, and hands off with NVIDIA memory decoding enabled, bus mastering disabled, and the exclusive PCI claim closed. Intel is not stopped or reconnected.
That handoff alone was insufficient: earlier Hybrid runs reached Windows normally but returned to stock throughput. A direct Windows register read showed that FEAT permissions had also closed, not just that selectors had changed:
An earlier boot trace attributed a completed NVIDIA D3 transition to the target adapter 563 ms after DdiStartDevice completed. Static analysis of the installed driver identified its
EnableRuntimePowerManagementquery and enable-bit consumers.For the successful test, we set DWORD
EnableRuntimePowerManagement=0only in the actual NVIDIA adapter's display-class registry key, preserving its original state for rollback. The Intel key and global graphics power settings were untouched. On this machine NVIDIA resolves to0001, Intel to0002; those suffixes must not be assumed on another system. The NVIDIA value was originally absent.This is evidence for a targeted runtime-power workaround on this configuration, not proof of the exact instruction that relocks FEAT, or of D3cold specifically. No boot trace was captured on the successful run.
Actual successful run: RUN0008
Selected final UEFI evidence:
After Windows and the NVIDIA driver loaded, a targeted read-only BAR0 inspection confirmed:
The temporary reader service was stopped and deleted without cleanup errors. Both display adapters report healthy. Windows QueryDisplayConfig confirms the internal panel is still driven by Intel; the operator separately confirmed that the slider changes actual screen brightness.
Matched CUDA GEMM measurements
Same GPU, Python 3.11.9, PyTorch 2.7.1+cu128, CUDA 12.8, cuBLAS 120803, benchmark and library hashes. Three independent processes per state; 4096³ GEMM, 15 samples, batch 5, warmup 3 s. Values below are the median of the three run medians.
Full 256² reference checks and 1024 sampled elements from the large outputs passed exactly; output hashes matched across states. Previous Hybrid U5/U6 without the runtime-power override remained around 85 TFLOP/s for FP16/BF16.
Limits and provenance
c3e06add27cdc22aadc8165471e2cce36aa176408e373187a38f0414076e45c7.83f8c6656c87c2575f23f46a0d67641d19f9cea909aed35fa7bbf58d3b8d6dd7.Thanks to the upstream project and the Windows reference contributors. We will publish the adapted branch afterward, with the machine-specific admission/handoff changes, verification tools and evidence.
@Mayhem50 commented on GitHub (Oct 29, 2026):
The cleaned source branch is now published:
A complete rebuild reproduced the exact hardware-tested U6 EFI SHA256; all 117 generated source hashes remained identical after generator simplification. Validation passed: 240 core scenarios, 30 backend scenarios, 12 application flows, 1433 profile checks, 571 boot checks and 77 diagnostic Python tests. Windows readers compiled and the five-file firmware package passed readback verification.
@ryrAiy commented on GitHub (Oct 30, 2026):
Hi @Mayhem50, thanks for publishing the MSI GE78HX port and the evidence in #117. I was so looking for this port!
So I have an ASUS ROG Strix Scar 18 (i9-14900HX) with an RTX 4090 Laptop GPU: AD103M, 10de:2757, subsystem 1043:34D8, VBIOS 95.03.3E.00.0F. Windows 11 Pro build 26300, NVIDIA driver 621.01 (32.0.16.2101), Hybrid/Optimus mode with the Intel iGPU driving the internal display.
I'd like to help test an ASUS port and take the governor off this baby. I understand the MSI branch is machine-specific, and I will not run its EFI on my laptop as-is.
What I can do:
If you can let me know how to proceed to port it to mine from your MSI build I would really appreciate it, thanks!
@Mayhem50 commented on GitHub (Oct 31, 2026):
Hi @ryrAiy,
I developed this port with Codex, starting in discrete GPU mode, then adapting it to Hybrid mode to validate the boot/handoff path while preserving the Intel-driven display and brightness control.
I used repeated read-only captures and dry runs before attempting the actual unlock, to check the machine-specific assumptions and reduce the risk of bricking my laptop. Those checks helped catch several problems before the firmware transaction, although they cannot eliminate all risk.
At a high level, I would approach your ASUS port like this:
The published branch can serve as a reference for the process and structure, but its machine-specific checks and EFI should not be reused directly on your ASUS.
@GregTheMiz commented on GitHub (Nov 4, 2026):
Thanks to Mayhem50 and the upstream/Windows UEFI contributors. The runtime-power investigation in this issue helped us obtain a second MSI Windows Hybrid success, on a GE68 with a newer driver.
Configuration tested on 4 November 2026:
Before the runtime-power change, our EFI log showed successful transaction/reset/cleanup and final SS0=88888888, SS1=8, readout=0 immediately before Windows handoff. Windows CUDA worked, but an explicit FP16-input MMA diagnostic measured FP32-accumulation throughput at approximately half the FP16-accumulation throughput. A factory 175 W ceiling did not resolve that half-rate result.
After reviewing the installed driver's handling of EnableRuntimePowerManagement, we applied DWORD zero only to the dynamically resolved NVIDIA display-class key, archiving the original absent value and restoration source first. Intel was unchanged. We then performed a full shutdown and reran the same EFI from a separate SSD diagnostic partition through the one-time boot menu. Windows Boot Manager remained the normal default.
Observed Windows result at the unchanged 130 W ceiling:
The direct diagnostic uses register operands and per-warp cycle counts, with 24 cases and all 22,413,312 output values checked per run. Its ratios are not GPU utilization percentages. The larger matrix test used unchanged code/settings, matching quantized input hashes, 4096/8192 matrices, two passes and 20 timings per row. All ten sampled correctness rows passed against full-dimension CPU FP64 dot-product references. GPU temperature peaked at 60 C, without sampled thermal-slowdown flags. This is a configured 130 W ceiling, not a claim of measured power draw.
A second direct-MMA probe after the matrix workload and about 55 seconds without an owned CUDA workload retained full-rate ratios (1.02843 / 1.01374), with all checks passing. Both display adapters remained healthy. Physical brightness was not separately verified in this trial.
Limitations: one successful Windows boot, no supported Windows selector readback, no observed causal D3 transition, no same-policy normal-boot stock control, and no sleep/resume, multi-boot, battery-cost, long-term stability or real-application speedup validation. The result supports this workaround's relevance on another MSI configuration, but does not identify the exact relock mechanism or establish compatibility with arbitrary laptops/drivers.
Additional short factory-profile testing after the unlock: a fresh 130 W matrix run, a 175 W Extreme Performance run with zero core/VRAM offsets, and a restored 130 W run all passed their ten sampled correctness rows. The 175 W profile added FP16 +11.48% and BF16 +15.36% over unlocked 130 W; peaks were 58 C / 67 C / 62 C respectively, without sampled thermal-slowdown flags. The restored 130 W run retained performance (FP16 -0.67%, BF16 +2.62% relative to its first run). This is a profile comparison, including possible CPU/fan-policy differences. A supplementary 175 W MMA probe had a process-completion reporting error and is excluded from clean supervised-pass claims. Balanced/130 W and the saved profile offsets were restored afterward.
Our helper resolves adapter keys from PnP identity and pins the tested driver; copying registry suffixes or machine-specific EFI admission values would be inappropriate. No firmware binaries, raw PROM captures, private machine logs or personal identifiers are attached. Credit for the runtime-power lead belongs to the prior work in #117.