-
-
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
A Question on the scrcpy --otg can't work #5185
Comments
For some reason, libusb does not detect / cannot access your device. This might be related to the USB mode (charging, MTP…), where only some of them are "detected" by the computer. Read https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#otg-issues-on-windows for Windows. I suggest that you try on a computer with Linux or macOS, it should work out-of-the-box. |
Probably not, since it still runs on Windows, and use Windows drivers I guess.
I don't know, but on Linux (or macOS) the device should be detected in all modes I think. |
Hi mate, since I doesn't know how to Dual Boot, I decided to use the VM with Ubuntu, but interestingly, for the installation steps on the linux here on the VM, it gives an error when I follow the steps like this
when running the Thanks |
It will probably not work either: I think the device will be acceded through the host, which is Windows.
What exact commands did you execute from when you opened a terminal and when you got that error message? |
Well, I do your steps on the
|
That should not generate this error:
Please post a screenshot of the terminal with the commands you typed and the results. Anyway, it won't work in the VM if your host does not detect the device in the first place. So you must try on a native Lknux or macOS. |
Halo sir, curious question. I tried to recreate the problem with another Phone (Xiaomi Redmi 4 A - Android 7.1.2), I found that USB Debugging is required within
But in docs, usb debugging is not required to run with otg mode? May to elaborate about this? Btw I'm try to dual boot and see what can I find with that Thanks |
I see, btw I just realized that the OTG Usb is exist for a more or less of a buck, and now I can solve this for my problem. A bonus question, does running the scrcpy and nox emulator simuntaneously will result in some bad things or it doesn't? Because the nox have its nox_adb and scrcpy also have its adb, But as I can see, every time I start the scrcpy and nox emulator, everything is somehow is fine, but maybe sometimes my phone went into the Thanks |
If they are the same version, no problem. If they are not the same version, you can make scrcpy to use the one from nox: https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#conflicts-between-adb-versions
In developer options, enable "Disable adb authorization timeout" (which automatically unauthorize after 7 days). |
Enviroment:
Description:
So basically, it was working fine, until I decided to install nox emulator to work with various devices in Android Studio, but on the next day, I find some strange situtation where I can use the
scrcpy
orscrcpy --otg
, also with adb devices I don't see any devices even though that I have already connect the usb to the laptop, Here's the log of that.Also since I looking through the FAQ and issues, I accidentally set the connection mode to be charging only and delete the my device
(Poco X3 Pro) out of device manager and restarted the phone which made things even worse I think. And then I can't see my devices as for in this steps issue
Since my phone touchscreen is dead, and I can't use the
scrcpy --otg
, I wonder does there any way I can solve this?The text was updated successfully, but these errors were encountered: