From dc5276b0e17cf7acd80726f3a31a8ac911f35e5e Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sun, 6 Feb 2022 18:45:02 +0100 Subject: [PATCH] Mention --select-usb and --select-tcpip in README PR #3005 --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e8ddf907..dbbc4d71 100644 --- a/README.md +++ b/README.md @@ -422,7 +422,7 @@ scrcpy -b2M -m800 # short version #### Multi-devices -If several devices are listed in `adb devices`, you must specify the _serial_: +If several devices are listed in `adb devices`, you can specify the _serial_: ```bash scrcpy --serial 0123456789abcdef @@ -436,6 +436,19 @@ scrcpy --serial 192.168.0.1:5555 scrcpy -s 192.168.0.1:5555 # short version ``` +If only one device is connected via either USB or TCP/IP, it is possible to +select it automatically: + +```bash +# Select the only device connected via USB +scrcpy -d # like adb -d +scrcpy --select-usb # long version + +# Select the only device connected via TCP/IP +scrcpy -e # like adb -e +scrcpy --select-tcpip # long version +``` + You can start several instances of _scrcpy_ for several devices. #### Autostart on device connection