Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
112.25k stars 10.73k forks source link

camera screen off #5404

Open toto6976 opened 3 weeks ago

toto6976 commented 3 weeks ago

Hi s it possible to operate the camera while keeping the screen off ?

scrcpy --turn-screen-off -b1M --video-source=camera --camera-id=1

rom1v commented 3 weeks ago

Capturing the camera does not turn the screen on.

toto6976 commented 3 weeks ago

However when I run the command the screen lights up. I have lineageos 21 (android 14)

rom1v commented 3 weeks ago

I cannot reproduce:

scrcpy --video-source=camera

does not turn the screen on on any on my devices.

toto6976 commented 3 weeks ago

android 14 would be responsible??

rom1v commented 3 weeks ago

Nope, it does not turn the screen on on my devices with Android 14.

On your device, does it "mirror" the camera correctly?

toto6976 commented 3 weeks ago

Yes, the mirroring it is ok

rom1v commented 3 weeks ago

OK, so its a "bug" (or a "feature") on your device system, which decides to turn the screen on when the camera is captured.

toto6976 commented 3 weeks ago

Ah...and what can i do ?? I desactivated usb control apk installed by adb and eveythings seems ok !