Skip to content
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

Screen waking when app closes #2216

Closed
N1NJ4 opened this issue Mar 25, 2021 · 2 comments
Closed

Screen waking when app closes #2216

N1NJ4 opened this issue Mar 25, 2021 · 2 comments

Comments

@N1NJ4
Copy link

N1NJ4 commented Mar 25, 2021

windows
1.17 release
P545 Android 9

Upon closing the application with screen off and stay awake on, after a few minutes or so the screen turns on.

Unsure if its a fixable problem or just how android handles a situation of those options changing in some specified way, no more stay awake and it turns the screen on, only for it to end up sleeping because it couldn't without polling the screen to turn off...

@rom1v
Copy link
Collaborator

rom1v commented Mar 25, 2021

There are two separate states:

  • the physical device screen
  • the Android display

With --turn-screen-off, it only turn off the device screen (the content is still visible in scrcpy).
When you close scrcpy, it turn it on (and since the Android display was on, it is still on).

A new option has been added in dev branch: see #824.

@N1NJ4
Copy link
Author

N1NJ4 commented Mar 25, 2021

Yup, that's the same, my mistake. Thanks,

@N1NJ4 N1NJ4 closed this as completed Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants