Display and control your Android device
Document --power-off-on-close
Romain Vimont30d40f4e786b
diff --git a/README.md b/README.mdindex f86fff9f..a0ab271c 100644--- a/README.md+++ b/README.md@@ -582,6 +582,14 @@ scrcpy --turn-screen-off --stay-awakescrcpy -Sw```+#### Power off on close++To turn the device screen off when closing scrcpy:++```bash+scrcpy --power-off-on-close+```+#### Show touchesdiff --git a/app/scrcpy.1 b/app/scrcpy.1index 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\-textInject alpha characters and space as text events instead of key events.diff --git a/app/src/cli.c b/app/src/cli.cindex 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"