48 lines
1.3 KiB
Bash
Executable File
48 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
||
|
||
# Quest 2 wireless mirror to PC → 480i CRT
|
||
# Updated crop to avoid lens top (centered single view) + audio on Quest
|
||
|
||
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=1600:900:2017:510 \
|
||
--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 " - Still seeing lens top/empty area? Try higher y-offset: --crop=1600:900:2017:550"
|
||
echo " Or alternative crops:"
|
||
echo " --crop=1600:900:68:495 (left-leaning centered view)"
|
||
echo " --crop=1832:960:1832:100 (simple right half, shifted down a bit)"
|
||
echo " - Black screen? Add --encoder=OMX.google.h264.encoder"
|
||
echo " - Crop feels off-center/UI cut? Tweak x-offset by 50–100 (e.g. 2017 → 1950 or 2100)"
|
||
echo " - Game lag? Lower --video-bit-rate=500K or --max-size=480"
|
||
echo " - HDMI from PC → composite adapter → CRT"
|