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

The screen does not turn on after the Turn screen off scrcpy session is stopped. #3132

Open
GG575 opened this issue Mar 21, 2022 · 6 comments

Comments

@GG575
Copy link

GG575 commented Mar 21, 2022

The screen does not turn on after the Turn screen off scrcpy session is stopped.

@rom1v
Copy link
Collaborator

rom1v commented Mar 21, 2022

Which scrcpy version?

When you close scrcpy, in which state is your device screen? It is physically off, but is it "on" in the mirroring window, or off too?

@GG575
Copy link
Author

GG575 commented Mar 21, 2022

v1.23
When I clone scrcpy my device have the physically screen off and in mirroring window is on.

@rom1v
Copy link
Collaborator

rom1v commented Mar 21, 2022

If you enable "show touches" (scrcpy --show-touches), a circle appears when you physically touch the screen.
Is it kept active when you close scrcpy?

What is the device and Android version?

@rom1v
Copy link
Collaborator

rom1v commented Mar 21, 2022

Is the screen turned on with MOD+Shift+o?

@GG575
Copy link
Author

GG575 commented Mar 21, 2022

The circle is kept active when I close scrcpy.
INFO: Device: rockchip RK3399 (Android 9)
The screen is not turned on with MOD+Shift+o

@rom1v
Copy link
Collaborator

rom1v commented Mar 21, 2022

The circle is kept active when I close scrcpy.

The cleanup code is run in a separate process. When scrcpy closes (even if the main process is killed, for example on device unplug), the clean up call is still expected to be called: I2f74ec2518377103e144684a9fb0c2d358168bbb

However, on some devices/ROM (this is the case for example on my Nexus 5 test device), the cleanup process is killed very quickly after the main process is killed, I don't know why (it's a system bug I guess), so the cleanup code don't have chance to complete.

The screen is not turned on with MOD+Shift+o

(with MOD == Alt by default)

On some devices (but on older Android versions), there was a problem with turning the screen on (8c8649c and dcde578).

It's surprising that your device has these two seldom issues.

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