Advertisement
AdrenSnyder

Oculus Quest2 AX200 (AX3000) Guide Fix Latency

Jan 30th, 2021 (edited)
6,273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # GUIDE to get Quest2 working with HotSpot of Intel AX200 PCIe and Win10 (Tested and working with 3 different pc hardware with TP-LINK AX3000)
  2. # By AdrenSnyder :-)
  3. #
  4. # This script enable wireless scan, enable hotspot (you have to previously configure it) and disable scan to reduce latency
  5. #
  6. # USAGE: After you have done all the next things (-->) needed to get it work you only need to:
  7. # 1) Start the link to the batch file (admin priviledge required)
  8. # 2) Connect 1 mobile phone to HotSpot
  9. # 3) Connect Quest2. Now you should connect at 600/1200mbps with 1-5ms latency (ping to ip of the quest2 when the streaming is on. Not the VD latency)
  10. #
  11. # YOU HAVE TO DO THIS NEXT THINGS ONLY ONE TIME TO ADAPT THE SCRIPT TO YOUR HARDWARE AND AUTORIZE POWERSHELL TO START IT
  12. #
  13. # --> Copy this entire pastebin to a file and name it Start_HotSpot_Quest2.ps1
  14. #
  15. # --> Download and install last IT drivers from intel:
  16. # https://downloadcenter.intel.com/download/30113/Intel-PROSet-Wireless-Software-and-Drivers-for-IT-Admins
  17. #
  18. # --> I do some mods in the Advanced driver section of device manager.
  19. # - Block global scan: Always
  20. # - Fat channel incompatible: Enabled
  21. # - Increase throughput: Enabled
  22. # - Energy saving: no SMPS
  23. # - Mixed mode: CTS-to-self enabled
  24. #
  25. # --> Configure the HotSpot with SSID, password and 5Ghz channel
  26. #
  27. # --> Start a powershell with admin priviledges one time to enable script execution. Execute this commands:
  28. # Set-ExecutionPolicy Unrestricted
  29. # Set-executionpolicy -Scope currentuser -ExecutionPolicy Unrestricted
  30. #
  31. # --> NOTE: If it give a warning when you start the script you have to unblock the file
  32. # Unblock-File Start_HotSpot_Quest2.ps1
  33. #
  34. # --> Create a batch (Ex. Start_HotSpot_Quest2.bat) with inside:
  35. # powershell x:\path\Start_HotSpot_Quest2.ps1
  36. # Change x:\path with the correct path
  37. #
  38. # --> Create a link to the batch file and give it Admin Rights.
  39. #
  40. # --> IMPORTANT NOTE: In the "Variables" part you have to change the variable $WirelessAdapterName with your Wireless Adapter Name to get the script work
  41. #
  42. # END GUIDE
  43.  
  44. # Variables
  45. $WirelessAdapterName = "Wi-Fi"
  46.  
  47. # Declare variable for control the HotSpot
  48. $connectionProfile = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile()
  49. $tetheringManager = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile($connectionProfile)
  50.  
  51. # Enable Scan (need it to enable HotSpot)
  52. Start-Sleep -Seconds 2
  53. netsh wlan set autoconfig enabled=yes interface=$WirelessAdapterName
  54.  
  55. # Start Mobile Hotspot
  56. $tetheringManager.StartTetheringAsync()
  57. Start-Sleep -Seconds 2
  58.  
  59. # Disable Scan (need it to remove latency when Windows do a scheduled network scan)
  60. netsh wlan set autoconfig enabled=no interface=$WirelessAdapterName
  61.  
  62. # Pause
  63. Write-Host "Press ENTER to restore $WirelessAdapterName adapter scan and disable HotSpot"
  64. pause
  65.  
  66. # Restore
  67. netsh wlan set autoconfig enabled=yes interface=$WirelessAdapterName
  68. $tetheringManager.StopTetheringAsync()
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement