Android tablet or phone display on Linux Manjaro Laptop with SCRCPY

Android tablet or phone display on Linux Manjaro Laptop with SCRCPY

On one laptop it works.
On the important one it does not work yet. I do hope it almost will !

Done so far : # pacman -S adb, # pacman -S scrcpy. In the tablet : Enable USB debugging on Android : works. adb devices and scrcpy commands do work. I did learn these commands to stop and start adb : adb kill-server; adb start-server. They do work. Responce ! They did help on the first laptop !

Tablet is recognized by “$ adb devices”

$ adb devices
List of devices attached
V52X13LNX9H device

$ scrcpy
scrcpy 3.3.4 https://github.com/Genymobile/scrcpy
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
ERROR: Could not initialize SDL video: No available video device
ERROR: “adb start-server” exited unexpectedly
ERROR: Could not start adb server

$ adb kill-server; adb start-server; adb devices

  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    List of devices attached
    V52X13LNX9H device

$ scrcpy
scrcpy 3.3.4 https://github.com/Genymobile/scrcpy
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
ERROR: Could not initialize SDL video: No available video device
ERROR: “adb start-server” exited unexpectedly
ERROR: Could not start adb server

How to fix this issue ?

Thanks in advance

Hans


@HansDeHekker

Mod edit:- Please read: :point_down:


[MiniHowTo] Present code or command output

Note: Grave accent (or, backtick) characters are used. :eyes:

For inline code or to show a single command:

  • please follow this simple example: code here.

For multi-line command output:

  • place text beween two rows of three (```) backtick characters to form a scrollable text box, or …
  • use the </> button in the Compose window to achieve the same result.

The empty row between these rows of backtick characters is where to paste any multi-line command output (such as inxi).

An example of a pre-formatted text enclosure:

What is a Quark?

A. In Physics, an elementary particle and fundamental constituent of matter. 
B. A character from the Star Trek: "Deep Space Nine" television series.
C. A soft, creamy, usually unsalted cheese traditional to central Europe.

Hallo soundofthunder, I did read it. I do want to update the text. I dont find the Edit button !?
How to update my text ?
Thanks
Hans

That’s because you’re still only a TL0, and as such, the grace time for editing your own post has expired. :wink:

Just post a followup here on the thread. :wink:

1 Like

Why is it so tough to add a post ? My text is rather well considered, with good info, good readable !???

I’m afraid I don’t understand the problem. :man_shrugging:

Discourse — the forum engine — maintains a grace time for edits on people’s posts, and especially so depending on people’s Trust Level. Your Trust Level is still 0, because you have not posted much yet and have not visited the forum frequently enough yet. So your grace time has expired, and thus you can no longer edit your post.

Ergo, if you have any new information to add, just post it here below on the thread. :man_shrugging:

1 Like

Android tablet or phone display on Linux Manjaro Laptop with SCRCPY

Next trial with better formatting (I do hope) >:-)

On one laptop it works. On my old laptop 2011 with Linux Mint 20.3 it works !

On the important one it does not work yet. I do hope it almost will !

Done so far :

# pacman -S adb
# pacman -S android-tools
# pacman -S scrcpy. 
  • In the tablet : Enable USB debugging on Android : works.
  • adb devices and scrcpy commands do work.
  • I did learn these commands to stop and start adb : adb kill-server; adb start-server. They do work. Responce ! They did help on the first laptop with Linx Mint 20.3

Tablet is recognized by “$ adb devices” :

$ adb devices
List of devices attached
V52X13LNX9H	device
$ scrcpy
scrcpy 3.3.4 <https://github.com/Genymobile/scrcpy>
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
ERROR: Could not initialize SDL video: No available video device
ERROR: "adb start-server" exited unexpectedly
ERROR: Could not start adb server
$ adb kill-server; adb start-server; adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
V52X13LNX9H	device
$ scrcpy
scrcpy 3.3.4 <https://github.com/Genymobile/scrcpy>
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
ERROR: Could not initialize SDL video: No available video device
ERROR: "adb start-server" exited unexpectedly
ERROR: Could not start adb server

How to fix this issue ?

Thanks in advance

Hans

I did, and hope it will be better now. And will take time to the responses to anwser them fast !

What is it set to?
echo $XDG_RUNTIME_DIR

printenv output will also contain this variable - at least it should

Is the desktop environment different between the one machine where it works and the one where it doesn’t?



for me it is:

echo $XDG_RUNTIME_DIR
/run/user/1000

but this is not on Manjaro at the moment

I have no experience with scrcpy but I do have a fair amount of experience with adb and the tools.

On Arch based systems - it may be necessary to add yourself to the group adbusers to be able to access certain parts of the adb protocol (an acronym for Android Debug Bridge - if I recall correct).

sudo gpasswd -a $USER adbusers
2 Likes

Thanks to you. I did it, but no solution yet !

I did take the time to read this manual : Users and groups - ArchWiki. So good !

The group adbusers did not exist yet.
So I did made a copy of /etc/group, as user root
# cp /etc/group /etc/group_2026_0119

$ sudo gpasswd -a $USER adbusers

$ cat /etc/group | grep $USER
lp:x:991:cups,iemand,hans
users:x:984:iemand,hans
sys:x:3:bin,iemand,hans
cups:x:209:iemand,hans
autologin:x:959:iemand,hans
hans:x:1001:hans
adbusers:x:956:iemand,hans
plugdev:x:1002:iemand,hans

I did try again to init scrcpy with
$ adb devices
$ scrcpy
answering the pop-ups on the tablet
result :

$ scrcpy
scrcpy 3.3.4 <https://github.com/Genymobile/scrcpy>
ERROR: Could not initialize SDL video: No available video device
ERROR: "adb start-server" exited unexpectedly
ERROR: Could not start adb server
$ adb server-status
usb_backend: LIBUSB
mdns_backend: OPENSCREEN
version: "35.0.2"
build: "android-tools"
executable_absolute_path: "/usr/bin/adb"
log_absolute_path: "/tmp/adb.1001.log"
os: "Linux 6.18.4-1-MANJARO (x86_64)"

How to continue ?

Thanks anyone in advance !

The user group is created when you run

sudo pacman -Syu android-tools

Just for the sake of verification.

I just connected my Samsung Galaxy A53 to my desktop using scrcpy

Screenshot

So it must be something on your end that is blocking.

I quickly revisited you initial topic - there is no package named adb and all your commands is only --sync - could it be that your lack of using -Syu update has caused a partial scenario?

This would - at least partly - explain why you are getting errors.

I think you may benefit from doing a full system sync

sudo pacman -Syu

Then restart - and use your default user account to connect.

1 Like

Maybe my eyes are playing tricks on me (I’ve only just started sipping my first coffee of the day), but I cannot find any system information in this topic. I can’t even find the desktop environment being used. Is it GNOME; XFCE; Plasma; or something else?

Even the user profile lacks this basic information. Please update your user profile by visiting this page: Forum Profile Preferences

More importantly, please provide the output of:

inxi --filter --verbosity=8

or the short form (preferred):

inxi -zv8
Running `inxi` in `chroot`

Note that any code or command output (such as inxi output) should be placed within a scrollable pre-formatted text enclosure according to forum guidelines.

See here for instructions: :point_down:


[MiniHowTo] Present code or command output

Note: Grave accent (or, backtick) characters are used. :eyes:

For inline code or to show a single command:

  • for example, typing: `code here` will display the text as code here.

For multi-line command output:

  • place text beween two rows of three (```) backtick characters to form a scrollable text box, or …
  • use the </> button in the Compose window to achieve the same result.

The empty row between these rows of backtick characters is where to paste any multi-line command output (such as inxi).

An example of a pre-formatted text enclosure:

What is a Quark?

A. In Physics, an elementary particle and fundamental constituent of matter.
B. A character from the Star Trek: "Deep Space Nine" television series.
C. A soft, creamy, usually unsalted cheese traditional to central Europe.

System information is vital to working out this issue, due to scrcpy requiring different setups depending on whether the display is wayland or x11.

If you have some morbid fear of providing accurate system information, then at least let us know what display you are running by posting the output of:

echo $XDG_SESSION_TYPE

The reason this information is required:

No available video device could be due to you running scrcpy, which defaults to x11, on a wayland display.

scrcpy/FAQ.md at master · Genymobile/scrcpy

Client issues

Issue with Wayland

By default, SDL uses x11 on Linux. The video driver can be changed via the SDL_VIDEODRIVER environment variable:

export SDL_VIDEODRIVER=wayland scrcpy

On some distributions (at least Fedora), the package libdecor must be installed manually.

See issues #2554 and #2559.

KWin compositor crashes

On Plasma Desktop, compositor is disabled while scrcpy is running.

As a workaround, disable “Block compositing”.

I could be barking up the wrong tree as I’ve never used scrcpy, however confirmation of the display being used could help fix the issue, or it may eliminate the display as being the cause of the issue.

2 Likes

Hmm - I am running Wayland only - I did the above test without knowing about possible limitations with Wayland - no issues.

2 Likes

That’s good - as I said, I’ve never used the application.

Still, some system info from the OP might be helpful.

2 Likes

Indeed - I am beginning to think it is Nvidia related.

@HansDeHekker please provide the requested system information - otherwise we just punching holes in the dark.

2 Likes

Thanks again. I’m familiair with “pacman -Syu”. Will execute it now again once more.

# pacman -Syu
:: Pakket-databases synchroniseren...
 core is bijgewerkt
 extra is bijgewerkt
 multilib is bijgewerkt
:: Volledige systeemsupgrade starten...
 er valt niets te doen

Fully upgraded. Nothing to do !

@HansDeHekker

Please provide your system information as requested: :eyes:

inxi -zv8
1 Like
System:
  Kernel: 6.18.4-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.18-x86_64
    root=UUID=112cd725-a20f-43d0-b548-13024d82080a rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Console: pty pts/0 DM: LightDM v: 1.32.0 Distro: Manjaro base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81LK v: IdeaPad L340-15IRH Gaming
    serial: <superuser required> Chassis: type: 10 v: IdeaPad L340-15IRH Gaming
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0R32862 WIN
    serial: <superuser required> part-nu: LENOVO_MT_81LK_BU_idea_FM_IdeaPad
    L340-15IRH Gaming uuid: <superuser required> Firmware: UEFI vendor: LENOVO
    v: BGCN36WW date: 05/24/2022
Battery:
  ID-1: BAT0 charge: 33.4 Wh (100%) condition: 33.4/45 Wh (74.2%) volts: 12.69
    min: 11.52 model: Celxpert L18C3PF1 type: Li-poly serial: <filter> charging:
    status: full type: standard avail: long_life,standard cycles: 950
Memory:
  System RAM: total: 16 GiB available: 15.48 GiB used: 2.18 GiB (14.1%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 16 GiB slots: 1 modules: 1 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: ChannelB-DIMM0 type: DDR4 detail: synchronous size: 16 GiB
    speed: 2400 MT/s volts: curr: 1 width (bits): data: 64 total: 64
    manufacturer: Samsung part-no: M471A2K43DB1-CTD serial: <filter>
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 9 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xFA
  Topology: cpus: 1x dies: 1 clusters: 6 cores: 6 threads: 12 tpc: 2
    smt: enabled cache: L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB
    desc: 6x256 KiB L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 800 min/max: 800/2600 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800
    8: 800 9: 800 10: 800 11: 800 12: 800 bogomips: 62399
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr
    mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge
    pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep
    smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2
    tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic
    xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: ghostwrite status: Not affected
  Type: indirect_target_selection status: Not affected
  Type: itlb_multihit status: KVM: Split huge pages
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: old_microcode status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS; IBPB: conditional; STIBP: conditional;
    RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds mitigation: Microcode
  Type: tsa status: Not affected
  Type: tsx_async_abort status: Not affected
  Type: vmscape mitigation: IBPB before exit to userspace
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Lenovo
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3e9b
    class-ID: 0300
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Lenovo
    driver: nvidia v: 590.48.01 alternate: nouveau,nova_core,nvidia_drm
    non-free: 550-580.xx+ status: current (as of 2025-11; EOL~2026-12-xx)
    arch: Turing code: TUxxx process: TSMC 12nm FF built: 2018-2022 pcie:
    gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s ports:
    active: none off: HDMI-A-1 empty: DP-1 bus-ID: 01:00.0 chip-ID: 10de:1f91
    class-ID: 0300
  Device-3: Lite-On Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-8:3 chip-ID: 04ca:7070
    class-ID: 0e02
  Display: x11 server: X.org v: 1.21.1.21 with: Xwayland v: 24.1.9 driver:
    X: loaded: modesetting,nvidia dri: iris gpu: i915,nvidia,nvidia-nvswitch
    tty: 80x24
  Monitor-1: HDMI-A-1 model: Dell P2219H serial: <filter> built: 2020
    res: 1920x1080 dpi: 102 gamma: 1.2 chroma: red: x: 0.655 y: 0.337 green:
    x: 0.325 y: 0.612 blue: x: 0.153 y: 0.063 white: x: 0.314 y: 0.329
    size: 476x267mm (18.74x10.51") diag: 546mm (21.5") ratio: 16:9
    modes: 1920x1080, 1600x900, 1280x1024, 1152x864, 1280x720, 1024x768,
    800x600, 720x576, 720x480, 640x480
  Monitor-2: eDP-1 model: ChiMei InnoLux 0x15e7 built: 2016 res: 1920x1080
    dpi: 142 gamma: 1.2 chroma: red: x: 0.592 y: 0.349 green: x: 0.329 y: 0.557
    blue: x: 0.153 y: 0.118 white: x: 0.314 y: 0.329
    size: 344x193mm (13.54x7.6") diag: 394mm (15.5") ratio: 16:9
    modes: 1920x1080
  API: EGL v: 1.5 hw: drv: nvidia platforms: gbm: drv: nvidia
  API: OpenGL v: 4.6.0 vendor: nvidia v: 590.48.01
    note: console (EGL sourced) renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2
  Info: Tools: api: eglinfo,glxinfo gpu: nvidia-smi
    x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel
    v: kernel alternate: snd_soc_avs,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa
    class-ID: 0403
  API: ALSA v: k6.18.4-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.4.9 status: off tools: pw-cli
  Server-3: PulseAudio v: 17.0-98-gb096 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl,pavucontrol
Network:
  Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
    vendor: Lenovo driver: ath10k_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 bus-ID: 07:00.0 chip-ID: 168c:0042 class-ID: 0280
  IF: wlp7s0 state: up mac: <filter>
  IP v4: <filter> type: noprefixroute scope: global broadcast: <filter>
  IP v6: <filter> type: dynamic mngtmpaddr proto kernel_ra scope: global
  IP v6: <filter> type: dynamic mngtmpaddr proto kernel_ra scope: global
  IP v6: <filter> virtual: proto kernel_ll scope: link
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 08:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp8s0 state: down mac: <filter>
  Info: services: NetworkManager, sshd, systemd-timesyncd, wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:5 chip-ID: 0cf3:e500
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 953.87 GiB used: 250.83 GiB (26.3%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLB1T0HALR-000L2 size: 953.87 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 5L1QEXA7 temp: 22.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 97.66 GiB size: 95.56 GiB (97.86%) used: 27.78 GiB (29.1%)
    fs: ext4 dev: /dev/nvme0n1p7 maj-min: 259:7 label: rootmanjaro
    uuid: 112cd725-a20f-43d0-b548-13024d82080a
  ID-2: /boot/efi raw-size: 371 MiB size: 370.3 MiB (99.80%)
    used: 44.3 MiB (12.0%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: N/A uuid: 0B3C-369A
  ID-3: /mnt/datalinux raw-size: 494.67 GiB size: 485.83 GiB (98.21%)
    used: 75.34 GiB (15.5%) fs: ext4 dev: /dev/nvme0n1p6 maj-min: 259:6
    label: N/A uuid: N/A
  ID-4: /mnt/winc raw-size: 282.24 GiB size: 282.24 GiB (100.00%)
    used: 141.63 GiB (50.2%) fs: ntfs dev: /dev/nvme0n1p3 maj-min: 259:3
    label: N/A uuid: 6E7CD3E67CD3A6DD
  ID-5: /mnt/windata raw-size: 77.1 GiB size: 77.1 GiB (100.00%)
    used: 6.03 GiB (7.8%) fs: ntfs dev: /dev/nvme0n1p5 maj-min: 259:5
    label: windata uuid: 206A5A4F6A5A21B8
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: ext4 label: N/A
    uuid: ad5af1dc-27c2-4b6f-9b43-6bf51b2e7c35
  ID-2: /dev/nvme0n1p4 maj-min: 259:4 size: 878 MiB fs: ntfs label: N/A
    uuid: 1CCEB437CEB40B52
  ID-3: /dev/nvme0n1p8 maj-min: 259:8 size: 1000 MiB fs: ntfs label: N/A
    uuid: 769C5D369C5CF1DB
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 1-1:2 info: Huasheng USB2.0 HUB ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 214b:7250 class-ID: 0900
  Device-1: 1-1.1:4 info: Trust Deskset type: keyboard,mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 100mA chip-ID: 145f:02cc class-ID: 0301
  Device-2: 1-1.4:6 info: Genesys Logic microSD Card Reader
    type: mass storage driver: usb-storage interfaces: 1 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 98mA
    chip-ID: 05e3:0751 class-ID: 0806
  Device-3: 1-8:3 info: Lite-On Integrated Camera type: video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s)
    lanes: 1 mode: 2.0 power: 500mA chip-ID: 04ca:7070 class-ID: 0e02
  Device-4: 1-14:5 info: Qualcomm Atheros type: bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1
    power: 100mA chip-ID: 0cf3:e500 class-ID: e001
  Hub-3: 2-0:1 info: super-speed hub ports: 8 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 42.0 C pch: 38.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Packages: pm: pacman pkgs: 1369 libs: 379 tools: pamac,yay pm: flatpak
    pkgs: 0
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://ftp.psnc.pl/linux/manjaro/stable/$repo/$arch
    2: https://mirror.yandex.ru/mirrors/manjaro/stable/$repo/$arch
    3: https://forksystems.mm.fcix.net/manjaro/stable/$repo/$arch
    4: https://mirror.math.princeton.edu/pub/manjaro/stable/$repo/$arch
    5: https://irltoolkit.mm.fcix.net/manjaro/stable/$repo/$arch
    6: https://mirror.kamtv.ru/manjaro/stable/$repo/$arch
    7: https://mirror.meowsmp.net/manjaro/stable/$repo/$arch
    8: https://ftp.yz.yamagata-u.ac.jp/pub/linux/manjaro/stable/$repo/$arch
Processes:
  CPU top: 5 of 323
  1: cpu: 16.8% command: firefox pid: 3779 mem: 484.3 MiB (3.0%)
  2: cpu: 12.6% command: firefox pid: 4293 mem: 349.3 MiB (2.2%)
  3: cpu: 7.2% command: cinnamon pid: 2252 mem: 268.0 MiB (1.6%)
  4: cpu: 3.6% command: firefox pid: 4224 mem: 230.6 MiB (1.4%)
  5: cpu: 3.5% command: Xorg pid: 1593 mem: 157.4 MiB (0.9%)
  Memory top: 5 of 323
  1: mem: 484.3 MiB (3.0%) command: firefox pid: 3779 cpu: 16.8%
  2: mem: 349.3 MiB (2.2%) command: firefox pid: 4293 cpu: 12.6%
  3: mem: 268.0 MiB (1.6%) command: cinnamon pid: 2252 cpu: 7.2%
  4: mem: 230.6 MiB (1.4%) command: firefox pid: 4224 cpu: 3.6%
  5: mem: 201.9 MiB (1.2%) command: firefox pid: 4286 cpu: 0.8%
Info:
  Processes: 323 Power: uptime: 6m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 6.14 GiB services: csd-power,upowerd
    Init: systemd v: 258 default: graphical tool: systemctl
  Compilers: clang: 21.1.6 gcc: 15.2.1 Shell: Bash (su) v: 5.3.9
    running-in: pty pts/0 inxi: 3.3.40

printenv | grep XDG_RUNTIME_DIR
XDG_RUNTIME_DIR=/run/user/1001

Thank you for providing this info - it may be important which GPU is active when you try to run scrcpy.

We now know that your system is a laptop with Intel iGPU and Nvidia dGPU.

It seems your primary GPU at the time of pulling the system info is the Intel GPU

This tells that you have more than one user registered on the system.

You will need to verify which one is active when you try to run scrcpy and if necessary add the user to adbusers group.