Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
105.38k stars 10.23k forks source link

when running scrcpy, screen blanking does not work #4999

Open bob-marcan opened 2 weeks ago

bob-marcan commented 2 weeks ago

Linux Fedora 39 with latest updates adb-enhanced.noarch -2.5.14-6.fc39, xorg-x11-server-Xorg.x86_64-1.20.14-35.fc39, fvwm, NsCDE scrren blanking is enabled with "xset +dpms" phone Blackview A90, Android 11

Everything works without a problem, only someone prevents screen blanking. Is it adb or scrcpy? In case it's adb, I'll forget about it. But if it is scrcpy, please, if you can do something in this direction. I'm probably not the only one who has encountered this. It's inconvenient if I forget to turn off scrcpy, which is usually in the screen, which I don't look at very often, and when I sit down at the computer again in the morning, the screen is still lit.

TIA&BR, B.Marčan bob.marcan@proton.me

Giantvince1 commented 1 week ago

If I had to guess, I'd guess that scrcpy acquires a wakelock on the host PC it's running on to ensure it can continue to receive the video/audio/other data it needs to function properly, and releases the wakelock once you close it.

bob-marcan commented 1 week ago

An interesting explanation. I'm a complete Android illiterate, just a dumb user. But I researched this wakelock. Too many complications to turn off, the phone is supposed to be rooted... I'll keep it simple and try to remember at the end of the day to turn off the app. Thanks anyway and it was very informative.

BR, Bob