-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Blank screen on WSL 2 #2124
Comments
but why? scrcpy has native release on windows: https://github.com/Genymobile/scrcpy/releases/tag/v1.17 |
@khazidhea experiencing exactly the same bug, did you solve it? |
i saw same issue and i can detour this issue. if you have any solution, please tell me how. android device connected by USB to linux desktop PC : A help me how can i use scrcpy in my case. |
I see the same thing (WSL 2, scrcpy compiled in WSL, everything works except the picture is all white). It's also worth noting that the phone's screen sometimes shows in the scrcpy window for a brief instant on scrcpy startup before it is replaced with all white. |
why does this being closed? currently with usbipd, one can develop Android under WSL2 as same as native Linux environment (yes, we need linux environment, for business feature coding & QA systems), so scrcpy is quite normal running in WSL environment. @khazidhea |
This presently works for me in WSL2 w/VcXsrv. I'm not sure what changed since June.
|
Also works with Scrcpy 1.21 (everything else the same) |
Thanks @stefan-sherwood , you let me know it is possible and mostly like it's WSL2 problem, not scrcpy. |
That is true, but some scrcpy features (such as OTG mode without USB debugging enabled) only work on the Linux version, and not the Windows version, due to platform limitations. |
I had the same problem, but I got a black screen with working controls. EDIT: after some more tinkering, it seems that I need to start adb inside WSL2 with |
Environment
Describe the bug
First of all your product is amazing, thanks for making this.
My setup might be a bit unusual but it works for me. I'm running WSL with Ubuntu and I'm running VcXsrv natively on windows, any GUI that's supposed to render on Linux is rendered on VcXsrv.
After I successfully connect to the device using adb and I launch scrcpy I get a blank screen like this:
But my clicks go through - I'm able to open menu, launch apps and "go back" using right click, it all happens on the device, I just cant see it on my PC.
I also tried
adb shell screenrecord
, downloaded the video and it was just fine - I can see the screen in recording.I'm wondering how I can further debug this issue.
Attaching a small long of what happens when I run scrcpy.
The text was updated successfully, but these errors were encountered: