-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn the screen on if the connection with scrcpy is dropped abruptly #1572
Comments
Hi,
Yes, I already encounter this problem 😉 Thank you for tackling this. The code to modify is in Since we can't know if the current power mode is NORMAL or OFF, I suggest to always set it to NORMAL on close. (Don't forget to start from the |
Is your feature request related to a problem? Please describe.
Sometimes I disconnect my phone from the PC and the screen is left off.
I may forget that the phone is actually not locked and not even asleep and I leave the phone like that possibly for too long.
Also, my wifi is not very stable and I'm enough of a security freak but I also love the convenience so I care to press the "OK" every time I connect to the phone in debug mode.
By adding this behavior, I can control my phone immediately when a disconnect happens without having to press power twice (or 3 times, if the phone is already asleep):
In sum, reduce these steps:
To:
Extra:
I intent to implement this myself. It can also allow me to familiarize with these workings of android.
This issue is to confirm if I have green light for such feature in scrcpy
The text was updated successfully, but these errors were encountered: