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

Device disconnects during scrolling #5326

Open
lordofscripts opened this issue Sep 28, 2024 · 2 comments
Open

Device disconnects during scrolling #5326

lordofscripts opened this issue Sep 28, 2024 · 2 comments

Comments

@lordofscripts
Copy link

I got scrcpy version 2.7 (somewhat) running on my Raspberry Pi (Debian Bullseye). My device's screen is a tad longer than FHD and my Linux desktop is FHD, so I got it to display like this:

scrcpy --max-size 1024

Environment

  • OS: Raspbian Debían Bullseye
  • Scrcpy version: 2.7
  • Installation method: pi-apps apt
  • Device model: realme RMX3241
  • Android version: 13

Describe the bug

  • At first it runs well but as soon as I use the mouse scroll wheel it crashes, other times I can scroll it for a while and then it crashes. Same if I use a mouse swipe gesture.
  • Mouse clicking seems okay.
  • Response time is okay too.
WARN: Device disconnected
@lordofscripts
Copy link
Author

Usually after it crashes like this then it becomes impossible to reconnect even after killing & restarting the server:

scrcpy 2.7 <https://github.com/Genymobile/scrcpy>
ERROR: Device could not be connected (state=offline)
ERROR: Server connection failed

@rom1v
Copy link
Collaborator

rom1v commented Sep 29, 2024

At first it runs well but as soon as I use the mouse scroll wheel it crashes

WARN: Device disconnected

Scrcpy closes automatically when it gets disconnected, and it seems.mouse movements (which probably cause more video changes) cause adb to be disconnected. (Technically, it not a scrcpy crash, but I understand it can look like it is a crash.)

Btw, if you run adb shell or adb logcat in a separate terminal, they will terminate at the same time as scrcpy.

Given that the device is considered offline after that, it might be a USB cable/port issue, or a power issue (especially on raspi, not enough power for the Android device). Reducing the resolution/bit rate might help (or not).

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