From b3f626feee7efd34e1d7417a4b6fcfcdfd735d89 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 3 Jan 2023 08:45:29 +0100 Subject: [PATCH 1/3] Add FAQ section about HID/OTG on Windows Refs #3654 --- FAQ.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index e6c3c94d..76e418dc 100644 --- a/FAQ.md +++ b/FAQ.md @@ -7,7 +7,7 @@ Here are the common reported problems and their status. If you encounter any error, the first step is to upgrade to the latest version. -## `adb` issues +## `adb` and USB issues `scrcpy` execute `adb` commands to initialize the connection with the device. If `adb` fails, then scrcpy will not work. @@ -133,6 +133,21 @@ Try with another USB cable or plug it into another USB port. See [#281] and [#283]: https://github.com/Genymobile/scrcpy/issues/283 +## HID/OTG issues on Windows + +On Windows, if `scrcpy --otg` (or `--hid-keyboard`/`--hid-mouse`) results in: + +> ERROR: Could not find any USB device + +(or if only unrelated USB devices are detected), there might be drivers issues. + +Please read [#3654], in particular [this comment][#3654-comment1] and [the next +one][#3654-comment2]. + +[#3654]: https://github.com/Genymobile/scrcpy/issues/3654 +[#3654-comment1]: https://github.com/Genymobile/scrcpy/issues/3654#issuecomment-1369278232 +[#3654-comment2]: https://github.com/Genymobile/scrcpy/issues/3654#issuecomment-1369295011 + ## Control issues From 87da1372380ebddb60e4d89cff9a251c866e21c5 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Wed, 18 Jan 2023 14:37:16 +0100 Subject: [PATCH 2/3] Remove "on Linux" in FAQ HID now works on all platforms. --- FAQ.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FAQ.md b/FAQ.md index 76e418dc..a6b106cc 100644 --- a/FAQ.md +++ b/FAQ.md @@ -168,8 +168,7 @@ The default text injection method is [limited to ASCII characters][text-input]. A trick allows to also inject some [accented characters][accented-characters], but that's all. See [#37]. -Since scrcpy v1.20 on Linux, it is possible to simulate a [physical -keyboard][hid] (HID). +Since scrcpy v1.20, it is possible to simulate a [physical keyboard][hid] (HID). [text-input]: https://github.com/Genymobile/scrcpy/issues?q=is%3Aopen+is%3Aissue+label%3Aunicode [accented-characters]: https://blog.rom1v.com/2018/03/introducing-scrcpy/#handle-accented-characters From b4caa483dd6682279170b5ec61963e6239f15072 Mon Sep 17 00:00:00 2001 From: Kartik Kushwaha <75395993+Corrupter-rot@users.noreply.github.com> Date: Sat, 4 Feb 2023 23:09:01 +0530 Subject: [PATCH 3/3] Add Fedora instructions in README Add the command to install the scrcpy package for Fedora directly. PR #3715 Signed-off-by: Romain Vimont --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b2a767fd..7f4fe704 100644 --- a/README.md +++ b/README.md @@ -80,16 +80,22 @@ On Arch Linux: pacman -S scrcpy ``` +On Fedora, a [COPR] package is available: [`scrcpy`][copr-link]: + +``` +dnf copr enable zeno/scrcpy +dnf install scrcpy +``` + +[COPR]: https://fedoraproject.org/wiki/Category:Copr +[copr-link]: https://copr.fedorainfracloud.org/coprs/zeno/scrcpy/ + A [Snap] package is available: [`scrcpy`][snap-link]. [snap-link]: https://snapstats.org/snaps/scrcpy [snap]: https://en.wikipedia.org/wiki/Snappy_(package_manager) -For Fedora, a [COPR] package is available: [`scrcpy`][copr-link]. - -[COPR]: https://fedoraproject.org/wiki/Category:Copr -[copr-link]: https://copr.fedorainfracloud.org/coprs/zeno/scrcpy/ For Gentoo, an [Ebuild] is available: [`scrcpy/`][ebuild-link].