Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
103.68k stars 10.09k forks source link

disable-screensaver does not work #4626

Open movinator opened 4 months ago

movinator commented 4 months ago

Environment

Describe the bug I run srccpy with -S --disable-screensaver --tcpip=... I use several virtual screens and scrcpy runs on one virtual screen - I work for a while on another virtual screen and when I come back to look at the phone, scrcpy shows a black window which is unresponsive. Phone is unresponsive too. So I need to terminate scrcpy, unlock the phone and restart scrcpy again.

While I was writing this note, scrcpy turned black while I'm writing at the same virtual screen. So virtual screen can't be the reason.

scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
INFO: Connecting to 123.123.123.123:5555...
INFO: Connected to 123.123.123.123:5555
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 4.6 MB/s (66007 bytes in 0.014s)
[server] INFO: Device: [samsung] samsung SM-G736B (Android 13)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 525.147.05
INFO: Trilinear filtering enabled
INFO: Texture: 1080x2408
[server] INFO: Device screen turned off
AJolly commented 3 weeks ago

disable-screensaver is for the host, not for the phone