2019-10-30 22:14:30 +08:00
.TH "scrcpy" "1"
.SH NAME
scrcpy \- Display and control your Android device
.SH SYNOPSIS
.B scrcpy
.RI [ options ]
.SH DESCRIPTION
.B scrcpy
provides display and control of Android devices connected on USB (or over TCP/IP). It does not require any root access.
.SH OPTIONS
2019-11-20 06:04:31 +08:00
.TP
.B \- \- always\-on\-top
Make scrcpy window always on top (above other windows).
2019-10-30 22:14:30 +08:00
.TP
.BI "\-b, \-\-bit\-rate " value
Encode the video at the given bit\- rate, expressed in bits/s. Unit suffixes are supported: '\fB K\fR ' (x1000) and '\fB M\fR ' (x1000000).
Default is 8000000.
.TP
2019-11-27 17:44:14 +08:00
.BI "\-\-crop " width\fR:\fIheight\fR:\fIx\fR:\fIy
2019-10-30 22:14:30 +08:00
Crop the device screen on the server.
The values are expressed in the device natural orientation (typically, portrait for a phone, landscape for a tablet). Any
.B \- \- max\-size
value is computed on the cropped size.
2020-02-24 19:16:38 +08:00
.TP
.BI "\-\-display " id
Specify the display id to mirror.
The list of possible display ids can be listed by "adb shell dumpsys display"
(search "mDisplayId=" in the output).
Default is 0.
2019-10-30 22:14:30 +08:00
.TP
.B \- f, \- \- fullscreen
Start in fullscreen.
.TP
.B \- h, \- \- help
Print this help.
2020-02-16 19:30:36 +08:00
.TP
.BI "\-\-lock\-video\-orientation " value
2020-04-08 18:04:57 +08:00
Lock video orientation to \fI value\fR . Possible values are -1 (unlocked), 0, 1, 2 and 3. Natural device orientation is 0, and each increment adds a 90 degrees otation counterclockwise.
2020-02-16 19:30:36 +08:00
Default is -1 (unlocked).
2019-11-18 05:07:19 +08:00
.TP
2019-11-27 17:44:14 +08:00
.BI "\-\-max\-fps " value
2019-12-19 18:49:50 +08:00
Limit the framerate of screen capture (officially supported since Android 10, but may work on earlier versions).
2019-11-18 05:07:19 +08:00
2019-10-30 22:14:30 +08:00
.TP
.BI "\-m, \-\-max\-size " value
Limit both the width and height of the video to \fI value\fR . The other dimension is computed so that the device aspect\- ratio is preserved.
Default is 0 (unlimited).
.TP
.B \- n, \- \- no\-control
Disable device control (mirror the device in read\- only).
.TP
.B \- N, \- \- no\-display
Do not display device (only when screen recording is enabled).
.TP
2019-12-10 04:16:09 +08:00
.BI "\-p, \-\-port " port[:port]
Set the TCP port (range) used by the client to listen.
2019-10-30 22:14:30 +08:00
2019-12-10 04:16:09 +08:00
Default is 27183:27199.
2019-10-30 22:14:30 +08:00
2019-11-08 02:01:35 +08:00
.TP
.B \- \- prefer\-text
Inject alpha characters and space as text events instead of key events.
This avoids issues when combining multiple keys to enter special characters,
but breaks the expected behavior of alpha keys in games (typically WASD).
2019-10-30 22:14:30 +08:00
.TP
.BI "\-\-push\-target " path
Set the target directory for pushing files to the device by drag & drop. It is passed as\- is to "adb push".
Default is "/sdcard/".
.TP
.BI "\-r, \-\-record " file
Record screen to
.IR file .
The format is determined by the
2019-11-20 06:04:31 +08:00
.B \- \- record\-format
2019-10-30 22:14:30 +08:00
option if set, or by the file extension (.mp4 or .mkv).
2019-11-20 06:04:31 +08:00
.TP
2019-11-27 17:44:14 +08:00
.BI "\-\-record\-format " format
2019-11-20 06:04:31 +08:00
Force recording format (either mp4 or mkv).
2020-04-11 20:34:41 +08:00
.TP
.BI "\-\-render\-driver " name
Request SDL to use the given render driver (this is just a hint).
Supported names are currently "direct3d", "opengl", "opengles2", "opengles", "metal" and "software".
.UR https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER
.UE
2019-11-20 06:04:31 +08:00
2019-10-30 22:14:30 +08:00
.TP
.B \- \- render\-expired\-frames
By default, to minimize latency, scrcpy always renders the last available decoded frame, and drops any previous ones. This flag forces to render all frames, at a cost of a possible increased latency.
2020-04-08 16:17:12 +08:00
.TP
.BI "\-\-rotation " value
Set the initial display rotation. Possibles values are 0, 1, 2 and 3. Each increment adds a 90 degrees rotation counterclockwise.
2019-10-30 22:14:30 +08:00
.TP
.BI "\-s, \-\-serial " number
The device serial number. Mandatory only if several devices are connected to adb.
.TP
.B \- S, \- \- turn\-screen\-off
Turn the device screen off immediately.
.TP
.B \- t, \- \- show\-touches
Enable "show touches" on start, disable on quit.
It only shows physical touches (not clicks from scrcpy).
.TP
.B \- v, \- \- version
Print the version of scrcpy.
2019-11-16 01:59:47 +08:00
.TP
.B \- \- window\-borderless
Disable window decorations (display borderless window).
2019-10-30 22:14:30 +08:00
.TP
2019-11-27 17:44:14 +08:00
.BI "\-\-window\-title " text
2019-10-30 22:14:30 +08:00
Set a custom window title.
2019-11-04 00:34:01 +08:00
.TP
2019-11-27 17:44:14 +08:00
.BI "\-\-window\-x " value
2019-11-04 00:34:01 +08:00
Set the initial window horizontal position.
2020-03-27 00:54:06 +08:00
Default is "auto".\n
2019-11-04 00:34:01 +08:00
.TP
2019-11-27 17:44:14 +08:00
.BI "\-\-window\-y " value
2019-11-04 00:34:01 +08:00
Set the initial window vertical position.
2020-03-27 00:54:06 +08:00
Default is "auto".\n
2019-11-04 00:34:01 +08:00
2019-11-04 01:00:11 +08:00
.TP
2019-11-27 17:44:14 +08:00
.BI "\-\-window\-width " value
2019-11-04 01:00:11 +08:00
Set the initial window width.
Default is 0 (automatic).\n
.TP
2019-11-27 17:44:14 +08:00
.BI "\-\-window\-height " value
2019-11-04 01:00:11 +08:00
Set the initial window height.
Default is 0 (automatic).\n
2019-10-30 22:14:30 +08:00
.SH SHORTCUTS
.TP
.B Ctrl+f
2020-04-08 18:02:15 +08:00
Switch fullscreen mode
2019-10-30 22:14:30 +08:00
2020-04-08 05:03:23 +08:00
.TP
.B Ctrl+Left
Rotate display left
.TP
.B Ctrl+Right
Rotate display right
2019-10-30 22:14:30 +08:00
.TP
.B Ctrl+g
2020-04-08 18:02:15 +08:00
Resize window to 1:1 (pixel\- perfect)
2019-10-30 22:14:30 +08:00
.TP
.B Ctrl+x, Double\-click on black borders
2020-04-08 18:02:15 +08:00
Resize window to remove black borders
2019-10-30 22:14:30 +08:00
.TP
.B Ctrl+h, Home, Middle\-click
Click on HOME
.TP
.B Ctrl+b, Ctrl+Backspace, Right\-click (when screen is on)
Click on BACK
.TP
.B Ctrl+s
Click on APP_SWITCH
.TP
.B Ctrl+m
Click on MENU
.TP
.B Ctrl+Up
Click on VOLUME_UP
.TP
.B Ctrl+Down
Click on VOLUME_DOWN
.TP
.B Ctrl+p
Click on POWER (turn screen on/off)
.TP
.B Right\-click (when screen is off)
2020-04-08 18:02:15 +08:00
Turn screen on
2019-10-30 22:14:30 +08:00
.TP
.B Ctrl+o
2020-04-08 18:02:15 +08:00
Turn device screen off (keep mirroring)
2019-10-30 22:14:30 +08:00
2019-12-05 02:55:28 +08:00
.TP
.B Ctrl+r
2020-04-08 18:02:15 +08:00
Rotate device screen
2019-12-05 02:55:28 +08:00
2019-10-30 22:14:30 +08:00
.TP
.B Ctrl+n
2020-04-08 18:02:15 +08:00
Expand notification panel
2019-10-30 22:14:30 +08:00
.TP
.B Ctrl+Shift+n
2020-04-08 18:02:15 +08:00
Collapse notification panel
2019-10-30 22:14:30 +08:00
.TP
.B Ctrl+c
2020-04-08 18:02:15 +08:00
Copy device clipboard to computer
2019-10-30 22:14:30 +08:00
.TP
.B Ctrl+v
2020-04-08 18:02:15 +08:00
Paste computer clipboard to device
2019-10-30 22:14:30 +08:00
.TP
.B Ctrl+Shift+v
2020-04-08 18:02:15 +08:00
Copy computer clipboard to device
2019-10-30 22:14:30 +08:00
.TP
.B Ctrl+i
2020-04-08 18:02:15 +08:00
Enable/disable FPS counter (print frames/second in logs)
2019-10-30 22:14:30 +08:00
.TP
.B Drag & drop APK file
2020-04-08 18:02:15 +08:00
Install APK from computer
2019-10-30 22:14:30 +08:00
.SH Environment variables
.TP
.B ADB
Specify the path to adb.
.TP
.B SCRCPY_SERVER_PATH
Specify the path to server binary.
.SH AUTHORS
.B scrcpy
is written by Romain Vimont.
This manual page was written by
.MT mmyangfl@gmail.com
Yangfl
.ME
for the Debian Project (and may be used by others).
.SH "REPORTING BUGS"
Report bugs to
.UR https://github.com/Genymobile/scrcpy/issues
.UE .
.SH COPYRIGHT
Copyright \(co 2018 Genymobile
.UR https://www.genymobile.com
Genymobile
.UE
2020-01-19 23:04:20 +08:00
Copyright \(co 2018\- 2020
2019-10-30 22:14:30 +08:00
.MT rom@rom1v.com
Romain Vimont
.ME
Licensed under the Apache License, Version 2.0.
.SH WWW
.UR https://github.com/Genymobile/scrcpy
.UE