Open lordofscripts opened 19 hours ago
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
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).
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:
Environment
Describe the bug