Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
113.58k stars 10.82k forks source link

Tiny Window on Start Up #3874

Open prosmart opened 1 year ago

prosmart commented 1 year ago

Ubuntu 22.04 LTS XWindows scrcpy 1.21 Pixel 6 Pro

Every time I start scrcpy i get a tiny window in the centre of my monitor:

image

Doesn't make any difference using a -m startup parameter. Tried multiples. Always starts the same size.

Grab handles are there and I can expand the initial size successfully.

prosmart commented 1 year ago

Just discovered --window-width and this seems to address. The default of width and height of zero (automatic) seems to not like my Pixel 6 Pro.

rom1v commented 1 year ago

Could you try with a newer version (2.0)?

https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md#latest-version

prosmart commented 1 year ago

I'll try a later version tomorrow and let you know how that goes.

prosmart commented 1 year ago

Just downloaded the necessary libraries, pulled the code and installed. Sorry to report that it is still the same. Screenshot from 2023-04-02 15-56-53 That screen capture is only 83 x 111 so you can imagine how small the application window is.

fleapower commented 5 months ago

I just installed SCRCPY in Fedora 40 (KDE w/ Wayland) and am having this issue. The --window-width and --windows-height parameters do not change the startup window size. I'm new to Linux (used SCRCPY on Windows) so please forgive my ignorance. Any fixes? Thanks!

LuanVSO commented 5 months ago

workaround: set SDL_VIDEODRIVER=x11

fleapower commented 5 months ago

workaround: set SDL_VIDEODRIVER=x11

Thanks!

fleapower commented 5 months ago

Thanks!

On Sun, Jun 23, 2024 at 12:35 AM Luan Vitor Simião Oliveira < @.***> wrote:

workaround: set SDL_VIDEODRIVER=x11

— Reply to this email directly, view it on GitHub https://github.com/Genymobile/scrcpy/issues/3874#issuecomment-2184513788, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAMOKBUHMLEF7TRAUMWYM3ZIZGCXAVCNFSM6AAAAABJEPJRRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGUYTGNZYHA . You are receiving this because you commented.Message ID: @.***>

LuanVSO commented 5 months ago

lastest update from the copr repo seems to improve the behaviour on the wayland backend: image now it launches with a 256x285 window size

fleapower commented 5 months ago

Thanks. I'll give it a shot.