Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.25k stars 10.57k forks source link

[Question] about using the scrcpy as a work tool #5101

Open nesteiner opened 2 months ago

nesteiner commented 2 months ago

hey, I am using the laptop and find the memory is too few to run many programs with large memory need but to extend the memory size is too expensive, so I got an idea ---- use the phone as part of laptop, I just need to put most part of my work in the phone and show the result in the laptop, that sounds a good idea, right ? but I got some problem, I can't change the size of screen of the phone, the content size depends on the size of phone but not the window the scrcpy output. as a Linux user, it hits me that maybe the phone can be something like X-org server, and it can render the content onto the laptop(that is a window showing the content of phone with a qt-frame, mabye)

but I found nothing on google, do you know my request can be solved ?

Tryanks commented 2 months ago

If your phone supports desktop mode—such as Samsung's DeX mode—you can try streaming to the second screen and launching desktop mode via adb commands. Apart from this, there are no other ways to meet your needs.

chacalau commented 2 months ago

I can't change the size of screen of the phone, the content size depends on the size of phone but not the window the scrcpy output.

use adb commands to set the phone screen size and density before launching scrcpy

I set mine like this...

adb -s $myIP shell wm size 1056x1600 adb -s $myIP shell wm density 175 scrcpy -s $myIP