-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I make this work on Ubuntu 24.04? Device could not be connected (state=offline) #811
Comments
Please follow https://github.com/remote-android/redroid-doc?tab=readme-ov-file#troubleshooting to get debug blobs. |
@zhouziyang Thanks for responding. I got more info and the logs. I tried both android 12 and 15 images. Also made sure that First of all, I was using a The initial error resolved but now I am stuck at this: $ 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
$ adb devices
List of devices attached
localhost:5555 offline
$ scrcpy -s localhost:5555
scrcpy 3.1 <https://github.com/Genymobile/scrcpy>
ERROR: Device could not be connected (state=offline)
ERROR: Server connection failed The logs:$ ps -A
USER PID PPID VSZ RSS WCHAN ADDR S NAME
root 1 0 10976276 12108 do_sys_po+ 0 S init
root 9 1 0 0 0 0 Z [init]
root 10 1 10828652 7604 do_sys_po+ 0 S ueventd
logd 20 1 10860908 5964 sigsuspend 0 S logd
shell 24 1 10792812 3348 wait_woken 0 S sh
system 173 1 10844508 4832 futex_wai+ 0 S blank_screen
root 175 1 0 0 0 0 Z [vold]
root 183 1 0 0 0 0 Z [crash_dump64]
root 185 1 0 0 0 0 Z [vold]
root 186 1 10791160 4196 futex_wai+ 0 S vdc
root 189 0 10755948 3308 sigsuspend 0 S sh
root 195 189 10798060 4828 0 0 R ps I added the |
many Try
|
@zhouziyang Sorry m bad... Got it working! Thanks a lot! So how do I enable |
I followed the instructions for 22.04, because there are non for 24.04. It shouldn't be that different though. https://github.com/remote-android/redroid-doc/blob/master/deploy/ubuntu.md
the command
sudo modprobe ashmem_linux
resulted with an error, but its optional anyways:$ sudo modprobe ashmem_linux modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/6.8.0-51-generic
I have downloaded
adb
from https://dl.google.com/android/repository/platform-tools_r28.0.1-linux.zip.Then start android 15:
Next step is adb connnect, which yields:
Running it again yields:
Then the last step, scrcpy could not find the device...:
adb devices yields:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: