#!/bin/bash # Quest 2 wireless mirror to PC → 480i CRT (ultra-low quality for min game lag/latency) # Removed --stay-awake (conflicts with --no-control) + fixed previous issues IP="10.0.0.30:5555" echo "Enabling ADB over TCP..." adb tcpip 5555 sleep 2 echo "Connecting to Quest..." adb connect "${IP}" echo "" echo "ADB devices (should list your Quest):" adb devices echo "" read -p "Disconnect USB now. Wake Quest fully (put it on), launch game/app, press Enter..." echo "" echo "Starting scrcpy... (fullscreen the window with F11 or OS shortcut; q/Ctrl+C to quit)" echo "" scrcpy -s "${IP}" \ # --crop=1832:960:1832:0 \ --crop=1832:960:0:0 \ --max-size=640 \ --max-fps=30 \ --video-bit-rate=800K \ --no-control \ --always-on-top \ --window-width=640 \ --window-height=480 \ --window-borderless echo "" echo "Troubleshooting:" echo " - Black screen? Try left-eye crop instead: change to --crop=1832:960:0:0" echo " Or tweak offset: --crop=1832:960:1700:100 (experiment in 100-pixel steps)" echo " - Still black/no video? Add this to the scrcpy line:" echo " --encoder=OMX.google.h264.encoder" echo " (forces a software encoder on Quest — often fixes black screens on Horizon OS)" echo " - Game lag/stutter? Lower further: --video-bit-rate=500K or --max-size=480" echo " - Output HDMI from PC → cheap HDMI-to-composite adapter → your 480i CRT" echo " - Quest sleeps too fast? Enable 'Stay awake' manually in Quest Developer Options (while charging via USB briefly)"