The first time you have to set it up with a cable. The Oculus Quest has a USB-C port (the one used for charging). Use this to connect to your computer.
Your Quest needs to be in Developer mode. This is super easy, just open your companion app on your phone and go to Settings and enable Developer mode. You may need to create an organization first on the Oculus website. You can enter any name you want for the organization.
First you need Homebrew on your system. It's a utility that lets you install a lot of tools from the Terminal. Follow the instructions on https://brew.sh/ (just paste the line they suggest into Terminal).
Next, in Terminal:
- Run
brew cask install android-platform-tools
(Android developer tools) - Run
brew install scrcpy
(the streaming tool)
(Tip: To launch Terminal, press ⌘+Space to show Spotlight, write "Terminal", then hit Return.)
- Connect Quest to your computer with cable
- In Terminal, run
adb devices
and make sure you allow computer within the Quest
Next, to enable wireless connections you need to:
- Make sure your computer and Quest are on the same WiFi!
- Run
adb tcpip 5555
to enable wireless connections - Run
adb shell ip route
to get the IP of your Quest - Unplug the Quest from your computer
- Run
adb connect <IP>:5555
(replace<IP>
with the IP from step 3) to connect to the Quest wirelessly
Just run scrcpy
on the Terminal! There are cropping options
that you can play with to only show one eye, etc.
Try scrcpy -b 25M -c 1440:1540:60:60
to start. You can play
with the numbers after -c
(width : height : x : y).
https://github.com/Genymobile/scrcpy/blob/master/README.md
Like to how to use Scrcpy and it's settings.
Here: -b 25M is the Bit rate, -c 1400:1540: (default Quest 2 resolution) 60:60
I recommend changing the bitrate to 30M for the Quest 2.
Recording
It is possible to record the screen while mirroring:
scrcpy --record file.mp4
scrcpy -r file.mkv
To disable mirroring while recording:
scrcpy --no-display --record file.mp4
scrcpy -Nr file.mkv
interrupt recording with Ctrl+C