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.