Skip to content

Display and control your Android device

Fix multiple issues in documentation

Jah-yee19057b48afb9
diff --git a/doc/build.md b/doc/build.md
index dc76f172..8978b25a 100644
--- a/doc/build.md
+++ b/doc/build.md
@@ -275,8 +275,14 @@ This installs several files:
- `/usr/local/share/scrcpy/scrcpy-server` (server to push to the device)
- `/usr/local/share/man/man1/scrcpy.1` (manpage)
- `/usr/local/share/icons/hicolor/256x256/apps/scrcpy.png` (app icon)
+ - `/usr/local/share/icons/hicolor/256x256/apps/disconnected.png` (device
+ disconnected icon)
- `/usr/local/share/zsh/site-functions/_scrcpy` (zsh completion)
- `/usr/local/share/bash-completion/completions/scrcpy` (bash completion)
+ - `/usr/local/share/applications/scrcpy.desktop` (app-without-console desktop
+ entry file)
+ - `/usr/local/share/applications/scrcpy-console.desktop` (app-with-console
+ desktop entry file)
You can then run `scrcpy`.
diff --git a/doc/camera.md b/doc/camera.md
index 4ffa1e38..08b5c930 100644
--- a/doc/camera.md
+++ b/doc/camera.md
@@ -141,7 +141,7 @@ This mode is restricted to specific resolutions and frame rates, listed by
`--list-camera-sizes`.
```bash
-scrcpy --video-source=camera --camera-size=1920x1080 --camera-fps=240
+scrcpy --video-source=camera --camera-size=1920x1080 --camera-high-speed --camera-fps=240
```
[high speed]: https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession
@@ -150,7 +150,8 @@ scrcpy --video-source=camera --camera-size=1920x1080 --camera-fps=240
## Brace expansion tip
All camera options start with `--camera-`, so if your shell supports it, you can
-benefit from [brace expansion] (for example, it is supported _bash_ and _zsh_):
+benefit from [brace expansion] (for example, it is supported by _bash_ and
+_zsh_):
```bash
scrcpy --video-source=camera --camera-{facing=back,ar=16:9,high-speed,fps=120}
@@ -179,7 +180,7 @@ and <kbd>MOD</kbd>+<kbd>Shift</kbd>+<kbd>t</kbd>, respectively.
## Zoom
-The camera zoom can be set with `--camera-zoom=`:
+The camera zoom can be set with `--camera-zoom`:
```bash
scrcpy --video-source=camera --camera-zoom=1.5
diff --git a/doc/device.md b/doc/device.md
index a88e8e59..c709533c 100644
--- a/doc/device.md
+++ b/doc/device.md
@@ -36,7 +36,7 @@ changed manually:
```bash
-# get the current show_touches value
+# get the current stay_on_while_plugged_in value
adb shell settings get global stay_on_while_plugged_in
# enable for AC/USB/wireless chargers
adb shell settings put global stay_on_while_plugged_in 7
diff --git a/doc/linux.md b/doc/linux.md
index 2c6bde26..b9c131f8 100644
--- a/doc/linux.md
+++ b/doc/linux.md
@@ -39,10 +39,10 @@ First, you need to install the required packages:
```bash
# for Debian/Ubuntu
-sudo apt install ffmpeg libsdl3-0 adb wget \
+sudo apt install ffmpeg libsdl3-0 libusb-1.0-0 adb wget \
gcc git pkg-config meson ninja-build libsdl3-dev \
libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
- libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
+ libswresample-dev libusb-1.0-0-dev libv4l-dev
```
Then clone the repo and execute the installation script
diff --git a/doc/video.md b/doc/video.md
index c5297296..172bc8f0 100644
--- a/doc/video.md
+++ b/doc/video.md
@@ -173,7 +173,7 @@ The orientation can be set separately for display and record if necessary, via
`--display-orientation` and `--record-orientation`.
The rotation is applied to a recorded file by writing a display transformation
-to the MP4 or MKV target file. Flipping is not supported, so only the 4 first
+to the MP4 or MKV target file. Flipping is not supported, so only the first four
values are allowed when recording.
@@ -241,7 +241,7 @@ get a smoother playback (see [#2464]).
[#2464]: https://github.com/Genymobile/scrcpy/issues/2464
The configuration is available independently for the display,
-[v4l2 sinks](video.md#video4linux) and [audio](audio.md#buffering) playback.
+[v4l2 sinks](v4l2.md#buffering) and [audio](audio.md#buffering) playback.
```bash
scrcpy --video-buffer=50 # add 50ms buffering for video playback