Skip to content
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

Closed
Pong420 opened this issue Mar 15, 2018 · 35 comments
Closed

Mouse clicks do not work #70

Pong420 opened this issue Mar 15, 2018 · 35 comments

Comments

@Pong420
Copy link

@Pong420 Pong420 commented Mar 15, 2018

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
@izayl
Copy link

@izayl izayl commented Mar 15, 2018

Xiaomi Mi 6 has the same issue

@izayl
Copy link

@izayl izayl commented Mar 15, 2018

@Pong420 Maybe this issue can fix. But I have not test it.

@Pong420
Copy link
Author

@Pong420 Pong420 commented Mar 15, 2018

@izayl It seems to not be working for me

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 15, 2018

Duplicate of #18.

Already fixed on v1.1.

@izayl
Copy link

@izayl izayl commented Mar 15, 2018

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

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 15, 2018

scrcpy -v

?

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 15, 2018

Did you compile using prebuilt server v1.1?

@Pong420
Copy link
Author

@Pong420 Pong420 commented Mar 15, 2018

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
@izayl
Copy link

@izayl izayl commented Mar 15, 2018

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

image

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 15, 2018

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)

@Pong420
Copy link
Author

@Pong420 Pong420 commented Mar 15, 2018

Solved, enable the permission of simulating Input work for me

Thanks all

@Pong420 Pong420 closed this Mar 15, 2018
@rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 15, 2018

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

@moamahi
Copy link

@moamahi moamahi commented Jun 13, 2018

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

@halilozercan
Copy link

@halilozercan halilozercan commented Oct 18, 2018

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.

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Oct 18, 2018

@saurabh02468
Copy link

@saurabh02468 saurabh02468 commented Jun 13, 2019

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

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Jun 14, 2019

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
@xx299x
Copy link

@xx299x xx299x commented Aug 6, 2019

Xiaomi Mi 6 has the same issue

My Xiaomi Mi 6 no problem in windows.

@dottyunnan
Copy link

@dottyunnan dottyunnan commented Dec 22, 2019

I want to know recording MP4's format.

@Ggot
Copy link

@Ggot Ggot commented Jan 3, 2020

why my android OPPO R15 no USB debugging(Security settings) option? so I cannot click my simulating screen .

@mochadwi
Copy link

@mochadwi mochadwi commented Jan 16, 2020

thanks this happened in xiaomi smartphone, but also occurred in a few devices like Oppo @Pong420

@n-3rd23
Copy link

@n-3rd23 n-3rd23 commented Apr 15, 2020

thank you enabling USB debugging (security settings) worked on my phone mi 4

@mherweg
Copy link

@mherweg mherweg commented Apr 25, 2020

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

@SkyPaladin
Copy link

@SkyPaladin SkyPaladin commented May 9, 2020

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

@Kein
Copy link

@Kein Kein commented May 20, 2020

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.

@LosEagle
Copy link

@LosEagle LosEagle commented May 28, 2020

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?

@Kein
Copy link

@Kein Kein commented May 28, 2020

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

@ahmedsallam544
Copy link

@ahmedsallam544 ahmedsallam544 commented Jul 3, 2020

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

@fareezMaple
Copy link

@fareezMaple fareezMaple commented Aug 22, 2020

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

image

It need simcard to be inserted :((

@VBK007
Copy link

@VBK007 VBK007 commented Aug 24, 2020

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

@Kein
Copy link

@Kein Kein commented Aug 24, 2020

Read the thread

@Gojan444
Copy link

@Gojan444 Gojan444 commented Aug 26, 2020

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

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Aug 26, 2020

the security options too

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

@Gojan444
Copy link

@Gojan444 Gojan444 commented Aug 26, 2020

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!

@EnzoKronus
Copy link

@EnzoKronus EnzoKronus commented Aug 26, 2020

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

image

thanks this works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.