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

Terminal getting disconnected #1534

Open
fefer opened this issue Jun 22, 2020 · 8 comments
Open

Terminal getting disconnected #1534

fefer opened this issue Jun 22, 2020 · 8 comments

Comments

@fefer
Copy link

fefer commented Jun 22, 2020

Hi all,

I´m running srcpy on a Galaxy S10 and A20S on windows 10. The solution works with both devices. However, on A20S after a while the device gets disconnected, I´ve tried to reduce the resolution as suggested in another post, but even setting it to 800 the device keeps disconnecting after a while. The output I get is below:

srcpy

Can anyone help on it?

@rom1v
Copy link
Collaborator

rom1v commented Jun 22, 2020

It's an adb/usb problem. Sometimes, changing the cable/USB port solves the problem: #281 #283.

@rom1v
Copy link
Collaborator

rom1v commented Jun 22, 2020

Does it deconnect specifically on lockscreen or on other action? #1382

@fefer
Copy link
Author

fefer commented Jun 22, 2020

Thank you for your feedback!!

It is not specific, it happens randomly. Changing port did not solve it too. I believe the console is the "debug" mode. However, is it possible to have a more verbose mode?

@rom1v
Copy link
Collaborator

rom1v commented Jun 22, 2020

However, is it possible to have a more verbose mode?

This would not help. Scrcpy just see that adb has closed the connection. If in a separate terminal, you run adb logcat, you will see that it disconnects at the same time.

@fefer
Copy link
Author

fefer commented Jun 22, 2020

Gotcha, in summary, you mean the problem is outside srcpy, it should be related to adb/USB ports, right?

@rom1v
Copy link
Collaborator

rom1v commented Jun 22, 2020

in summary, you mean the problem is outside srcpy, it should be related to adb/USB ports, right?

In short, yes.

However, it is possible that this happens only when scrcpy is running, for example because it transfers a lot of data (the video stream) causing the issue, but it's not an issue in scrcpy itself.

@fefer
Copy link
Author

fefer commented Jun 22, 2020

I see, my guess is that I can try to lower the resolution and the bitrate, right? Is there anything else I can try to set to lower the transfer data rate?

@kllmanu
Copy link

kllmanu commented Dec 21, 2020

I get those disconnections too on my Galaxy S7. I think an easy workaround so far would be to put scrcpy in a while loop so it will automatically restart.

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