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

47 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# Quest 2 wireless mirror to PC → 480i CRT
# --no-audio ensures Quest headset NOT muted (sound stays in-headset)
# Left-eye crop (since right gave black; tweak if needed)
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 with F11 or similar; q/Ctrl+C to quit)"
echo ""
scrcpy -s "${IP}" \
--crop=1832:960:0:0 \
--max-size=640 \
--max-fps=30 \
--video-bit-rate=800K \
--no-audio \
--no-control \
--always-on-top \
--window-width=640 \
--window-height=480 \
--window-borderless
echo ""
echo "Troubleshooting:"
echo " - Black screen? Try centered/right-ish crop: --crop=1600:900:2017:510"
echo " Or simple right half: --crop=1832:960:1832:0"
echo " Add --encoder=OMX.google.h264.encoder if black persists (forces software encoder)"
echo " - Audio still muted on Quest? Double-check no other flags removed --no-audio; restart Quest if stuck"
echo " - Game lag? Lower to --video-bit-rate=500K or --max-size=480"
echo " - HDMI from PC → composite adapter → CRT"