Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6aaa5bf9a |
@@ -153,6 +153,26 @@ You may also need to configure the [scaling behavior]:
|
|||||||
[scaling behavior]: https://github.com/Genymobile/scrcpy/issues/40#issuecomment-424466723
|
[scaling behavior]: https://github.com/Genymobile/scrcpy/issues/40#issuecomment-424466723
|
||||||
|
|
||||||
|
|
||||||
|
### Issue with Wayland
|
||||||
|
|
||||||
|
By default, SDL uses x11 on Linux. The [video driver] can be changed via the
|
||||||
|
`SDL_VIDEODRIVER` environment variable:
|
||||||
|
|
||||||
|
[video driver]: https://wiki.libsdl.org/FAQUsingSDL#how_do_i_choose_a_specific_video_driver
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export SDL_VIDEODRIVER=wayland
|
||||||
|
scrcpy
|
||||||
|
```
|
||||||
|
|
||||||
|
On some distributions (at least Fedora), the package `libdecor` must be
|
||||||
|
installed manually.
|
||||||
|
|
||||||
|
See issues [#2554] and [#2559].
|
||||||
|
|
||||||
|
[#2554]: https://github.com/Genymobile/scrcpy/issues/2554
|
||||||
|
[#2559]: https://github.com/Genymobile/scrcpy/issues/2559
|
||||||
|
|
||||||
|
|
||||||
### KWin compositor crashes
|
### KWin compositor crashes
|
||||||
|
|
||||||
|
|||||||
@@ -328,30 +328,18 @@ For example, you could capture the video within [OBS].
|
|||||||
_Scrcpy_ uses `adb` to communicate with the device, and `adb` can [connect] to a
|
_Scrcpy_ uses `adb` to communicate with the device, and `adb` can [connect] to a
|
||||||
device over TCP/IP:
|
device over TCP/IP:
|
||||||
|
|
||||||
1. Plug the device into a USB port on your computer.
|
1. Connect the device to the same Wi-Fi as your computer.
|
||||||
2. Connect the device to the same Wi-Fi network as your computer.
|
2. Get your device IP address, in Settings → About phone → Status, or by
|
||||||
3. Get your device IP address, in Settings → About phone → Status, or by
|
|
||||||
executing this command:
|
executing this command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
adb shell ip route | awk '{print $9}'
|
adb shell ip route | awk '{print $9}'
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Enable adb over TCP/IP on your device: `adb tcpip 5555`.
|
3. Enable adb over TCP/IP on your device: `adb tcpip 5555`.
|
||||||
5. Unplug your device.
|
4. Unplug your device.
|
||||||
6. Connect to your device: `adb connect DEVICE_IP:5555` _(replace `DEVICE_IP`
|
5. Connect to your device: `adb connect DEVICE_IP:5555` _(replace `DEVICE_IP`)_.
|
||||||
with the device IP address you found)_.
|
6. Run `scrcpy` as usual.
|
||||||
7. Run `scrcpy` as usual.
|
|
||||||
|
|
||||||
Since Android 11, a [Wireless debugging option][adb-wireless] allows to bypass
|
|
||||||
having to physically connect your device directly to your computer.
|
|
||||||
|
|
||||||
[adb-wireless]: https://developer.android.com/studio/command-line/adb#connect-to-a-device-over-wi-fi-android-11+
|
|
||||||
|
|
||||||
If the connection randomly drops, run your `scrcpy` command to reconnect. If it
|
|
||||||
says there are no devices/emulators found, try running `adb connect
|
|
||||||
DEVICE_IP:5555` again, and then `scrcpy` as usual. If it still says there are
|
|
||||||
none found, try running `adb disconnect` and then run those two commands again.
|
|
||||||
|
|
||||||
It may be useful to decrease the bit-rate and the definition:
|
It may be useful to decrease the bit-rate and the definition:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user