Skip to content

Commit

Permalink
Mention stay awake limitation
Browse files Browse the repository at this point in the history
The "stay awake" feature only works when the device is plugged in.

Refs #1445 <#1445>
  • Loading branch information
rom1v committed May 28, 2020
1 parent 8b73c90 commit 0e4a6f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ The secondary display may only be controlled if the device runs at least Android

#### Stay awake

To prevent the device to sleep after some delay:
To prevent the device to sleep after some delay when the device is plugged in:

```bash
scrcpy --stay-awake
Expand Down
2 changes: 1 addition & 1 deletion app/scrcpy.1
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Default is "info" for release builds, "debug" for debug builds.

.TP
.B \-w, \-\-stay-awake
Keep the device on while scrcpy is running.
Keep the device on while scrcpy is running, when the device is plugged in.

.TP
.B \-\-window\-borderless
Expand Down
3 changes: 2 additions & 1 deletion app/src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ scrcpy_print_usage(const char *arg0) {
#endif
"\n"
" -w, --stay-awake\n"
" Keep the device on while scrcpy is running.\n"
" Keep the device on while scrcpy is running, when the device\n"
" is plugged in.\n"
"\n"
" --window-borderless\n"
" Disable window decorations (display borderless window).\n"
Expand Down

0 comments on commit 0e4a6f4

Please sign in to comment.