Mention stay awake limitation

The "stay awake" feature only works when the device is plugged in.

Refs #1445 <https://github.com/Genymobile/scrcpy/issues/1445>
This commit is contained in:
Romain Vimont 2020-05-28 23:07:28 +02:00
parent 8b73c90427
commit 0e4a6f462b
3 changed files with 4 additions and 3 deletions

View file

@ -417,7 +417,7 @@ The secondary display may only be controlled if the device runs at least Android
#### Stay awake #### 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 ```bash
scrcpy --stay-awake scrcpy --stay-awake

View file

@ -167,7 +167,7 @@ Default is "info" for release builds, "debug" for debug builds.
.TP .TP
.B \-w, \-\-stay-awake .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 .TP
.B \-\-window\-borderless .B \-\-window\-borderless

View file

@ -159,7 +159,8 @@ scrcpy_print_usage(const char *arg0) {
#endif #endif
"\n" "\n"
" -w, --stay-awake\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" "\n"
" --window-borderless\n" " --window-borderless\n"
" Disable window decorations (display borderless window).\n" " Disable window decorations (display borderless window).\n"