From 30d40f4e786beaaeabde1f3c324b7680ef433be6 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sun, 7 Nov 2021 19:27:53 +0100 Subject: [PATCH] Document --power-off-on-close The option was not documented. Refs #824 --- README.md | 8 ++++++++ app/scrcpy.1 | 4 ++++ app/src/cli.c | 3 +++ 3 files changed, 15 insertions(+) diff --git a/README.md b/README.md index f86fff9f..a0ab271c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/app/scrcpy.1 b/app/scrcpy.1 index 9ad405c5..399fd172 100644 --- a/app/scrcpy.1 +++ b/app/scrcpy.1 @@ -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. diff --git a/app/src/cli.c b/app/src/cli.c index ea7cb1a0..a0bf451d 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -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"