English | 简体中文
PowerShell scripts for mitigating intermittent one- to two-second input and audio freezes associated with AMD fTPM on Ryzen 5000 laptops with BIOS versions before AGESA 1.2.0.7 (AMD advisory PA-410). The scripts apply Windows-side workarounds. The case study documents the behavior observed on Windows 11.
flowchart LR
A["Record a freeze with ETW"] --> B["Check for fTPM involvement"]
B -->|Trace suggests fTPM| C["Apply and verify the WebView2 policy"]
B -->|Cause unclear| G["Investigate other possible causes"]
C --> D{"Kernel-triggered freezes persist?"}
D -->|Yes| E["Review the requirements for disabling the TPM driver"]
D -->|No| F["Continue monitoring"]
| Option | Effect | Trade-off |
|---|---|---|
| 1. Edge and WebView2 policy | Changes Windows policies to reduce application-triggered fTPM activity. Periodic TPM calls from the Windows kernel can still trigger freezes. | Keeps the TPM enabled and leaves TPM-backed features available. Use this option first. |
| 2. Disable the Windows TPM driver | Stops Windows from accessing the TPM while the driver is disabled, including the periodic kernel calls observed in the case study. | Requires BitLocker and Device Encryption to be off. TPM-backed passkeys and software that requires TPM 2.0 are unavailable while the driver is disabled. |
Use Windows ETW Flight Recorder to collect a trace if the cause of the freeze is unclear.
Download the ZIP from the latest release and extract it. Applying and reverting changes requires administrator privileges.
- Run
1-Apply-Mitigation.cmdand select Standard for the Edge and WebView2 policies. Full also changes Windows cloud search, cloud content, and Store policies. - Restart the affected applications or restart Windows. Run
2-Verify-Mitigation.cmdto check foroneauth.dllandaadWamExtension.dllin running WebView2 processes. - Run
3-Revert-Mitigation.cmdto remove the policies applied by the scripts.
Warning
Confirm that all drives are fully decrypted and that you can unlock Windows using your account password. TPM-backed passkeys and software requiring TPM 2.0, including some anti-cheat systems, are unavailable while the Windows TPM driver is disabled.
- In Settings → Accounts → Sign-in options → Additional settings, turn off For improved security, only allow Windows Hello sign-in for Microsoft accounts on this device. Press
Win + Land verify that password sign-in works. - Run
4-Toggle-TPM-Driver-Advanced.cmd. Select[1]to check the system and[2]to disable the driver. The script refuses to continue if it detects BitLocker or Device Encryption. - Restart Windows. If Windows Hello is unavailable, sign in with your password. The test system allowed PIN and fingerprint enrollment again in software-protection mode.
- To restore the driver, select
[3]and restart Windows.
The Windows 11 traces showed two paths associated with freezes on the test laptop. One involved Edge or WebView2 authentication components reaching tbs.dll. The other involved periodic kernel calls from cng.sys to tpm.sys, observed about every eight to nine minutes. The case study includes the trace timeline, the WebView2 policy settings, and the results observed on that device. Read the case study.
# Apply, verify, and revert the policy
# Add -IncludeSystemPolicies to Apply-WebView2Mitigation.ps1 for Full mode.
.\scripts\Apply-WebView2Mitigation.ps1
.\scripts\Verify-Mitigation.ps1
.\scripts\Revert-WebView2Mitigation.ps1 -IncludeSystemPolicies
# Inspect, disable, and restore the Windows TPM driver
.\scripts\Set-TpmDriverState.ps1 -Action Status
.\scripts\Set-TpmDriverState.ps1 -Action Disable
.\scripts\Set-TpmDriverState.ps1 -Action Enable