Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
113.19k stars 10.8k forks source link

Issue with Screen Loading and Function -Sw #4030

Open dankiet opened 1 year ago

dankiet commented 1 year ago

Environment

Describe the bug I have noticed that when I use the function "-Sw" to turn off the screen, the app fails to load properly. Instead, I can only see the background and receive notifications without any visible app interface. However, when I don't utilize this function, the app works as expected, but the screen remains on indefinitely.

On errors, please provide the output of the console (and adb logcat if relevant).

C:\Users\Downloads\scrcpy-win64-v2.0>scrcpy -m 960 -Sw --lock-video-orientation=1 --disable-screensaver --video-codec=h265 --video-bit-rate=8M --no-audio --max-fps=60 --serial xxxxxxx
scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
C:\Users\\Downloads\scrcpy-win64-v2.0\scrcpy-serve...ile pushed, 0 skipped. 109.9 MB/s (52867 bytes in 0.005s)
[server] INFO: Device: Xiaomi Redmi K30 5G (Android 10)
INFO: Renderer: direct3d
INFO: Initial texture: 960x432
[server] INFO: Device screen turned off
rom1v commented 1 year ago

See #2251.