Document --power-off-on-close
The option was not documented. Refs #824 <https://github.com/Genymobile/scrcpy/pull/824>
This commit is contained in:
parent
f489f7fcad
commit
30d40f4e78
3 changed files with 15 additions and 0 deletions
|
@ -582,6 +582,14 @@ scrcpy --turn-screen-off --stay-awake
|
||||||
scrcpy -Sw
|
scrcpy -Sw
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Power off on close
|
||||||
|
|
||||||
|
To turn the device screen off when closing scrcpy:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scrcpy --power-off-on-close
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Show touches
|
#### Show touches
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,10 @@ Set the TCP port (range) used by the client to listen.
|
||||||
|
|
||||||
Default is 27183:27199.
|
Default is 27183:27199.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B \-\-power\-off\-on\-close
|
||||||
|
Turn the device screen off when closing scrcpy.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B \-\-prefer\-text
|
.B \-\-prefer\-text
|
||||||
Inject alpha characters and space as text events instead of key events.
|
Inject alpha characters and space as text events instead of key events.
|
||||||
|
|
|
@ -133,6 +133,9 @@ scrcpy_print_usage(const char *arg0) {
|
||||||
" Default is " STR(DEFAULT_LOCAL_PORT_RANGE_FIRST) ":"
|
" Default is " STR(DEFAULT_LOCAL_PORT_RANGE_FIRST) ":"
|
||||||
STR(DEFAULT_LOCAL_PORT_RANGE_LAST) ".\n"
|
STR(DEFAULT_LOCAL_PORT_RANGE_LAST) ".\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
" --power-off-on-close\n"
|
||||||
|
" Turn the device screen off when closing scrcpy.\n"
|
||||||
|
"\n"
|
||||||
" --prefer-text\n"
|
" --prefer-text\n"
|
||||||
" Inject alpha characters and space as text events instead of\n"
|
" Inject alpha characters and space as text events instead of\n"
|
||||||
" key events.\n"
|
" key events.\n"
|
||||||
|
|
Loading…
Reference in a new issue