-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Black screen in Arch but not under Fedora Same phone, same computer, same version. #3940
Comments
Looks like a graphics driver issue. Does it "work" with |
I tried with all the renderers. Only a black window on the computer but the phone reacts to input. I tried USB connected and through Wifi. I don't have any trouble connecting. just seeing the phone image. |
Screen Share problem: Black screen Murena Two Desktop OS: Kubuntu 22.04 It is not possible to share Murena 2 Screen using scrcpy. The resulting share on desktop showed a fuzzy black screen for the Murena 2 android. It worked with Galaxy J3 android 5.1.1 Using scrcpy produced the following error scrcpy 1.25 https://github.com/Genymobile/scrcpy I tried updating scrcpy it did not go well. I had to uninstall new version and reinstall from kubuntu packages. scrcpy daemon not running; starting now at tcp:5037 about Murena 2: The uploaded screenshot shows Murena two sharing screen showing black and a Galaxy J3 sharing screen, with the same scrcpy before making changes to scrcpy . |
Which changes did you make to scrcpy? In any case, you're using old scrcpy versions (the one from the packages are old). Install the latest manually: https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md#latest-version Then you might need to try another encoder or reduce the resolution. |
Thank you for your advice. By changes, I meant updated scrcpy to latest version from instructions on the website (the same link as you have provided). First I uninstalled the older version. During update installation, terminal feedback was to run auto remove after installation which I did and many things were removed by it. After this update process scrcpy didn't work, not even with the older android. Maybe there was something wrong with ADB , tried to change environmental path but didn't quite understand and made a mistake making things worse, since KDE connect also stopped working maybe because of what I did. So I carried out a simple uninstall of the latest scrcpy version following instructions on https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md#latest-version then from Kubuntu depository, I installed Android SDK manger hoping to correct ADB errors if any existed. and from Kubuntu depository reinstalled scrcpy which is the older version. After re-installation of old version, scrcpy works with old android 5 but not with Murena2 android 13 giving errors which I have pasted in previous post. KDE connect is also working now. I am not very knowledgeable with IT, can only follow tasks from guides but if something goes wrong, I cannot solve it. I could not find out about encoder: scrcpy --list-encoders I don't know, if 'reduce the resolution' refers to the phone or scrcpy and how? |
With the latest version (currently 2.3.1), you say it does not work: what is the full output in the console? |
Hadn't copied the output last time, so Uninstalled scrcpy snap version 1.25 Running scrcpy immediately after installation - nothing happened - there was no phone display. Terminal only gave one line: Restart of computer made a difference On the first step of installation, it seems nothing was installed and the terminal reported all the newest versions were already there. On the second step clone, at the beginning it gave the following message: I also ran scrcpy for Galaxy J3 (android 5.1) it is showing the display correctly and the terminal out put is: https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#encoder Encoder list for Murena2 Android 13: Encoder for Samsung Galaxy J3 Android 5.1.1 Trying encoder change for Murena 2 gave error: Murena 2 only has one display I don't know how to change scrcpy resolution if that is needed. Summary: Latest version is working correctly for Galaxy J3 (android 5) but with Black screen for Murena 2 (android 13). |
Please retry, and if you reproduce this issue, in a separate terminal, run
Everything looks correct in the logs. Is the screen black on every app, or just on some of them (like the lock screen on some devices, due to "secure flag" #2129)? What if you record with |
|
Looks like there is a capture/encoding issue on your device system. |
Do you mean on the phone and what can be done about; if it is something I should communicate to Murena2 or e/os foundation, could you give more specifics that can send them |
after closing the phone display on desktop, with the scrcpy that had adb shell screenrecord /sdcard/file.mp4 at the end, I got: |
No, it's an encoding problem (all Android devices use |
Tried to reproduce the previous issue, without success. : ~ $ sudo ninja -Cbuild-auto uninstall Opened terminal from within directory:
:~/scrcpy/build-auto$ sudo ninja uninstall
prior to re-installation ran scrcpy did not work although the server still there after uninstall :~$ adb devices -l
scrcpy worked with black screen for Murena 2 |
|
Report that the native recorder |
Thank you reported it: https://gitlab.e.foundation/e/backlog/-/issues/7732 |
Murena 2 offered the following solution which is working for my phone, see bottom of page gitlab link above: Works with the following command: scrcpy --video-codec=h264 --video-encoder='c2.android.avc.encoder' |
Environment
Describe the bug
When I execute the application it only mirrors a black screen although the phone responds to keyboard and mouse interaction: Middle click turns on the phone screen, swiping up lets me enter the pin, I can enter the pin with the keybaord, etc, but the window in the computer remains all black.
If I record the screen, the recording contains the image of the phone as I would have expected to see on the screen.
Sometimes I can see an image of the screen but while the phone responds to input, the image remains static.
Using the same computer, same phone it works under Fedora 38 running under Xmonad under X11
I executed verbose and didn't see any meaningful difference between the Fedora output and the Arch output
I tried with different renderers. Same result.
Arch output
Fedora output (the screen mirrors properly)
The text was updated successfully, but these errors were encountered: