redroid-doc icon indicating copy to clipboard operation
redroid-doc copied to clipboard

Cannot connect to Redroid (device offline)

Open lsk-china opened this issue 10 months ago • 1 comments

My issue is similar this one. Environment: Arch Linux, Kernel: Linux 6.13.5-zen1-1-zen. CPU: 12th Gen Intel(R) Core(TM) i7-12700KF (20) @ 5.00 GHz, GPU: NVIDIA GeForce RTX 3070 Ti [Discrete], docker: Docker version 28.0.1, build 068a01ea94 ADB says:

$ adb connect localhost:5555
* daemon not running; starting now at tcp:5037
* daemon started successfully
failed to connect to localhost:5555

$ adb connect localhost:5555
already connected to localhost:5555

scrcpy says:

$ scrcpy -s localhost:5555 --audio-codec=raw --print-fps -b 2048m --audio-bit-rate=2048m

scrcpy 3.1 <https://github.com/Genymobile/scrcpy>
WARNING: --audio-bit-rate is ignored for raw audio codec
ERROR: Device could not be connected (state=offline)
ERROR: Server connection failed

Binder module seems to be loaded properly:

$ grep binder /proc/filesystems 
nodev	binder

Command to start the container:

sudo docker run -d --privileged  \               
  -v /data/android_mount:/data   \
  -p 5555:5555  \
  --name redroid11   \
  redroid/redroid:11.0.0-latest   \
  androidboot.redroid_width=2560   \
  androidboot.redroid_height=1080   \
  androidboot.redroid_gpu_mode=host   \
  androidboot.redroid_dpi=480 \
  androidboot.redroid_fps=120  \
  androidboot.use_memfd=true

I followed a blog to play a game with Redroid, which asked me to use redroid:11.0.0-latest instead of higher versions.

dmesg.log ps.log

lsk-china avatar Mar 09 '25 09:03 lsk-china

same

Pubalue avatar Jul 26 '25 19:07 Pubalue