Files
scripts/quest-cast9.sh
2026-06-11 13:47:48 -04:00

44 lines
1.0 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Quest 2 wireless mirror to PC → 480i CRT
# Forced encoder + low settings to stop ~20s black flicker (Horizon OS v74+ bug)
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:"
adb devices
echo ""
read -p "Disconnect USB now. Reboot Quest if possible. Put on headset, enter game/app NOW, then press Enter..."
echo ""
echo "Starting scrcpy (test for flicker after 2060s)..."
echo ""
scrcpy -s "${IP}" \
--max-size=640 \
--max-fps=30 \
--video-bit-rate=800K \
--video-encoder=c2.qti.avc.encoder \
--no-audio \
--no-control \
--always-on-top \
--window-width=640 \
--window-height=480 \
--window-borderless
echo ""
echo "Next steps if flicker remains:"
echo " - Swap encoder: --video-encoder=OMX.qcom.video.encoder.avc"
echo " - Lower more: --max-size=480 --video-bit-rate=400K --max-fps=24"
echo " - Check issue #5913 on GitHub for patched binaries (search 'Quest 2 fix')"
echo " - HDMI PC out → composite adapter → CRT"