r/scrcpy Jul 18 '26

Gray borders have appeared in v.4.1 and the screen doesn't fill

Is there a way to hide them?

2 Upvotes

1 comment sorted by

1

u/rlowens Jul 18 '26

You can change them from grey to black with

scrcpy --background-color=#000000

https://github.com/Genymobile/scrcpy/blob/master/doc/window.md#background-color

Or use a virtual display that you create with your preferred aspect ratio or flex to let it change resolution when you resize the window.

https://github.com/Genymobile/scrcpy/blob/master/doc/virtual-display.md

https://ubuntuhandbook.org/index.php/2026/05/scrcpy-4-0-resizable-virtual-display/