-
-
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
Force desktop mode Android 10 #1413
Comments
You mean "DeX" or something like that? #397 (comment) |
Dex is only for samsung. I'm using oneplus where dex is not available. But theres a feature of Android 10 called "Forced desktop mode" from developers option. Is it possible to make it work in scrcpy? I tried the solution from dex request but unfortunately it doesn't work. |
Oh, indeed, I have this option on my OnePlus 7 Pro. I don't know how it works though (what happens once it's enabled?). |
Using scrcpy, it only mirrors the phone screen. |
That's expected before Android 10: https://github.com/Genymobile/scrcpy/blob/master/README.md#display But it should work on Android 10 :/ Any message in the console? |
The secondary display that would show desktop mode isn't online, so scrcpy can't connect to it
|
So, u mean there is no work around for this? Anyway, thanks for your help. |
I kind of found a workaround. I'm using a pixel3 xl. Using this app called SecondScreen you can force the screen of the device to change - https://play.google.com/store/apps/details?id=com.farmerbb.secondscreen.free&hl=en_US A couple of notes on this:
|
I am using scrcpy with 4 monitors other than my phone's screen. I do that by simply simulating virtually secondary displays using the global setting overlay_display_devices which used in developer settings "Simulate Secondary Displays". I can simulate up to 4 3840x2160 displays by this command and then run this command to find each display's id so I can mirror it by --display ID (every time I change the overlay_display_devices value it gives the displays new ids) my problem is that with the simulated displays my phone screen gets crammed with semi-transparent displays. I wish if scrcpy can trick the phone that it is connected to some sort of external display or at least simulate non-visible screens that don't pop up on the main (phone) screen. I enabled force desktop mode with the new taskbar 6.0 to give the external displays a taskbar and SecondaryDisplays to quickly test dpi and hide nav bar or android 10 gestures bill. |
@i39MT Thank you for the trick. However, on my OnePlus 7 Pro, if a add a simulated secondary display, mirroring it displays a blank screen. |
Have you enabled "Enable freeform windows" and "Force activities to be resizable" in dev settings? |
I have the same problem, both enables ("Enable freeform windows" and "Force activities to be resizable") it displays a blank screen only.. (Redmi note 7 - MIUI 12 - Android 10 [EU rom]) |
I got the same lockscreen when I lock my phone. |
right now i am using nova launcher, will try with taskbar 6.0 |
Where in the Android 10 source code do I configure default open to force desktop mode? |
Hi, |
Im not sure actually im using taskbar as my home app so it can assign a specific launcher to ur phones screen while managing the additional display with a much more optimized interface. |
would you help me sir, |
what do you got when you type:
adb shell dumpsys display | findstr /r /c:"Display [0-9][0-9]*"
…On Tue, Dec 1, 2020, 14:27 Mksuthar-de ***@***.***> wrote:
Im not sure actually im using taskbar as my home app so it can assign a
specific launcher to ur phones screen while managing the additional display
with a much more optimized inter
I am using scrcpy with 4 monitors other than my phone's screen. I do that
by simply simulating virtually secondary displays using the global setting
overlay_display_devices which used in developer settings "Simulate
Secondary Displays". I can simulate up to 4 3840x2160 displays by this
command
adb shell settings put global overlay_display_devices
3840x2160/480\;3840x2160/480\;3840x2160/480\;3840x2160/480
and then run this command to find each display's id so I can mirror it by
--display ID (every time I change the overlay_display_devices value it
gives the displays new ids)
adb shell dumpsys display | findstr /r /c:"Display [0-9][0-9]*"
my problem is that with the simulated displays my phone screen gets
crammed with semi-transparent displays. I wish if scrcpy can trick the
phone that it is connected to some sort of external display or at least
simulate non-visible screens that don't pop up on the main (phone) screen.
I enabled force desktop mode with the new taskbar 6.0 to give the external
displays a taskbar and SecondaryDisplays to quickly test dpi and hide nav
bar or android 10 gestures bill.
[image: Screenshot (2)]
<https://user-images.githubusercontent.com/66570391/83979084-6a889f00-a914-11ea-83ec-13ad0b2b96b6.png>
would you help me sir,
i have compeleted all your steps
when i reached to display's id
i types the display id's like --Display 0
and press enter the command doesn't recognised.
sir please help i want use my pc as secondary diplay as android dex in
android 10
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1413 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP34RF6JUE4UNKKUHEI3RB3SSTHJNANCNFSM4NGF2DYA>
.
|
i got |
Then:
|
i typed this says |
sir do you have youtube channel ? |
sir do you have youtube channel ? |
Then use the latest version. |
i am using latest version |
What is the result of |
dependencies:
|
You missed the first line, where the scrcpy version is printed (above "dependencies") 😄 |
scrcpy 1.16 |
That's not possible. Please copy the exact command you typed, and copy-paste the exact error message (spaces included, and with the exact case). |
Sorry , I don't know how to copy exact command from cmd 😅.
Would you give your Instagram I'd . Where I can talk to you freely.plz 🥺🥺
…On Tue, Dec 1, 2020, 6:05 PM Romain Vimont ***@***.***> wrote:
i typed this says
scrcpy : unknown option --display
That's not possible.
Please copy the exact command you typed, and copy-paste the exact error
message (spaces included).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1413 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR6SKHGDHCTO3IQCAXYITDTSSTPIXANCNFSM4NGF2DYA>
.
|
Now I am able to use the dex mode .
Thanks buddy for helping me .
I was wrong at putting command .
I went to original site and copy the command from site .
And got it.
And thanks again for helping me solving the problem and helped me get rid
of it.
…On Tue, Dec 1, 2020, 6:15 PM God Syber ***@***.***> wrote:
Sorry , I don't know how to copy exact command from cmd 😅.
Would you give your Instagram I'd . Where I can talk to you freely.plz 🥺🥺
On Tue, Dec 1, 2020, 6:05 PM Romain Vimont ***@***.***>
wrote:
> i typed this says
> scrcpy : unknown option --display
>
> That's not possible.
>
> Please copy the exact command you typed, and copy-paste the exact error
> message (spaces included).
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1413 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AR6SKHGDHCTO3IQCAXYITDTSSTPIXANCNFSM4NGF2DYA>
> .
>
|
@i39MT hi btw how i can disable "Simulate Secondary Displays" via adb? or remove the put global overlay command? thanks before |
you can delete the field by typing this and I don't think deleting it would affect anything in the phone |
Thank you!! |
Sorry, I watch Your discussion. |
When I run this the scondary display overlays on my main screen, is this expected behaviour or it should run in background? |
Same for me on my Huawei Matepad 11; However I am able to pinch it very small with two fingers .. Not an ideal solution though. |
I got a blank screen when using non '0' in --display.
|
@bibaodi Your device runs Android 9 (<10). |
Hello, suggestion to make force desktop mode work on scrcpy? Would be a great feature.
The text was updated successfully, but these errors were encountered: