Possible to run an xorg desktop in Wayland?
Jonas Ã…dahl
jadahl at gmail.com
Fri Jul 21 02:24:53 UTC 2017
On Thu, Jul 20, 2017 at 04:05:21PM -0600, Jeff Sadowski wrote:
> So from what I gather wayland can run xorg under it right?
> If I'm running xorg I should be able to run something like x11vnc to
> connect to that xorg correct?
> and run stuff like xdotool on that xorg as well right?
Not really. Normally when running a Wayland compositor, X11 clients
connect to a Xwayland instance, that, to simplify things, translates X11
to Wayland. However, since Wayland has a lot more isolation (for example
no way to inject input affecting other clients, eaves dropping on input
events sent to other clients or read the screen content) certain things
that clients like xdotool (inject input) and x11vnc (inject input + read
screen content) will not work.
X11 clients injecting and eaves dropping input events amongst each other
might still work though, but regular Wayland will be completely
unaffected.
They would work if you run the clients in a rootful complete Xorg server
on top of Wayland (such as Xnest and Xephyr), but in effect that will be
a like running a separate session with a separate window manager and
background etc inside a window, much like how virtual machines are
presented, and they (x11vnc, xdotool, clients in the nested X server)
will only be displayed in and aware of what is inside that nested x
server.
Jonas
>
> I'm testing out wayland under a virtualbox vm that I have running under
> xorg.
> My vm is running Fedora rawhide.
>
>
> echo -e "$(loginctl|grep -v -i SESSION|awk '{print $1}')"|while read
> session; do
> loginctl show-session ${session} -p Type
> done
>
> shows
>
> Type=tty
> Type=wayland
>
> Yay I'm running wayland.
>
> If I run xterm in wayland I can run xdotool to type stuff to it. This
> didn't work in gnome-terminal
>
> xrandr
> Screen 0: minimum 320 x 200, current 800 x 600, maximum 8192 x 8192
> XWAYLAND0 connected 800x600+0+0 (normal left inverted right x axis y axis)
> 0mm x 0mm
> 800x600 59.86*+
>
> /usr/bin/x11vnc -o ~/x11vnc/x11vnc.log -capslock -loop -forever -shared
> -noxfixes -usepw -passwdfile ~/x11vnc/passwd
>
> --- x11vnc loop: 1 ---
>
> --- x11vnc loop: waiting for: 2863
>
>
> --- x11vnc loop: sleeping 2000 ms ---
>
>
> --- x11vnc loop: 2 ---
>
> --- x11vnc loop: waiting for: 2864
>
>
> --- x11vnc loop: sleeping 2000 ms ---
> ...
>
> My goal is to at least see and control a subset of windows with vnc under
> wayland.
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list