-
-
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
Can it support another screenshot stream on android - secondary screen #397
Comments
IIUC, you would like to mirror a secondary screen? It would be great. Something should be configured to request another screen in this code: But in If someone have an idea… EDIT: also see option |
Yes, i want to mirror a secondary screen. I am a QA to test Android Device, and we have some future running on another screen.. we can just use screenshot to capture another screen. It is slowly and unstable. |
I'm another one that will find this feature precious to command Samsung Dex from my linux box without the need to switch mouse/keyboard/monitor. I'm not an android dev but I found some little things that I hope can help:
|
Is there maybe a way to make Android to think that the scrcpy server is started on the external (Dex) monitor? |
Other info that maybe can help (see "Detect Samsung DeX"): |
请问,这个怎么实现呢,手机上有另外一个屏幕的时候 |
@rom1v I'm not a developer but if I "adb" wirelessly to my phone I get information about other displays, might be useful to this. See screenshots below: |
@rom1v btw, if the server was wrapped in an apk, and the apk was launched in Samsung Dex mode, it might mirror the second display. |
@rom1v I found minitouch have soultion to touch on second screen. before it use, we need to setup minitouch server on device. |
No, it does not use minitouch. I guess it requires root access on the device to write to |
No, the /dev/input/event is the display id. I don't know where to configure the /dev/input/event*
|
Could you test #1177 please? |
Ok. I will have a try for this. and reply to ASAP. |
For #1177 , it should be ok to mirror the display 1 screen on ubuntu 18.04. But i can't do some touch or text commands. |
Thanks @peanutwolf , And i have 3 display for this. The default id 0 and display id 1 can be touched. but display id 2 is only for view. just some information, i am not sure if this is helpful for you. And thanks again |
Thanks @peanutwolf ! |
Mine is a Samsung Galaxy S10e with Android 10: No custom InputFlinger as far as I know. |
Please, also note n.2 of my #397 (comment) I had the same problem about clicking with AnyDesk. |
@peanutwolf My version is 27 |
Another things for display id 1 which can be input. for my automation test. we found we can use minitouch for touch the second screen. |
Is that possible to add minitouch solution to support this? |
Hi @rom1v, I tested dev replacing the 2 files and launching with "--display 2" and it works both display and input. |
@webian Cool 🎉 Thank you for your test. (How do you get multiple displays in practice with your phone?) |
You don't need to thank me... I thank you a lot for the amazing scrcpy!
see #898 (comment) |
I guess this issue can be closed with the new |
Released in v1.13. |
The second screen can be displayed normally, but the mouse and keyboard cannot be used。 |
In addition, the screen cannot be fully displayed |
That's expected before Android 10.
What do you mean? |
Greetings, Thanks for the great program, I use it daily. I can't get DeX to work. I tried the --display option, and for anything other than 0 i get an error of this form:
I'm running Red Hat Enterprise Linux Workstation 7.6, Samsung Galaxy 9, Android 10. Connected via a Lenovo Thunderbolt doc to a Lenovo X1 Carbon Gen. 6, 2 displayport-connected monitors. Any help appreciated. Happy to test. jv |
Is DeX running when you execute this command? |
Thanks for the quick reply. |
AFAIK, DeX can only be enabled when you plug your device to some HDMI monitor. |
If you do this, how do you run scrcpy? And, scrcpy 1.13 supports DeX screen mirroring. |
@jvisser99 if u want to run Dex on PC you need to install Dex appliaction on your pc as well, plug the cable to phone, wait to say it's connected and you should get a window dex on your pc monitor. No needed for for anythingelse. HoWEVER scrcpy could be used to mirror dex on devices that don't support Dex on PC like the S8/Note8 line + S9/Note9 on Android 9. First you need to trigger Dex via HDMI cable or HDMI dummy plug (my case), then use scrcpy via WiFi (because your port will be used for the HDMI) |
It supports mirroring a secondary display. On devices supporting DeX, a secondary display is created when DeX is enabled. And DeX is enabled when you plug the device via HDMI. |
I'm running linux on my laptop |
IIUC, this app allows to enable DeX without plugging the device via HDMI? If this is the case, then it shows that it is possible to enable DeX programmatically. If someone knows how, it could be implemented in scrcpy 😉 |
I thought it was implemented in 1.13 |
No, in scrcpy 1.13, a new option has been added to mirror a display other than the one having id 0. It occurs that DeX creates such a secondary display when enabled, so scrcpy can mirror it. |
Ah, I suspected that. I believe wine won't work with Samsung Dex on PC. |
It's possible, definitely. |
There's also this thread in Samsung forum where a moderator says, in October 2018, that they are "working on a wireless connection for DEX but a few improvements need to be made first". If you want you can add your post to the thread so they know how much this feature is requested. |
I don't have any DeX device. Could you please check if enabling dex with "Dex on Windows" changes settings: # with dex disabled
adb shell "settings list global | sort" > global.txt
adb shell "settings list secure | sort" > secure.txt
adb shell "settings list system | sort" > system.txt
# with dex enabled
adb shell "settings list global | sort" > global_dex.txt
adb shell "settings list secure | sort" > secure_dex.txt
adb shell "settings list system | sort" > system_dex.txt
# compare
diff -U3 global.txt global_dex.txt
diff -U3 secure.txt secure_dex.txt
diff -U3 system.txt system_dex.txt |
I hope this method works better because I have 2 devices that either can't encode video properly (old phone) or doesn't have a codec to encode video (watch, can decode some webm). |
The text was updated successfully, but these errors were encountered: