Skip to content

v0.3.0 - P2UNLOCK TUI and Dual-Method Gen2

Latest

Choose a tag to compare

@kagenouReal kagenouReal released this 05 Dec 00:38
· 2 commits to main since this release

P2UNLOCK v0.3.0 — TUI and Dual-Method Gen2

P2UNLOCK v0.3.0 adds an interactive terminal UI and a second Gen2 handling path. Gen2 can now be used with compatible NVIDIA driver configurations beyond the Qi-patched setup documented for v0.2.0. The two methods are selected automatically from the observed PCIe link state; users do not need to choose a method.

For general hardware requirements, PCIe width information, commands, and build instructions, see the main README.

What's new

Interactive terminal UI

Run P2UNLOCK.exe without arguments to open the interactive terminal UI in a Windows console. Use Up/Down to select an action, Enter to run it, and Q to quit.

The TUI exposes the main operations: Status, Enable Gen2, Set width x8, Set width x16, Bandwidth test, Install, and Uninstall. It is a text interface, not a separate graphical application. The existing CLI remains available.

Dual-method Gen2 handling

P2UNLOCK always attempts Method 1 first, then starts the Method 2 worker. The worker's starting behavior depends on whether Method 1 actually established a stable Gen2 link.

Method 1 — One-time Gen2 apply

Method 1 applies the Gen2 configuration once. P2UNLOCK then checks the real link for a six-second stability window. The GPU and upstream bridge must both report Gen2, matching non-zero negotiated widths, and no active link training.

This is the preferred path when the active NVIDIA driver leaves the applied Gen2 configuration intact. There is no need to keep rewriting the PCIe settings when the link is already stable.

Method 2 — Monitor first, recover only when needed

Method 2 runs as a background worker and watches the actual GPU and upstream PCIe link state.

  • When Method 1 succeeds: Method 2 starts in read-only monitoring mode. It does not repeatedly write the Gen2 registers while the link remains stable at Gen2.
  • If a later downshift is detected: Method 2 waits for a confirmed Gen1 state on both sides of the link. The confirmation requires at least three samples spanning 250 ms, with matching non-zero negotiated widths and no active link training. Only then does it run the live recovery sequence: reapply the Gen2 settings, request Gen2 speed on the GPU and upstream bridge, and retrain the link.
  • When Method 1 does not establish stable Gen2: Method 2 enters its recovery path instead of staying in monitor-only mode. It prepares the requested width when necessary and attempts the live Gen2 recovery sequence.

After recovery, the link must remain stable at Gen2 for six seconds before Method 2 returns to read-only monitoring. If the link remains stably at Gen1 after a recovery attempt, the worker can try the live recovery sequence again. A write or recovery error can still stop the worker.

Method 2 is therefore not a constant-write loop while Gen2 is healthy. It monitors first when Method 1 has succeeded, and writes again only when recovery is required.

Why the Qi driver is still recommended

The recommended setup remains NVIDIA 582.99 DCH + Qi Fix 0.2.

The reason is how the driver behaves after Method 1:

  • With the Qi driver in the maintainer's testing, the driver does not overwrite the applied Gen2 configuration. Method 1 can establish a stable Gen2 link, so Method 2 normally stays in read-only monitoring mode.
  • With some other compatible NVIDIA driver builds or patches, the driver may overwrite the Gen2 setting and cause the link to return to Gen1. Method 2 is designed to handle this behavior: it confirms the downshift, reapplies Gen2 live, and retrains the link.

This is why the Qi driver is recommended for users who want the steadier result: the link can remain on the one-time Method 1 path without depending on repeated recovery. Other compatible driver configurations can still use Gen2 without Qi Fix, but they may require repeated Method 2 recovery.

Recovery is reactive, not a permanent lock. The link can briefly fall back to Gen1 before the downshift is confirmed and recovered. If a driver keeps overwriting the setting—particularly under a heavy rendering workload—recovery may happen repeatedly, may interrupt link performance, or may fail. Results vary by driver, system, and workload. P2UNLOCK does not guarantee that every NVIDIA driver build will work.

Method selection is based on the observed link result, not on a hard-coded Qi/non-Qi driver list. Qi is recommended because of its observed behavior with Method 1, not because P2UNLOCK requires Qi to attempt Gen2 in v0.3.0.

Recommended Qi driver installer

The v0.3.0 release provides a ready-to-run installer for NVIDIA 582.99 DCH + Qi Fix 0.2. You do not need to separately download the original NVIDIA package, extract it, and manually replace the patched driver files as described in the v0.2.0 setup.

The installer is a separate release asset; it is not bundled inside P2UNLOCK-windows-x64.zip. The application ZIP contains the P2UNLOCK program and its bundled Seavo driver. Keep the application's drivers directory next to P2UNLOCK.exe when extracting it.

  • File: NVIDIADriver_582.99_Qi_Fix_0.2.exe
  • Size: 885 MB
  • GitHub: Download it from the Assets section of this release.
  • Google Drive mirror: Download Qi Fix 0.2 installer
  • SHA-256: 04b69d4aaf849f4058b3674afb6c045249167ad78d57e925eb12d96e46614110

Verify the installer in PowerShell before running it:

Get-FileHash .\NVIDIADriver_582.99_Qi_Fix_0.2.exe -Algorithm SHA256

The result must match the SHA-256 value above. Do not run the installer if the hash does not match. After installing the driver, restart Windows.

Quick Gen2 setup

  1. Download the recommended Qi installer from the GitHub release or the Google Drive mirror above.

  2. Verify its SHA-256 hash.

  3. Run the installer and complete the NVIDIA driver installation. Restart Windows.

  4. Download and extract P2UNLOCK-windows-x64.zip. Keep the drivers directory next to P2UNLOCK.exe.

  5. Run P2UNLOCK.exe as Administrator and select Enable Gen2, or run:

    .\P2UNLOCK.exe gen 2
    .\P2UNLOCK.exe status
  6. To have the saved profile applied automatically after Windows starts, select Install in the TUI or run .\P2UNLOCK.exe install from an Administrator terminal.

The Qi driver is recommended, not mandatory for every compatible driver setup in v0.3.0. Without Qi, Method 2 may need to perform live recovery if the active driver overwrites the Gen2 configuration.

Release assets

Asset Size SHA-256
P2UNLOCK-windows-x64.zip 247 KB 595897192e40dff6664d89d23918eb528574f8b6892897c6da2d61d2456065f0
NVIDIADriver_582.99_Qi_Fix_0.2.exe 885 MB 04b69d4aaf849f4058b3674afb6c045249167ad78d57e925eb12d96e46614110

Verify the downloaded application package with PowerShell:

Get-FileHash .\P2UNLOCK-windows-x64.zip -Algorithm SHA256

Known limitations

  • Method 2 is a monitoring and recovery mechanism, not a permanent hardware lock. A driver or system can still force a downshift to Gen1.
  • Recovery is reactive. The link may remain at Gen1 while the worker confirms the downshift and performs the live recovery sequence.
  • Repeated driver-side overwrites can cause repeated recovery attempts. This can lead to inconsistent link behavior or performance, especially during long or heavy rendering workloads.
  • Recovery is not guaranteed to succeed. A write/recovery error can stop the worker.
  • The Method 2 worker must remain running while its monitoring and recovery behavior is needed. Use the installed P2UNLOCK service for automatic startup after a reboot.
  • A successful command alone does not prove that the link is currently stable. Use status and confirm that the GPU and upstream bridge both report Gen2, matching negotiated widths, and no active link training.
  • PCIe width is still limited by the card's PCB/components and the electrically connected lanes in the motherboard/CPU/upstream path. See the main README for hardware requirements and caveats.

Updating from v0.2.0

Do not install v0.3.0 over an active v0.2.0 service. Remove the old service first.

  1. Open the existing v0.2.0 application folder in an Administrator terminal.

  2. Run:

    .\P2UNLOCK.exe uninstall
  3. Restart Windows so the old service is fully stopped.

  4. Extract the v0.3.0 Windows x64 package, keeping the drivers directory next to P2UNLOCK.exe.

  5. Run the new P2UNLOCK.exe as Administrator. Reinstall the auto-start service through the TUI or with .\P2UNLOCK.exe install if you want the saved profile applied at startup.

Credits

Thanks to Qi, Hinata, GreenDamTan, and Rain Candy for creating and contributing to the Qi driver patch. These credits apply to the Qi driver modification, not to the P2UNLOCK application source code.