Files
2026-06-11 13:47:48 -04:00

45 lines
1.3 KiB
Bash

#!/bin/bash
# Quest 2 wireless mirror to PC → 480i CRT
# Right-eye focus crop + audio kept on Quest (no mute)
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:1832: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 " - Still seeing both eyes/duplication? Increase x-offset: try --crop=1832:960:1850:100 or --crop=1832:960:1900:0"
echo " - Right eye looks wrong/black? Swap to left: --crop=1832:960:0:0 (or tweak offset lower like 100:100)"
echo " - Black screen overall? Add --encoder=OMX.google.h264.encoder"
echo " - No audio on Quest? (rare) — audio should play normally in headset; scrcpy captures to PC too unless --no-audio is added"
echo " - Game lag? Lower --video-bit-rate=500K or --max-size=480"
echo " - HDMI from PC → composite adapter → CRT"