Scrcpy: Mouse clicks do not work

Created on 15 Mar 2018  ·  35Comments  ·  Source: Genymobile/scrcpy

I am using Xiaomi max 2 on macOS High Sierra 10.13.3

scrcpy v1.0

dependencies:
 - SDL 2.0.8
 - libavcodec 57.107.100
 - libavformat 57.83.100
 - libavutil 55.78.100

Most helpful comment

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

All 35 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 https://github.com/Genymobile/scrcpy/issues/18.

Already fixed on v1.1.

@rom1v I have pull the newest code of master. But the problem still exist.

scrcpy -v

?

Did you compile using prebuilt server v1.1?

sorry, how to check prebuilt server version?

v1.1 still not work

scrcpy v1.1

dependencies:
 - SDL 2.0.8
 - libavcodec 57.107.100
 - libavformat 57.83.100
 - libavutil 55.78.100

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

Did you compile everything, or downloaded the prebuilt server (the Android part)?

If you don't know, please give the result of:

mesonconf x

(from the scrcpy root directory)

Solved, enable the permission of simulating Input work for me

Thanks all

@izayl Thank you very much! I added a question in the FAQ.

Ciao guys. Thank you so much for great work!
I'm on a vernee mix 2 (not a grat phone and probably a corner case).
I'm not able to click with left mouse. Only right. Unfortunately I can't find that option in my menu (doesn't exist at all). Is there a way for sending the option via ABD?
Using Windows (10 64bit)
I've tryed 1.0 1.1 1.2 (64bit) Vernee mix run android 7.0 security patch nov. 2017

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+
o or terminal command …it says “unrecognised option”
help please.. my phone is poco F1

the screen off mirroring function does not work with either Ctrl+o or terminal command …it says “unrecognised option”

(please do not post on an unrelated issue)

You need scrcpy v1.9.

scrcpy --version

Xiaomi Mi 6 has the same issue

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

On a Redmi 6A I get the popup "Sign in with you Mi Account" :-(

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

No such setting exists for me on Android 8.1. Device is a Motorola Moto G5 Plus.

Screenshot_20200508-201806

In MIUI you are locked behind Mi Account link in order to enable ADBinput for keyboard and mouse. To bypass that (with root):

  1. Enable USB debugging
  2. Run any terminal as root
  3. setprop persist.security.adbinput 1
  4. That's all, nothing else is required

I dont believe root-less solution is possible because MIUI permission service will block any user-app trying to do the same.

In MIUI you are locked behind Mi Account link in order to enable ADBinput for keyboard and mouse. To bypass that (with root):

1. Enable USB debugging

2. Run any terminal as root

3. `setprop persist.security.adbinput 1`

4. That's all, nothing else is required

I dont believe root-less solution is possible because MIUI permission service will block any user-app trying to do the same.

I'm assuming the permission service can't be safely disabled with adb, right?

No, the security core cannot be uninstalled or disabled, it is rooted deep.

how to enable this setting on Xiaomi Note 7 ?
this screen does not appear

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

It need simcard to be inserted :((

Bro I have not above usb debugging security setting in Relame U1
I want to control through keybord and mouse help???

Read the thread

Man I have a Redmi 8 MIUI11 with Android 10
Click/Mouse doesn't work, I have enabled the developer options (the security options too) but the simulated entry doesn't appear.
If I Root my phone, can I access that option?
Thank you very much also in advance, you have done a great job with scrcpy, making life easier for hundreds (if not thousands) of people, I love you.
I really want to make PC control work 😢

image

the security options too

Then it should work. What's the output in the console?

Then it should work. What's the output in the console?

Hi man, yesterday at the time of my comment the console did not show anything different, scrcpy showed the image and even some keyboard shortcuts (alt +) in my windows worked well.
So today I tried to restart both my PC and my SmartPhone, and then I got the "adb push" returned with value 1 Error.
I tried to fix it (by closing scrcpy and restart my xiaomi a couple times) and then Control (click) works well 😄 !
So forgive me for my earlier comment, I am happy that it finally works well, thank you very much!

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

thanks this works for me!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

udit7395 picture udit7395  ·  4Comments

singleNeuron picture singleNeuron  ·  3Comments

behzadpooldar picture behzadpooldar  ·  4Comments

targor picture targor  ·  3Comments

YurieCo picture YurieCo  ·  4Comments