Skip to content

Commit

Permalink
Document --power-off-on-close
Browse files Browse the repository at this point in the history
The option was not documented.

Refs #824 <#824>
  • Loading branch information
rom1v committed Nov 7, 2021
1 parent f489f7f commit 30d40f4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions app/scrcpy.1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions app/src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 30d40f4

Please sign in to comment.