-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Device is found but no screen displayed (Fedora, SDL 2.0.24) #3431
Comments
Try with a lower resolution ( |
tried lower resolution, doesn't work. I used another software named Vysor and I can see my android screen on my PC, so pretty sure my PC is ready, just some settings in Scrcpy has not been configured correctly. |
would you share screenshot... |
any one has any suggestion? |
Does it record with screenrecord?
|
What driver did you use @luckyvictor ? SCRCPY can't find my Oppo device |
how to do the screenrecord? is it under scrcpy? |
I don't what driver, it just finds it, I am using windows 10. |
I have similar issues. The output thinks it is working, but the picture doesnt appear. OS: Fedora 36 This just started the past week when I updated booted previous (5.18.17) kernel and still didnt work. Today i updated to 5.18.19 and that didnt help. |
There were recently SDL2 and mesa package updates .. i wonder if thats what caused this issue |
Same issue for me,
|
screenrecord works for me, I can read the mp4 file on my computer without issue |
@jremond Try with another encoder: https://github.com/Genymobile/scrcpy#encoder |
Trying with all 3 encoders still fails, no window.
does work but I still don't see any window on my computer. |
Does the recorded file work? |
Yes, I did some actions using the phone directly and the video shows everything correctly. |
Then do not use the COPR package, but install manually: https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#simple |
Same issue with a manual install, I did retry all the steps (3 different encoders, |
I can confirm this issue on Fedora 36 with two different almost-stock android phones (on Android 9 and 11) and the following software installed:
After downgrading SDL2 to I don't know how/whether SDL2 is being used and/or updated on Windows but this may help @yunopie and @jremond as a first workaround. I have some experience in debugging using PS: If you wonder how I isolated SDL2, here is the Fedora-specific description how I found out: I did not remember that I updated |
Possibly related, on Linux:
Possibly related, on Windows: |
|
Can confirm. Im even on 5.19.4 kernel |
Just adding that
worked for me, without having to downgrade any packages |
I updated my SDL2 back to SDL2-2.24.0-1.fc36.x86_64
I updated the scrcpy.desktop file so it can launch it again.
|
so for my original problem, which is on windows, what would be the solution please? |
Nope, open a terminal (click on |
/system/bin/sh: screenrecord: inaccessible or not found this is the error i have |
Weird, all Android ROMs are expected to have |
This is the same error I'm getting when trying 'adb shell screenrecord'. This is Huawei P30 Pro, if that matters. |
This issue happening Fedora 36 is a bug on SDL2 2.24.0 when using wayland and compiled with libdecor support. I have reported it here: libsdl-org/SDL#6204 TLDR: SDL_WaitEvent() blocks and doesn't process SDL_USEREVENTs pushed before the window is shown (and in general, the libdecor_dispatch call there breaks heavily user events) A workaround would be using SDL_PollEvent() instead. |
Same issue happening with my Fairphone4 with Android 11 on Fedora 36 GNOME with Wayland |
Had the same problem. Changing the encoder as suggested above, but also installing these multimedia codecs solved the problem. |
Hey! For me, on NixOs the solution to this same issue was very weird: |
Please don't run |
While that is good advice in general, it is what works for me. I didn't have time to debug it properly by reading dmesg yet, maybe I'll update this comment if I find out the cause. |
Can't downgrade (running Fedora 38), |
The fedora issue described above was fixed before SDL2 version 2.26.0, so it has been fixed almost a year ago, which I can confirm on my machine (even with very old hardware that only supports OpenGL 2.1). On Fedora 38, you should not be able to run a version older than that, so the issue you are seeing is something different. I recommend you try without Anyway, most of this thread has diverged a lot from the first comment, so I suggest this thread should be closed. |
your screen must have been turned off from the cmd you can try "ctrl + shift + o" to turn the screen on . it worked for me. |
I have had USB debug enabled, and windows can find my device. Scrcpy can also find my device, however it never shows a pop up screen of my device screen, below is everything it outputs before the cmd closes itself.
scrcpy-ser... file pushed, 0 skipped. 17.8 MB/s (41159 bytes in 0.002s)
[server] INFO: Device: OPPO CPH1919 (Android 11)
Sorry it seems to be a very simple problem, but i don find any thing here or google, I guess nobody experience such problem.
Environment
The text was updated successfully, but these errors were encountered: