2024-10-23 16:52:35 +00:00
|
|
|
# Virtual display
|
|
|
|
|
|
|
|
## New display
|
|
|
|
|
|
|
|
To mirror a new virtual display instead of the device screen:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
scrcpy --new-display=1920x1080
|
|
|
|
scrcpy --new-display=1920x1080/420 # force 420 dpi
|
|
|
|
scrcpy --new-display # use the main display size and density
|
|
|
|
scrcpy --new-display=/240 # use the main display size and 240 dpi
|
|
|
|
```
|
|
|
|
|
|
|
|
## Start app
|
|
|
|
|
|
|
|
On some devices, a launcher is available in the virtual display.
|
|
|
|
|
2024-12-04 11:59:48 +00:00
|
|
|
When no launcher is available (or if is explicitly disabled by
|
|
|
|
[`--no-vd-system-decorations`](#system-decorations)), the virtual display is
|
|
|
|
empty. In that case, you must [start an Android
|
|
|
|
app](device.md#start-android-app).
|
2024-10-23 16:52:35 +00:00
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
scrcpy --new-display=1920x1080 --start-app=org.videolan.vlc
|
|
|
|
```
|
2024-11-16 21:45:38 +00:00
|
|
|
|
2024-12-04 11:59:48 +00:00
|
|
|
The app may itself be a launcher. For example, to run the open source [Fossify
|
|
|
|
Launcher]:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
scrcpy --new-display=1920x1080 --no-vd-system-decorations --start-app=org.fossify.home
|
|
|
|
```
|
|
|
|
|
|
|
|
[Fossify Launcher]: https://f-droid.org/en/packages/org.fossify.home/
|
|
|
|
|
|
|
|
|
2024-11-16 21:45:38 +00:00
|
|
|
## System decorations
|
|
|
|
|
2024-12-04 11:59:48 +00:00
|
|
|
By default, virtual display system decorations are enabled. To disable them, use
|
|
|
|
`--no-vd-system-decorations`:
|
|
|
|
|
|
|
|
```
|
|
|
|
scrcpy --new-display --no-vd-system-decorations
|
|
|
|
```
|
2024-11-16 21:45:38 +00:00
|
|
|
|
2024-12-04 11:59:48 +00:00
|
|
|
This is useful for some devices which might display a broken UI, or to disable
|
|
|
|
any default launcher UI available in virtual displays.
|
2024-11-16 21:45:38 +00:00
|
|
|
|
|
|
|
Note that if no app is started, no content will be rendered, so no video frame
|
|
|
|
will be produced at all.
|