-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse clicks do not work #70
Comments
Xiaomi Mi 6 has the same issue |
@Pong420 Maybe this issue can fix. But I have not test it. |
@izayl It seems to not be working for me |
Duplicate of #18. Already fixed on v1.1. |
@rom1v I have pull the newest code of master. But the problem still exist. |
? |
Did you compile using prebuilt server v1.1? |
sorry, how to check prebuilt server version? v1.1 still not work
|
Did you compile everything, or downloaded the prebuilt server (the Android part)? If you don't know, please give the result of:
(from the scrcpy root directory) |
Solved, enable the permission of simulating Input work for me Thanks all |
Ciao guys. Thank you so much for great work! |
Nokia 8 does not have that option in developer settings. My problem turned out be a slightly weird one. If I move scrcpy window from the screen it started on to a different monitor, mouse inputs become unreponsive. |
the screen off mirroring function does not work with either Ctrl+ |
(please do not post on an unrelated issue) You need scrcpy v1.9.
|
My Xiaomi Mi 6 no problem in windows. |
I want to know recording MP4's format. |
why my android OPPO R15 no USB debugging(Security settings) option? so I cannot click my simulating screen . |
thanks this happened in xiaomi smartphone, but also occurred in a few devices like Oppo @Pong420 |
thank you enabling USB debugging (security settings) worked on my phone mi 4 |
omg so much time lost because I didn't reboot, thank you! |
You can just make a throwaway Mi account in browser with disposable (or throwaway or temporary) email services, and fill fake info if they ask for while making Mi account. Create account, sign in, turn on, then sign out. Rebooting your device also recommended afterwards. Just hope they won't ask your phone number. |
Just disable the MIUI optimization |
reboot save my day! |
On Android 14, use the latest version (v2.1.1 currently) |
That did it, thanks! |
thx @rom1v to anyone who could find this helpful, the version I had via $ apt show scrcpy 2>/dev/null | grep -i version
Version: 1.17-1 ... neither the version from $ snap info scrcpy | grep -A 4 channels
channels:
latest/stable: v1.25 2022-12-28 (399) 87MB -
latest/candidate: ^
latest/beta: v1.25-1-g4c43784f 2022-12-28 (401) 87MB -
latest/edge: v1.21-2-g5704ec6 2021-12-07 (358) 101MB - because I was having this error error stack trace[server] ERROR: Exception on thread Thread[Thread-2,5,main]
java.lang.AssertionError: java.lang.reflect.InvocationTargetException
at com.genymobile.scrcpy.wrappers.ServiceManager.getInputManager(ServiceManager.java:75)
at com.genymobile.scrcpy.Device.injectEvent(Device.java:192)
at com.genymobile.scrcpy.Device.injectEvent(Device.java:196)
at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:231)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:102)
at com.genymobile.scrcpy.Controller.control(Controller.java:79)
at com.genymobile.scrcpy.Server$3.run(Server.java:132)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.genymobile.scrcpy.wrappers.ServiceManager.getInputManager(ServiceManager.java:72)
... 7 more
Caused by: java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:207)
at android.hardware.input.InputManager.getInstance(InputManager.java:274)
... 9 more so the only way I had was building by myself, thx for the guide and the prebuilt server, with that everything was really easy
outputThe Meson build system
Version: 0.56.2
Source dir: "${HOME}"/tmp/scrcpy
Build dir: "${HOME}"/tmp/scrcpy/x
Build type: native build
Project name: scrcpy
Project version: 2.4
C compiler for the host machine: cc (gcc 11.2.0 "cc (Ubuntu 11.2.0-7ubuntu2) 11.2.0")
C linker for the host machine: cc ld.bfd 2.37
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency libavformat found: YES 58.76.100
Run-time dependency libavcodec found: YES 58.134.100
Run-time dependency libavutil found: YES 56.70.100
Run-time dependency libswresample found: YES 3.9.100
Run-time dependency sdl2 found: YES 2.0.14
Run-time dependency libavdevice found: YES 58.13.100
Run-time dependency libusb-1.0 found: YES 1.0.24
Checking for function "strdup" : YES
Checking for function "asprintf" : YES
Checking for function "vasprintf" : YES
Checking for function "nrand48" : YES
Checking for function "jrand48" : YES
Checking for function "reallocarray" : YES
Header <sys/socket.h> has symbol "SOCK_CLOEXEC" : YES
Configuring config.h using configuration
Build targets in project: 2
Found ninja-1.10.1 at /usr/bin/ninja
outputninja: Entering directory `x'
[69/69] Linking target app/scrcpy |
@rom1v I can't validate my phone! Every time I have an error no found |
|
if I put scrcpy --otg -s 6da1ded7 I can no longer use my mouse for my computer! This completely dooms my mouse to my phone. Why when I click on, for example, an application on my phone does it not open for me? look here |
It's OTG mode. If you don't want OTG mode, then don't pass |
Watch this video If I run scrcpy --otg -s 6da1ded7 The mouse in my computer no longer works with my computer, computer! It is dedicated only to my phone. How can I simply press a key on the phone screen from the computer, for example Teamvier ? |
What is the full console output when you run scrcpy? |
Likewise, I cannot get mouse nor keyboard to work on a Samsung Tab S9 (Android 14). I can only see what's on the tablet's screen. I think this can be something new after upgrading this tablet to Android 14.
Here is what I directly see when running `scrcpy` in Windows command-line (after having connected to the Samsung tablet through adb) on this tablet.
And, similarly, with a Samsung S22 Ultra.Here, I noticed that the first
@rom1v Please advise if there is a |
What is your scrcpy version? I guess you don't use the latest version (currently 2.5). |
Indeed, I was using old |
I can't use my mouse or keyboard. Has anyone found a solution? |
solved. you must enable "usb debugging security settings" on your cell phone and then when connecting the cell phone to the PC, you must select "file transfer". this is how it worked for me. |
I am using Xiaomi max 2 on macOS High Sierra 10.13.3
The text was updated successfully, but these errors were encountered: