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

Restart on short WiFi disconnects #685

Closed
Magicoo opened this issue Aug 3, 2019 · 4 comments
Closed

Restart on short WiFi disconnects #685

Magicoo opened this issue Aug 3, 2019 · 4 comments

Comments

@Magicoo
Copy link

Magicoo commented Aug 3, 2019

Hello,
Is it possible to auto-restart scrcpy -c 1224:1440:0:0 -f instead of just:
WARN: Cannot terminate server Press any key to continue...
This happens to me at random times (sometimes minutes, sometimes hours) and it would be great to restart scrpy instead of opening a new cmd window and typing the scrcpy -c 1224:1440:0:0 -f again.
Thank you!

@Magicoo
Copy link
Author

Magicoo commented Aug 3, 2019

A workaround would be to make scrcpy exit by itself instead of asking to press a key. Any hint on how to do that please?

@rom1v
Copy link
Collaborator

rom1v commented Aug 3, 2019

The message:

Press any key to continue...

is printed on Windows if "noconsole" is disabled when an error occurs: 140b1ef

The purpose is to let the user see error messages.

I don't have a Windows right now to test, but maybe you could do something scrcpy-noconsole.exe (I don't remember what happens if you run it from a cmd terminal).

@Magicoo
Copy link
Author

Magicoo commented Aug 4, 2019

Thank you! Noconsole works for me.

@shodanx2
Copy link

shodanx2 commented Jun 1, 2024

This solution might work for you
#721 (comment)

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

3 participants