Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.68k stars 10.61k forks source link

Half screen is black when rotating in landscape #3371

Open webian opened 2 years ago

webian commented 2 years ago

Environment

Describe the bug Sometimes, after opening scrcpy to view my Galaxy S10e, when I rotate the screen horizontally, the right half of the screen remains completely black.

This bug is difficult to reproduce because it does not always happen but it is very annoying because the only 2 ways I have found to eliminate the black half is to restart Android (obviously) or to activate "Simulate secondary displays".

I'm not even sure it's caused by scrcpy but I tried for a week never to connect scrcpy to the smartphone and this bug never happened.

rom1v commented 2 years ago

Looks like a bug on the device ROM (which may be triggered by capturing the screen, but a bug on the device nonetheless).

Basti189 commented 2 years ago

Same issue with Samsung Galaxy Tab A7. Reconnect USB-Cable solve this problem at this moment

webian commented 2 years ago

Good way to fix the problem when it happens @Basti189. More precisely I reconnected the USB cable and run scrcpy over USB (usually I run it over Wi-Fi) and the half black screen got fixed.

Basti189 commented 2 years ago

I found another workaround. Run with param "-m 1600" and it works for me.

LU616FER commented 1 year ago

Sorry for my bad English (it's not my native language, I'm using google translator), but I discovered the problem, in the "developer options" tab, scroll until you find "minimum width" probably the minimum width of the smartphone is smaller than the one that runs on the scrcpy, I had the same problem, I set the maximum size to 800p and the width was 376p, and the "minimum width" in the developers option was 400 and something (I don't remember) and just put the minimum pixel width in same minimum pixel width configured in scrcpy