4 ms·
> Personally, I won't be using Wayland on my main machine once I update that as I'm a CWM user, and Wayland support probably isn't every going to happen for tha
by yjftsjthsd-h 7y ago
> Personally, I won't be using Wayland on my main machine once I update that as I'm a CWM user, and Wayland support probably isn't every going to happen for that.
I've been thinking about this myself, as I use a handful of programs which I am unwilling to give up but which Wayland will probably never properly support (intentionally; I'm fond of recording and playing back arbitrary input events, which Wayland has helpfully blocked for security reasons). My reading of the docs is that it's possible to run Wayland+xwayland as, effectively, a complete X server... well, it's not even a drop-in replacement, it's just an X server that happens to be implemented differently. So I think that if/when Xorg starts to become problematic to continue using, I can just swap it out for xwayland running in root window mode, and then run my X window manager and programs on top. Might need to mess with environment variables to mask Wayland so nothing tries to use it directly.
Anybody else have thoughts/plans on the future of X if Wayland really does take over?
- thristian 7y agoMy understanding is that every Wayland compositor automatically runs XWayland by default for compatibility reasons, and will do for the foreseeable future.
- bitwize 7y agoXwayland is Xorg. It is one of the DDX backends available for Xorg, along with kdrive, XQuartz, Xephyr, the xfree86 backend, etc. If Xorg "becomes problematic to continue using", it will simply be removed. Xwayland will be removed too, since "nobody actually uses the legacy X protocol anymore". That's the goal, to keep X around for as long as is needed for "modern" toolkits and "modern" applications to transition fully to Wayland, before removing X entirely.
- dngray 7y ago> Anybody else have thoughts/plans on the future of X if Wayland really does take over? I have been thinking about this for a few years at least (happy i3wm user). I am looking at moving to Sway https://github.com/swaywm/sway https://github.com/swaywm/sway (drop in replacement) at some point as it seems the development is really healthy. sircmpwn (Drew DeVault) has done a lot of really nice contribution to the FOSS community, in particular wlroots https://github.com/swaywm/wlroots https://github.com/swaywm/wlroots I also thoroughly enjoy reading his blog https://drewdevault.com https://drewdevault.com (articles from there often get posted here) there has been many a time I've read something he's written and thought "hear hear" in my mind. It is also impacting my purchasing choices in regard to going for AMDGPU instead of NVIDIA for my next system that I plan to buy in a few months (mostly waiting for 3rd party Navi cards at this point).
- krzyk 7y agoI wonder, why use Wayland at all? What are the benefits? Because drawbacks are huge (large number of apps would need to be customized and tiling managers would probably need to rewritten completely) I don't use it and I don't have any issues with my current Linux desktop (using xmonad).
- dngray 7y ago> I don't use it and I don't have any issues with my current Linux desktop (using xmonad). It looks like there's an effort to port it to Wayland https://github.com/waymonad/waymonad https://github.com/waymonad/waymonad The fact is X11 is being supported mostly by Fedora and they're going to stop using it too. It is already in maintenance mode with no new releases scheduled. Eventually it will be completely unmaintained, probably around 2029 when RHEL8 support is dropped. https://blogs.gnome.org/uraeus/2019/06/24/on-the-road-to-fedora-workstation-31/ https://blogs.gnome.org/uraeus/2019/06/24/on-the-road-to-fed...
- bitwize 7y ago> I wonder, why use Wayland at all? What are the benefits? Muh security and muh pixel perfect frames. But mainly, Red Hat is going all in on Wayland and has decided that X11 is deprecated. So if you want to develop applications for Linux that will be compatible going forward you will target Wayland and not X. (Realistically, the toolkits will use Wayland and not X and you will target those. Eventually GTK and Qt will drop X support altogether.)
- krzyk 7y agoWhat do you mean by "pixel perfect frames"? I watch movies in VLC and I don't complain about pixels :) (BTW. I don't care much about security of my desktop behind 2 routers and a NAT - yeah I know I'm still a target, but there are easier ones).
- bitwize 7y ago> What do you mean by "pixel perfect frames"? Wayland enthusiasts usually use "pixel-perfect frames" to mean lack of tearing -- what happens when the framebuffer is changed in the middle of the "electron beam's" scan down the display and you get half of one image and half of another. Eliminating tearing generally means forcing vsync, which means your framerate is capped at 60fps, and a few milliseconds of input latency are introduced -- meaning there's a bit of a tradeoff between the fastest desktop and the smoothest. (This is true regardless of display stack, whether Windows, Quartz, X or Wayland). Xorg drivers can often run in a "tear-free" mode, but Wayland blah blah modern architecture blah blah designed from the ground up blah blah. Plus, Nobody Ever Uses the X protocol anymore. (Basically, you don't have a choice -- Wayland compositors are required to force vsync and operate in tear-free mode.) Security is, largely, a non-issue unless you run untrusted binaries all the time and/or open ports on your X server to random places that can then run random programs on your display. However, for the paranoid (and a little healthy paranoia is a good thing), it would be more involved but still not a whole lot of work[0] to modify the X server architecture to support a more Wayland-like security model by default, while still allowing trusted apps to do things like take screenshots and respond to global hotkeys. The advantages of Wayland thus boil down to "it's what the community wants". And by "the community" I largely mean Red Hat and the GNOME Foundation. Basically, younger programmers who were weaned on Macs or Windows want a more Mac- or Windows-like experience than X, which offers a more Unix-workstation experience, provides. So they decided that the graphics stack needs to optimize for local applications running on a composited desktop with fancy effects -- not local and remote clients all drawing to one display. Plus it gives them the opportunity to do what every programmer longs to do -- a Great Rewrite From Scratch, using Modern Frameworks and Modern Techniques because the end result will be so much better and this never turns out badly. But you're going to have to deal with Wayland regardless of whether it offers advantages to you, personally, again, because our benevolent lords at Red Hat have spoken on the matter and they say X is dead. [0] https://keithp.com/x-ideas/x-security/ https://keithp.com/x-ideas/x-security/