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

45 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# Quest 2 wireless mirror to PC → 480i CRT
# Only crop changed for better 4:3 compatibility (taller source to reduce bars)
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=1440:1080:2017:420 \
--max-size=800 \
--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 " - Too much lens top again? Increase y-offset: --crop=1440:1080:2017:480"
echo " - Cuts bottom/UI? Lower y-offset back: --crop=1440:1080:2017:510 or try original 1600:900:2017:510"
echo " - Still too many black bars? Use wider source: --crop=1500:1125:2017:450 (closer to 4:3 fill)"
echo " - Black screen? Add --encoder=OMX.google.h264.encoder"
echo " - HDMI from PC → composite adapter → CRT"