-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
stay-awake flag doesn't work when device isn't charging #1445
Comments
That is correct. Btw, the Android option is called I just added this limitation to the documentation: 0e4a6f4 AFAIK, there is no way to "stay awake" while the device is unplugged with an Android setting (without a separate app taking a wake lock, with its own limitations). |
Ah okay, that makes sense |
I'd like to re-open this ticket and would like to have "stay awake even while not charging" as a feature. Reason: If other apps can do this, why can't scrcpy do this as well? |
Because (at least for now) the device side of scrcpy is not an Android app. But even if it was, I'm not sure you can hold a wakelock if you are not the app with an activity in the background. |
@rom1v
With this method the device won't go to sleep. It could be implemented directly inside scrcpy. Whenever we would connect through wifi with |
a Very good trick from @Pawloland |
Environment
Describe the bug
The screen won't stay awake as the flag suggests, unless the device is charging
Using commands:
Expected behaviour:
The screen will stay awake, even if the device isn't charging
The text was updated successfully, but these errors were encountered: