this post was submitted on 14 Apr 2024
36 points (95.0% liked)

Linux

48689 readers
446 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I tried using Waydroid on Linux Mint (Edge) only to have it not work and realized that it requires Wayland, and Mint uses X11. So I used VirtualBox to install Fedora 40 Gnome which does use Wayland.

I installed Waydroid as per the instructions and am having seemingly the same issue as on Mint. After downloading "Vanilla" Android and clicking "Done" everything exits out. So I launch the Waydroid application but nothing ever happens.

I then try to manually start Waydroid in terminal but always get "ERROR: WayDroid container service is already running". Then I skip to the second step "waydroid session start" but receive "OSError: container failed to start".

Am I doing something wrong? Is it simply because the VM is causing the issues? Or does WayDroid not work well on Fedora? Thanks

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 8 months ago* (last edited 8 months ago) (2 children)

I have waydroid working great in the latest Mint. You need Weston so Waydroid has a Wayland to connect to.

e: or use the experimental Wayland in 21.3 but it's not ready for daily driving

[–] [email protected] 6 points 8 months ago

Here's the script I use to start and stop Waydroid:

#!/bin/bash
PID=$(pgrep "weston")
if [ "$?" -eq "0" ]; then
    waydroid session stop
    kill $PID
    exit
fi
weston --width=1920 --height=1080 --socket=wayland-1 &>/dev/null &
sleep 2
WAYLAND_DISPLAY=wayland-1 XDG_SESSION_TYPE=wayland waydroid show-full-ui

Change the resolution to whatever you need it to be. Run it once to start, again to stop. It just lives on my desktop.

[–] [email protected] 2 points 8 months ago (1 children)

I thought about 21.3 but don't want to use something experimental. What is Weston? It's good to hear that it works on Mint

[–] [email protected] 2 points 8 months ago (1 children)

Weston is basically Wayland within an X11 app. You can run Wayland stuff with it but it'll be constrained to that window.

[–] [email protected] 1 points 8 months ago (1 children)
[–] [email protected] 2 points 8 months ago (1 children)

Check out the Waydroid script I posted, it'll help you with figuring out how to run Wayland programs.

[–] [email protected] 1 points 8 months ago

I will. Thank you very much