How to run scrcpy wirelessly?

This application provides display and control of Android devices connected via USB (or over TCP/IP). It does not require any root access. It works on GNU/Linux, Windows and macOS.

https://github.com/Genymobile/scrcpy

Here are the steps:
1. Connect the device to the same Wi-Fi as your computer
2. Get your device IP address (in Settings ? About phone ? Status)
3. Enable adb over TCP/IP on your device: adb tcpip 5555
4. Connect to your device: adb connect DEVICE_IP:5555 (replace DEVICE_IP)
5. Unplug your device
6. Run scrcpy as usual

To switch back to USB mode: adb usb.

The default scrcpy bit-rate is 8Mbps, which is probably too much for a Wi-Fi connection. Depending on the use case, decreasing the bit-rate and the resolution may be a good compromise:

scrcpy --bit-rate 2M --max-size 800

or

scrcpy -b2M -m800

Ubuntu 20.04 / KDE Neon enable high quality audio

vi /etc/pulse/daemon.conf

daemonize = no
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 9
resample-method = soxr-vhq
avoid-resampling = true
enable-lfe-remixing = no
flat-volumes = no
rlimit-rtprio = 9
default-sample-format = float32le
default-sample-rate = 48000
alternate-sample-rate = 44100
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 2
default-fragment-size-msec = 125
deferred-volume-safety-margin-usec = 1

Enable LDAC, APTX, APTX-HD, AAC support in PulseAudio Bluetooth

add-apt-repository ppa:eh5/pulseaudio-a2dp
apt update
apt install libavcodec58 libldac pulseaudio-modules-bt

JamesDSP For Linux Is An Audio Effect Processor For PipeWire Or PulseAudio (Equalizer, Bass Boost, More)

Add PPA Repo

Lees verder