Document --power-off-on-close

The option was not documented.

Refs #824 <https://github.com/Genymobile/scrcpy/pull/824>
This commit is contained in:
Romain Vimont 2021-11-07 19:27:53 +01:00
parent f489f7fcad
commit 30d40f4e78
3 changed files with 15 additions and 0 deletions

View File

@ -582,6 +582,14 @@ scrcpy --turn-screen-off --stay-awake
scrcpy -Sw
```
#### Power off on close
To turn the device screen off when closing scrcpy:
```bash
scrcpy --power-off-on-close
```
#### Show touches

View File

@ -136,6 +136,10 @@ Set the TCP port (range) used by the client to listen.
Default is 27183:27199.
.TP
.B \-\-power\-off\-on\-close
Turn the device screen off when closing scrcpy.
.TP
.B \-\-prefer\-text
Inject alpha characters and space as text events instead of key events.

View File

@ -133,6 +133,9 @@ scrcpy_print_usage(const char *arg0) {
" Default is " STR(DEFAULT_LOCAL_PORT_RANGE_FIRST) ":"
STR(DEFAULT_LOCAL_PORT_RANGE_LAST) ".\n"
"\n"
" --power-off-on-close\n"
" Turn the device screen off when closing scrcpy.\n"
"\n"
" --prefer-text\n"
" Inject alpha characters and space as text events instead of\n"
" key events.\n"