Thoughts on Wayland vs X?
I've always used X because I had nvidia graphics, but just got a laptop with intel only and was wondering the advantages/disadvantages of both? Is Wayland mature enough to replace X by now?
About this post
- Posted
- Archived
- Score
- 3 · 64% up
- Kind
- Text
- ID
- imsgod
32 comments
It's largely a matter of where your priorities lie. If you care about security and tearfree graphics, use Wayland. If you want a larger pool of window managers to choose from, want to be able to run a separate compositor like
picom(blurred transparency effect for windows), or need scripted control of windows, X is better. Personally, I run X with i3 in one tty and wayland with sway in another. I spend most of my time in X because of better scriptability and more mature applications (status bars and the like). I switch over to wayland when I want to watch videos without tearing.I'll add another point that I forgot to mention previously related to gaming. wine does not work under Wayland. As far as I understand, this is by design and not going to change in the future. wine needs to be able to do certain things that Wayland considers bad for security. You can still run games with wine in Wayland, but this is done by running an X server through XWayland which kind of defeats the point. Basically, you'll always need X somewhere in the stack to play games that weren't written with Wayland in mind.
That's false. Wine can work on Wayland but some things need to be done differently and there already exist a build of Wine working natively on Wayland.
Does proton work?
On Nvidia GPUs you have to enable ForceFullCompositionPipeline in xorg.conf for no tearing (I dont know if there's something similar on AMD GPUs).
I'm on AMD which does in fact have a similar setting. It just doesn't work for me. Neither does using a compositor, fiddling around with vsync settings, or messing with boot parameters. X certainly can do tearfree with the right hardware, but I've never had any luck with mine.
IMO, It's not ready for everybody, yet. Display sharing, clipboard manager, drop-down terminals are the things I discovered that don't work well. If gnome-session stops starting xwayland, maybe it's time to migrate for everybody.
I'm on Wayland on my Laptop, Intel only, it's an old MacBook. The performance and track pad usability is far greater than running the same desktop on X.
I have yet to experience on gnome Wayland what everyone and their moms tell about it, it's been smooth sailing for me since 3.32, biggest issue was actually lack of proper Wayland support from Firefox but that's been fixed as of late.
With that said, I run X Plasma on the desktop simply because I have more wiggle room to not care, of course, I'll switch to Plasma on Wayland when it becomes stable and all the visual quirks fixed.
I would switch to Wayland if I didn't have a nvshitia card. Wayland is definitely the future, but it needs more time. I think it's worth it, and if you have issues you can always usually solve them with XWayland for the time being.
Being using Wayland for almost 2 years and switched to X half year ago. Wayland feels more robust. However, I still think it is quite limited if you want to use only native Wayland applications. Things are definitely improving, but slowly. For me, I would jump back to wayland once it has a wm like dwm and also possible to enable window effects such as shadow and transition animation.
What DE/WM are you using? I'm currently on KDE, and I frequently encounter bugs. My most frequent bugs:
Yakuake, a drop down terminal made by KDE, doesn't drop down the display I have my mouse on, which it does on X. There is also no drop down animation, and it only pops in and out.
Sometimes KDE "forgets" my display positions, and thinks my right display is on the left and vice versa.
Mouse icon changed size between my displays (that have different resolution)
Flameshot, my screenshot application, can't save screenshoted images to my clipboard
These are probably not Wayland's fault, but to me Wayland doesn't feel robust
KDE is kinda lacking compared to other compositors like Sway and Mutter (Gnome Wayland). They simply don't have a solid implementation yet.
I'm using Sway btw. It doesn't support fancy composition effect like blur but it's been a very great experience. I has more features like multi monitor VRR support, is easier to configure (the man pages and i3 guide are exceptional) and is more stable than KDE.
Display output are set in the config file so this likely won't happen.
Many applications implement their own window positioning algorithm where they store it in a text state file on close and then move and resize themselves when they are reopened. This works great on X where windows are allowed to do that. Wayland's security model doesn't let windows access or set their geometry. Maybe there is or will be a protocol extension to address this, but it doesn't work out of the box as far as I know unless the compositor specifically implements logic for it.
X doesn't actually have a clipboard in the way we think about it. There's just a widely agreed upon set of properties windows can set and read on themselves and others. There are two "standard" slots for the clipboard and selection. Mimetypes are used to specify whether the clipboard content is text, an image, a file, html etc. If you copy and paste a file in a file browser, only the files name and a special mimetype are getting stored in the clipboard and the application knows how to handle it. Any application can store whatever it wants with whatever name and format (within size restrictions). Whether or not other things will know where to look for that information or what to do with it is another story. The whole thing works by convention. I'm not sure how Wayland handles the clipboard. It's probably saner than what X applications do. But since it's different and the previous system was quite complicated it doesn't surprise me that clipboard doesn't always work as expected.
I was mostly on swaywm. Window position wasn't a huge deal while you have everything tiled. One advantage I would say on wayland is that it has better support for HiDPI monitor, and multi-head setup.
There's river which is an automatic twm and wayfire which has the composition effect you want. Still not both tho.
The only issues I had were few games and F@H crashing my system, which looked like graphics stack corruption, other than that sway works way better than i3 IMHO.. as soon as I find a culprit and a solution in getting back to sway (currently testing on both i3/sway)
I'll never go back to X on my laptop. The overall experience is so much smoother but I still occasionally need to log into an X session on my Desktop because something doesn't work on Wayland. It doesn't happen often like game launchers refusing to behave.
If you use gnome then use wayland without fear .
If i3 then use its drop in replacement sway without fear
Anything else and you have to use it with fear of whole sessions crash.
Still on X because I’m lazy.
Still too much issues with Wayland imo
What issues are you referring to? I use Wayland, and don't have any issues. I do have to use Xwayland for maybe one or two programs, but in general don't have any issues.
That depends on what you use, some things are ready, others aren't. I had no issue with Gnome on Wayland but switching to KDE I had to switch back to X as there were a lot of issues. Although I haven't tried again recently, if this page is to be believed there are still a number of showstoppers to fix.