16 ms·
Wayland is not ready as a 1:1 compatible Xorg replacement just yet
- jhoechtl 6y agoOctober 2020.
- robert_foss 6y agoThis is pretty FUD-y. Yes, some software will need to be updated, and no there's nothing preventing this functionality in Wayland.
- edent 6y agoThis is completely the opposite of my experience. I've been running Wayland on Pop OS since last year and it has been great. X11 had horrible tearing on external rotated screens - Wayland fixed that. Colour temperature changing works. Screensharing works just fine on Chrome and Firefox. I use it every day. Screen recording works with Gnome's built in recorder. I'm sure there are a few esoteric bits which don't work - but I've had nothing but success with it.
- axlee 6y agoDid you manage to get screensharing working with Slack on Wayland? Did you manage to setup more than 1 monitor to run on various (an sometimes very different) dpi settings?
- skyfaller 6y agoI've found it very difficult to make screensharing work at all in Wayland. On the other hand, the reason I switched to Wayland was that I wasn't able to get multiple monitors with different pixel densities working in Xorg. That works fine in Wayland, and since one of my monitors was unusable without being able to choose different pixel densities for each monitor, Wayland it is. If it matters, I'm using Pop OS on a System76 Thelio.
- edent 6y agoI don't use Slack for that, but it works on Zoom, Teams, and Meet. So I suspect it works. I have set up fractional scaling of different fractions on all three of my screens. No issues on Wayland.
- normaler 6y agoThe biggest issue with slack and wayland is due to Slack running via Xwayland (so not wayland native). When electron 12 is released and slack will be build using it, it will be possible to use slack as a native wayland application and then screensharing should work.
- cycomanic 6y agoOne of the things I noticed with fractional scaling on my 4K monitor that video playback occasionally looks choppy, which is slightly annoying because I don't want integer scaling because my other monitor is a factor of about 1.4 off. That never worked under X11 either so not a problem with wayland, just it would be nice to find a solution.
- canofbars 6y agoYou could try it in chrome which has wayland support. Wayland support was added to chrome and electron recently but it looks like most electron apps are on old versions.
- izacus 6y agoNot to mention that mixed DPI screens work! I'm using Ubuntu 20.04 on an XPS13 and can finally have different scaling factors between the internal HiDPI screen and external normal DPI screen without awful issues.
- LeonM 6y agoHoly sh... I've been battling this for YEARS now on X11. I'll try Wayland and see if it's better
- michaelmrose 6y agoIf that doesn't why not get all high dpi hardware
- canofbars 6y agoFor me I have a 60fps 4k monitor and a 1080p monitor. I want a higher refresh rate monitor for gaming but I do not want to drop down to 1440p on my main monitor so I am waiting for 4k high refresh rate monitors to become affordable. Wayland makes it possible to wait that out and doesn't break anything I do.
- sammorrowdrums 6y agoSometimes you plug into monitors that you don't own. Some monitors also have unusual dpi where they are HiPDI but don't suit 2x UI scaling. A very popular LG USB-C 4K monitor is in that camp.
- izacus 6y agoMy external monitor is 3440x1440. Equivalent HiDPI monitors didn't exist. Perhaps maybe they do now, but the pricing would be prohibitive.
- scatters 6y agoMy 3840x2160 external monitor has a pixel density of approx. 275 ppi. IIRC it cost approx. $300, not exactly prohibitive.
- GrayShade 6y agoThere's also an OBS branch with Wayland support.
- feelix 6y agoI've had the opposite experience too. I have an Nvidia linux card and Wayland on Fedora has always worked very well for me. In comparison Xorg on Ubuntu was a nightmare on the same machine
- 2pEXgD0fZ5cF 6y agoSame here, I am using Sway WM on top of Wayland as my daily driver both at home and at work since early 2020. So far I am not really missing anything from xorg after all the horror stories that kept me from giving it an honest try earlier. This is of course a personal experience and I don't doubt there are things that might break, but I haven't encountered them and I'm very happy with Wayland.
- ducktective 6y agoAs always is the case with Linux, it's about this "esoteric bits" that are actually not "esoteric" nor "bits" depending on the user's workflow...
- ekianjo 6y ago> Firefox Firefox is quite buggy on Wayland, you need to set up some environment flags before launching it, and there's a trove of bugs still open for it. https://bugzilla.mozilla.org/show_bug.cgi?id=635134 https://bugzilla.mozilla.org/show_bug.cgi?id=635134 > I'm sure there are a few esoteric bits which don't work Like cut and paste between different kind of applications, which is an horrible user experience tbh.
- the_duke 6y agoThe only env var you have to set is MOZ_ENABLE_WAYLAND=1. You will probably also want to force enable webrender (gfx.webrender.all = true in about:config), which still isn't on by default apparently. I've used this for more than a year on Sway. Recently I had some issues with addon dialogues , but mostly it's been running just fine and with best in class performance, very noticeably faster than Chrome.
- edent 6y agoSorry, that's not my experience. I installed FF and launched it. No fiddling required. Everything works.
- mgbmtl 6y agoI think it's mostly buggy when using an external monitor with a different DPI (internal 4k with an external 1080p, in my case). With the environment flag, it works pretty well. On Gnome, plugins can cause issues. hidetopbar, for example, had an issue with Firefox when the screens are stacked vertically.
- magnusmorton 6y agoFirefox has just been updated to fix copy and paste issues on wayland, apparently
- xyzal 6y agoThe clipboard issue was the bug that forced me to switch back to X11. I need to have a Windows VM running constantly due to some proprietary software at work, and copying/pasting text under wayland between the VM and linux almost never works as expected.
- jcelerier 6y ago> Screen recording works with Gnome's built in recorder. okay, but what if I don't like gnome ? e.g. I had to record a screencap of a bug of a software (that, uh, occurs only under wayland) so I went under weston and, well apparently there is also a screen capture tool but it is incompatible. On X11 I use simplescreenrecorder no matter the desktop (I mostly use i3wm or KDE Plasma depending on the circumstances). Also what's the way to set a different keymap, that would work for any wayland compositor ? `setxkbmap` used to work but doesn't anymore and this is fairly frustrating and I really really don't want to have to learn one command per compositor. Moving windows (or even the mouse cursor) also feels absolutely sluggish on wayland, like the frame rate is halved. X11 / i3 : https://streamable.com/fo8ixw https://streamable.com/fo8ixw weston-eglstream : https://streamable.com/wmp6vy https://streamable.com/wmp6vy Also switching in/out from a wayland tty apparently gets it stuck here. etc etc... it's just painful from start to end
- roblabla 6y ago> okay, but what if I don't like gnome ? Under X11, the screen capture and recording doesn't work when one of my screen is scaled and rotated. The capture will turn entirely black, even when capturing on my other screens. If I want to capture something, I need to unplug that monitor (or change my xrandr settings to put it back to horizontal). Works just fine under Wayland with Sway. Improvements in X11 break software all the time too. It's not a wayland thing.
- WhyNotHugo 6y agoThere's also screen recorders for sway (which I guess you'd be using if you're currently an i3 user).
- adrusi 6y agoScreen recording was something that couldn't just be copied over from X when building wayland, because the way X does it lets any application just read any visible data from any other application with a window open. Avoiding that kind of security hole was one of the main goals of Wayland. So it took a while for screen capture to work on Wayland. I agree that it was questionable for distros like Fedora to move to Wayland before such a critical feature was working, but now it works. Because Wayland is a protocol with no canonical implementation, it is going to take a bit of time for all compositors to implement the new standard for screen capture. But gnome has implemented it, so has wlroots, and I assume KDE has or soon will. Weston is a toy compositor, not intended for serious use, so it's not surprising if it lags behind.
- baybal2 6y ago> Colour temperature changing works. And so it on X11.
- eptcyka 6y ago> Err. What? I don't want Wayland. I want Xorg. But thanks for your comment. The glove is on the ground, Xorg is getting abandoned, anyone who needs Xorg in their life can take up the mantel and continue developing and maintaining it. I for one prefer Wayland since it has an architecture that allows for security (not that the protocol enforces security by default).
- Deukhoofd 6y agoNot a big fan of the hostility in the text and the comments under it. Wayland does indeed break compatibility at points with X, but I still believe it's a good way forward. I'm personally holding off on switching over until the desktop environment I use(KDE) says they fully support it, and that it's stable, but I don't really see the need to be this aggressive about it.
- _a1_ 6y agoWayland doesn't even work for me, so I guess I don't have such problems. I'm not really into the actual arguments between NVidia and Wayland folks, but I suspect it's something like "they don't want to bow to us, therefore we don't want to work with them" from both sides. Like a kindergarten ;)
- cies 6y agoOnly Nvidia has a history of being uncollaborative to open source: https://www.google.com/search?channel=fs&client=ubuntu&q=linus+nvidia https://www.google.com/search?channel=fs&client=ubuntu&q=lin... At some point, even in kindergarten, some kid's just being an ass.
- _a1_ 6y agoThat's part of what I'm talking about. Giving a 'f you' sign on a public conference is not professional at all. I mean I know that it's Linus who did it, and we all like Linus, so we give him a free pass with his sh-ttalk, at the same time when we would condemn anyone else who uses such rhetoric who isn't Linus, but in closed-source software development world such clashes happen all the time, each month. Whether a software project in such environment is a success or failure depends on whether people will get along with each other, or not. In case of Nvidia/Wayland I think that simply people just don't want to get along each other.
- cies 6y agoYeah when two parties fights, two are to blame. /s Sorry, I'm picking sides here. :)
- dbrgn 6y agoIt's more like "Nvidia claims they support a certain API, but it's utterly broken, and developers are rightfully fed up with that".
- p_l 6y agoHaving talked with some multimedia developers, EGLStreams is actually the better API, but it's nVidia's and thus disliked, whereas the other side wants you to use DRM-specific buffer sharing mechanisms... which won't work for non-DRM driver like nVidia (and then there's IIRC some licensing issues that mean nVidia can't use DRM, and so on).
- hendry 6y agoThere must be a name for this phenomenon where an upgrade breaks most things. Haha. Reinvention?
- enriquto 6y agoCascade of Attention-Deficit Teenagers. Instead of solving a bug, rewrite everything from scratch and close all the bug reports of the previous, now obsolete, system. Wayland is a clear-cut example of that. Oh, mixed-resolution does not work well in X? Alright, let's rewrite everything from scratch. Of course, new bugs will appear, but then you can iterate the process to close them!
- canofbars 6y agoWayland already provides a less buggy and more polished experience than X did for me. So I'd say job well done.
- nkuttler 6y agoAs long as there are no replacements for tools like wmctrl and xdotool Wayland is not in a usable state for me.
- arichard123 6y agoI too use wmctrl daily to organise my windows as I switch between using a larger monitor docked to my laptop, back to my laptop screen. wmctrl allows me to move and resize all my windows as I require, all at once. I would find it very inconvenient not being able to "fix" my window environment easily, which I can with wmctrl.
- benttoothpaste 6y agoFor me it’s x2x. It’s painful to think how many useful tools Wayland is deprecating.
- tjoff 6y agoNot much constructive here... I'm of the opposite opinion. Think twice before doing anything with X as the experience and knowledge you gain will soon be useless. Instead invest in wayland, it works great and will only get better and X will only get worse at this point. The pain points are few but yes, if you must have screen sharing with a particular app that doesn't work with wayland that might be a dealbreaker. If not, no reason to stay with X, pick a time when you are configuring a new computer or whenever it is a good time to make the switch and try it out.
- badjeans 6y ago> soon That's been the sentiment for the past 12 years and X11 still works great and wayland implementations are a buggy, slow, featureless mess.
- tjoff 6y agoThey aren't though. And X is pretty deprecated by now.
- Avamander 6y ago> They aren't though. Remote desktop, game screen recording, screenshots, how do those work?
- tjoff 6y agoAs I said, there are pain points. If you need application X to do Y and it doesn't work in wayland that might be a dealbreaker for you. I'm having no issues with screen recording and screenshots. Haven't attempted nor need remote desktop but know people that do it. Obviously don't have the same breadth of alternatives such as X.
- posix_me_less 6y agoX is not deprecated by the global community at all, only by the few who push Wayland.
- k33n 6y agoWayland fixes tons of security and inefficiency issues. You can also run xwayland, which is a compatibility layer that would fix 99% of the author’s complaints. I’m not sure there’s a legitimate case to be made against Wayland at all. The author seems to have installed it without understanding what it is.
- michaelmrose 6y agoYou have a better chance of being hit by a meteor than falling victim to a compromise that would have been stopped had you only used wayland. Also xwayland is not a fix for any of the issues identified.
- k33n 6y agoThat's not remotely accurate, but thanks for writing!
- michaelmrose 6y agoOk let's address the problems of which you assert 99% can be fixed via xwayland. First problem identified > Wayland breaks screen recording applications Can xwayland fix it? Nope. > Wayland breaks screen sharing applications Can xwayland fix it? Nope. There is very little Linux desktop malware in the wild. What there is would seem to be minimally effected by wayland example https://animajav.us/linux-systems-hiddenwasp-malware-trojan/ https://animajav.us/linux-systems-hiddenwasp-malware-trojan/ Instead of worrying about trying to get the keyboard as a non root user logically one might attack the filesystem or just work on getting root. Linux desktop security vs threats actually already running on the system appear to be more an asperational goal than a reality. At least there are documented cases of meteorites injuring people I can't find Linux malware available in the wild that would be mitigated by wayland.
- GrayShade 6y agoI've been running GNOME Wayland full-time for somr three or four years now. It works just fine, with some small exceptions. AMA.
- mgbmtl 6y agoAny screen recording recommendations? Most I tried didn't work well (just didn't work, or broken keyboard shortcuts). I was a big fan of Kazam and Peek.
- GrayShade 6y agoI'm using an OBS branch (there's an open pull request). I'm not a fan of how it expects me to guess the resolution of the canvas (and in GNOME you can't find out the size of a window), but that's not really the fault of Wayland.
- soenkeliebau 6y agoTotally leaving aside the entire topic of that post, the comments could be used as a textbook case of a toxic "discussion" ... That in itself I think tells more about the state of things around wayland than everything else.
- jchw 6y ago> Wayland solves no issues I have This is a common sentiment, but it is kind of funny. Because software engineers working for companies will know the struggle of trying to justify reducing technical debt, improving security practices, etc. but fail to see why these things are useful to them personally when the tables turn. Wayland indeed “breaks a lot of shit” but it’s not an accident or done due to incompetence. Also, it’s worth noting that since there is not one Wayland server the way there is one Xorg server, that not all of this applies evenly. For example, wlroots-based compositors like Sway do not suffer from the screen recording issues as Sway just supports a permissive screen recording API out of the box. I do think the XDG portal idea is a good idea, though, overall, and that the security improvements will be worth the toil eventually. But more to the point, that the problem is that moving away from Xorg as a display server really needs to happen eventually. The legacy is holding back desktop Linux quite a lot. Issues like supporting modern high DPI displays or multi-GPU setups are ones that Xorg struggles with that Wayland can be made to handle more elegantly (in case of DPI, already does significantly.) It’s not just that. There’s tons of weird old crufty garbage in Xorg. Clipboard is weird. Drag and drop is weird. Wayland is simpler and makes improvements that are welcome, like a good API for keeping window configuration synchronized to help eliminate “imperfect” frames. No doubt there are issues. I have some choice words about the decision of GNOME to push for using dbus to communicate cursor size changes on high DPI setups, and I do not like the way client side decorations are favored in Wayland.
- PurpleFoxy 6y agoThe author obviously hasn’t tried plugging a high dpi monitor in to a laptop if they don’t understand what’s wrong with X. Wayland solves so many of my problems and so far the only thing it breaks is screen capture in electron apps. And not even all electron apps. Discord has no problems.
- enriquto 6y ago> The author obviously hasn’t tried plugging a high dpi monitor in to a laptop if they don’t understand what’s wrong with X This is the only actual, honest, problem that I've ever seen about X. Still, it does not seem a really fundamental problem, it must surely be solvable from within X? Do we really need a full-rewrite of X, unstable, with new bugs and less functionalities? (many of us don't use "desktop" applications and it will break screen capture tools, and other things that are dear to us like xwit, xdotool and the like). Just for that silly mixed-resolution screen problem? I have observed this problem, but to me is a minor, mostly irrelevant nuisance. Losing xwit would be a major problem.
- raverbashing 6y agoThis is a bit blunt, but I'm with the commented who says: > What a surprise. Desktop components requiring X do not work on Wayland. It's as if they're different display server protocol Yes, it's a breaking change. Yes, old software will have problems. But X11/XOrg has run its useful life
- michaelmrose 6y agoIt's not meat in the fridge it doesn't go bad at a certain date. Rhel 8 supports x11 and will be supported until 2029-2031. If they don't excise support by the next major release which is super likely it will end up supporting x11 until 2034-2036
- dbrgn 6y agoThis is absurd. Author claims that "Wayland breaks automation software". They then use the "py37-autokey" tool as an example. Autokey uses Xorg APIs for key handling. Of course this is not going to work on Wayland since it's written for Xorg and not for Wayland. The author is probably the type of person that buys an AMD graphics card, and then complains that AMD "breaks" software that's based on CUDA...
- edflsafoiewq 6y agoIs py37-autokey-for-Wayland possible?
- arghwhat 6y agoYes, officially and well contained mechanisms exist (used for virtual keyboards). Heck, you can even go a layer lower and simulate a keyboard event device, which would work with any window system, past, present and future. Even kmscon.
- deleted 6y ago[deleted]
- Hitton 6y agoThat was just example. Because of Wayland's security model of sandboxing applications, none such tool will work. Currently afaik only way to do something similar is using /dev/uinput as does for instance ydotool, but its capabilities are vastly inferior.
- ddevault 6y agoWhat makes you think uinput is less capable? Ultimately everything that uses input uses uinput, it's the source of truth.
- adrusi 6y agoFor the same reason that it can make sense to say that python is more powerful than C, even though you can obviously do more things with C than with python. Xdotool lets you send keystrokes to a particular window, even if it's not in focus. You can do that with ydotool if you also do some sway IPC, but it's not as convenient, and no one has made a higher-level tool, possibly because it would be a nightmare to make it work with multiple different compositors. Do you know if there's any standardization effort to support xdotool-like functionality over wayland with some kind of actual security model (using ydotool kind of subverts the security improvements wayland offers unless one does more due diligence than is pleasant to do for quick scripts)
- sam_lowry_ 6y agoMy biggest issue with Wayland is how it makes window managers a thing of the past. i3, xmonad, elightenment, ctwm, WindowMaker and dozens of others appeared only because X made it easy. Wayland makes developing window managers difficult again.
- PurpleFoxy 6y agoSway exists (an almost identical i3 clone) and wlroots makes it easy for anyone to make a WM
- michaelmrose 6y agoHaving a singular library is more limiting than X even for a developer of a wm and much more so to user who can no longer merely assemble an environment by setting a list of components to be started by a script.
- majewsky 6y agoThat's exactly how I'm assembling my Sway session. My Sway config ends with `exec systemctl --user start sway-session.target`, and that target links to all the services I want running in my session (redshift, notification daemon, etc.). If you don't like systemd, you can `exec my-session-startup-script.sh` in the exactly same way. The Sway devs maintain a list of common helper applications that work with Sway: https://github.com/swaywm/sway/wiki/i3-Migration-Guide https://github.com/swaywm/sway/wiki/i3-Migration-Guide
- michaelmrose 6y agoUser services only really make sense for user stuff that requires more complex set up and tear down than start foo and kill it when I log out. Creating a user service per single line exec foo is extra ceremony. I have nvidia hardware so sway makes no sense for me to use. Also it's developer is extremely abrasive. Furthermore a lot on that list isn't an even trade. ydotool is a poor unmaintained replacement, making your own custom layout is a lot more work than xmodmap. On net if you don't have mixed dpi so far as I can see you aren't actually gaining anything. The best sales pitches I've seen are almost as good as what you already have but on wayland. Is there anyway that sway does better than i3?
- 01acheru 6y agoI think Wayland is a nice way forward from X, right now it's still not a replacement because of how central X is and how much stuff interfaces with it specifically or make assumptions about X features. (and so indeed, Wayland kind of breaks "everything") But I also think that they (Wayland) took a way too heavy napalm approach to the solution, almost like they totally ignored how painful such a transition would have been. I still don't get it...
- PurpleFoxy 6y agoYou can quite easily be using wayland right now and not even notice it. It’s even the default on some distros now. Basically the only things holding it back are proprietary screen capture tools and nvidia.
- 01acheru 6y agoI'm not saying you cannot use it, in fact I use it (with minor hassles here and there) But this last step is taking ages, what I don't understand is why it had to be such a painful process without a migration path (hence we are still talking about it and the transition still didn't happen)
- GekkePrutser 6y agoI really miss the network transparency in Wayland. Just being able to start a program on another machine through an SSH session is so useful. You can use something like vnc but a "whole desktop in a window" is slower and not as handy. I'm on freebsd mostly anyway which isn't big on the Wayland train so I'm fine for now. But it would be great if X11 development would be continued.
- nullifidian 6y agoWindows subsystem for linux literally uses RDP and wayland for single windows as its graphics subsystem. Single windows aren't a problem and "network transparency" through remote procedure calls is just anachronistic, and will never support things like animations, 3d, or video.
- Redoubts 6y ago> You can use something like vnc but a "whole desktop in a window" is slower Really? I’ve found x-forwarding much slower and annoying unless the host is on a LAN.
- zbuf 6y agoI think you've probably answered the question there; there are a lot of hosts on my LAN. X works great.
- GekkePrutser 6y agoYeah even on my cloud boxes it works great. They are physically close though. Ideally if X was still maintained they could incorporate some of the old freeNX / X2go logic that makes it more robust against latency. But I think this usecase is becoming more important again. In the early days of X it was great because we were all using terminals on single powerful machines. Then we moved to desktop and transparency was less of a thing. But now we're moving more and more towards cloud computing again which is not all that different from the old client/server model. At least not in the sense of having a separation between compute and I/O.
- 6y ago
- didymospl 6y agoA few months ago I came back to Arch with Gnome and Wayland after several years with Mac. Sadly, default Gnome installation is way less functional now than it used to be back then. Screen sharing doesn't work in Skype and Slack because of Wayland. Apparently Zoom circumvents this by making a series of screenshots. Systray is missing and most of extensions that promise to restore it don't work. Some parts of UI(e.g. weather widget) relies on emojis that are not installed by default. I understand that sometimes you need to break stuff in order to move forward but I think this has gone too far already. (I ended up with X11/Cinnamon)
- timbit42 6y agoYou could try MATE, which is a fork of GNOME 2. For a lightweight desktop, I prefer XFCE. For full-featured, I prefer KDE.
- DavidPiper 6y agoThere might be some good stuff here for Wayland devs, but otherwise seems to be mostly the usual dumpster fire (good for for roasting popcorn, though). Stopped reading at this gem from the OP a long way down: > For all the Wayland proponents here, why argue in places like this, wouldn't it be a better use of your time to send PRs to fix things like MaartenBaert/ssr#431 and vkohaupt/vokoscreenNG#51. Time perhaps to invoke Teddy Roosevelt: "It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming; but who does actually strive to do the deeds; who knows great enthusiasms, the great devotions; who spends himself in a worthy cause; who at the best knows in the end the triumph of high achievement, and who at the worst, if he fails, at least fails while daring greatly, so that his place shall never be with those cold and timid souls who neither know victory nor defeat." Hats off to the Wayland devs. We're cheering you from the sidelines.
- canofbars 6y ago>Hats off to the Wayland devs. We're cheering you from the sidelines. Its pretty horrible how much toxic crap gets directed at the people who actually do all of the work. Just look at the amount of abuse has been flung at the SystemD developers from people who largely do not even know what it does.
- Jkvngt 6y agoThen again, mocking and taunting people for using X11, which works great for most people, repeating all over every social media outlet that “X11 is dead use Wayland LOL,” giggling about how once IBM pulls its developers from X11 that “nyaaa nyaaaaahhhhh you’ll have no choice” and other poor marketing decisions, apparently conceived by obnoxious children, have convinced many people to NEVER touch Wayland with a ten foot pole. It’s like the System D shills - they are HYPER obnoxious. I don’t need software made inside IBM, and I don’t need software which apparently can only gain adoption by obnoxious bullying. It’s too late for Wayland, much like it’s too late for System D. The hyper childish bullshit chased me, and many others, away.
- roenxi 6y agoWayland represents an interesting and possibly classic software situation - a beautiful standard has been developed. It blocks the user from using a screenshot application in the name of security. Now when the standard gets rolled out kludge will be developed to allow users to still take screenshots. The beauty of the standard will be compromised or everyone will spend a bunch of time pretending the kludge isn't de-facto part of the standard. Wayland's model of user security was a mistake if the goal was getting typical users to use it. It isn't secure, it just means screenshots will be done with a kludge. I think literally everyone I know who owns a computing device (I'm counting phones and tablets) wants to be able to take screen captures to show people things.
- nly 6y agoTaking your example of screenshots... I don't think there's an 'official'/defacto Wayland protocol for that. Under GNOME Shell you can use the org.gnome.Shell.Screenshot dbus API, but under KDE you presumably have to use something else. It is pretty grim.
- gggtt 6y agoAll major distros seem to have agreed on Flatpak/Freedesktop Portal dbus APIs. For eg, for screenshot : https://docs.flatpak.org/en/latest/portal-api-reference.html#gdbus-org.freedesktop.portal.Screenshot https://docs.flatpak.org/en/latest/portal-api-reference.html... There are still apps using legacy gnome/kde specific APIs, but, from what I understand, in the future Flatpak APIs are becoming the defacto standard
- nly 6y agoThese are dbus APIs though, not wayland protocol specifications that you can call with libwayland's RPC mechanism. On the one hand this means you can support both X11 and Wayland with a single API from a client perspective, on the other you have to use DBus, which is horrendous to use (especially from statically typed languages). It also doesn't seem to work on my XFCE/X11 desktop, which shows what fragmentation we have now.
- dontbesquare 6y agoWe all saw this coming.
- rvz 6y agoAnd someone provoked and kicked the hornets nest. Hence the comments on both in the Github gist and subsequently HN. Shame on those who speak / think ill of Wayland. /s
- that_guy_iain 6y agoHonestly this sort of stuff is why using Linux as a desktop is actually super painful. 99% of the issues I suffer on my desktop I wouldn't suffer if I was using Windows or Mac. And all the reasons why I use linux are development reasons, container support is built in where on other os' it's virtualised, performance is faster on Linux than Macs, the CLI terminal application is better than on Windows, etc. If the CLI terminals improved on Windows that they could compete with any of the Linux ones, I would probably switch to Windows since it's now got a ubuntu compatibility layer.
- fabioborellini 6y agoI can no longer use Linux on desktop due to Xorg's lousy DPI scaling support and tearing. Let's face the fact that most laptops are currently HiDPI, modern external displays are too, and neither 1x nor 2x scaling is tolerable with most of them. Unfortunately my video card does not really work with Wayland. I have never had this serious hardware issues with Linux since 2002. Xorg got outdated but the replacements are not here yet.
- posix_me_less 6y agoWhat does "lousy DPI scaling support" mean? You can configure this in desktop environment, e.g. in Xfce Menu/Settings/Appearance/Fonts/DPI.
- fabioborellini 6y agoI mean display scaling settings that are especially useful for laptops with high-DPI screens. The desktop environments do have settings for scaling all the elements (not only fonts) but when running on Xorg, the alternatives in the DE are 1x, 2x and 4x, while many present-day configurations would require fractional scaling (like 1.5x) to be usable. I have a 27-inch 3840x2160 display which I cannot use without scaling, since the UI elements get too small for my eyesight, and scaling everything 2x (effectively 1920x1080) kind of voids the purpose of buying a 27-inch display since the usable screen estate is downgraded to something typical for 23-inch screens. Our laptop has 13-inch screen with 1920x1080 resolution - again not usable without scaling and a disaster with 2x scaling (960x540). Windows is offering very convenient 150% and 125% scaling options on these pieces of hardware, so I had to migrate my professional work to WSL unitl updating to Radeon and Wayland.
- chrismsimpson 6y agoThe industry has spoken. X as an architecture is broken and should be abandoned.
- expenses2 6y agoseems to work well enough for me
- Havoc 6y agoI mean moving away from something that has like a decade of polish to something freshly minted was always going to involve significant pain.
- hyperman1 6y agoWhile I am not the biggest fan of Wayland and understand the author, this link in the comments gives some reasonable responses/rebuttals: https://refi64.com/posts/dont-boycott-wayland.html https://refi64.com/posts/dont-boycott-wayland.html They seem to point to https://pipewire.org/ https://pipewire.org/ for screen recording. I don't know how well that works out in practice and if there are other solutions for automation
- grandinj 6y agoNot sure about screen-recording, but for screen-sharing purposes, it breaks frequently (as in, every couple of months). Which is not surprising, because pipewire, too, decided to start from from scratch instead of working inside gstreamer.
- noobermin 6y agoits amazing anything works in linux given this attitude towards stable code
- h_anna_h 6y agoKinda offtopic but do steam, gog games, and wine games work on wayland well? What about things like obs?
- steerablesafe 6y agoIt's very on-topic. In my experience no, they don't work as well as on Xorg. There was even a bug in Gnome's compositor too for batching input events at screen refresh intervals, which also makes fast-paced games less playable, even if they are native Wayland (not many of those, I believe).
- steerablesafe 6y agoI don't get why everyone gets so defensive for Wayland. It's a fact that a lot of things still do break for users if they switch, without existing alternatives or workarounds. Yes, Xorg is now legacy, outdated, insecure, and does too much. But what wayland did was to replaced one functionality of Xorg, without offering alternatives to other functionalities. Which is good, I guess, it has a clear and focused responsibility. But now compositors are responsible for other functionalities and they seem to be doing things in their own way. Which is also good, I guess, they explore the design space and then they can gravitate to a standardized way of doing things later. But it's more than a decade now, many things seem to be stuck in the "exploring design space" phase, so it's understandable if some users are impatient. Yes, it's free software without warranties, it doesn't mean immunity from criticism though. I also get performance regressions in wine games on xwayland, didn't try wine-wayland yet though. But many games I play will never move from X.
- Deukhoofd 6y agoPeople get defensive for Wayland due to the tone of the article. Sentences like "Let Wayland not destroy everything and then have other people fix the damage it caused" sound extremely hostile, making people who disagree immediately defensive.
- steerablesafe 6y agoPeople get defensive for Wayland whenever it comes up. While I don't agree with the tone of the article, the author brings up valid points (mostly in the comments though). Also I believe the problem is not Wayland. It's the lack of other standard protocols on top of it that are required for application developers to not chase ad-hoc, desktop environment dependent protocols for basic needs like screen sharing. The issues are probably political rather than technical, and the solution is coordination between the desktop environment implementers to use the same standards and provide common interfaces for application developers.
- TwoNineFive 6y ago>I don't get why everyone gets so defensive for Wayland Red Hat blogger marketing budget.
- javchz 6y agoI love wayland in old laptops, specially the ones with an week iGPU, as it's a lot faster than Xorg, only being a problem with a few specific programs like OBS Studio. But.. in desktop I use a Nvidia card, and for business shenanigans the drivers are not compatible with wayland, and Xorg it's ok but there are some features I miss, like fractional scaling in Gnome 3. Right now I can see wayland as great alternative for casual users, that mostly use a web browser and require a fast solution that it's good enough, but I don't see it as a full replacement yet, and god knows if will ever be. The problem it's that despite being old Xorg it's great too, and the benefits for wayland are there, but maybe not enough for a full migration from all developers.
- AshamedCaptain 6y agoIt is trivial to write a desktop-agnostic screengrabber program in X11, but impossible to do that in any Wayland-like display server since by definition you need to integrate it with your display server (e.g. Gnome's, KDE's, etc.). Also for example Gnome's Wayland display server integrates a shitton of garbage into the display server process itself (e.g. a Javascript interpreter), and a crash in any of that code brings down the entire display server with all your windows.
- trepatudo 6y agoI've been using sway for more than an year but recently got an issue where all QT applications randomly close and can no longer start until I restart sway. The screen sharing works fine with xdg-desktop-portal-wlr and with Fedora moving fully into pipewire I'd expect things to get even more stable under wayland. One thing I'm missing is a decent screen recorder (gif/mp4). For screenshots one can use swappy, it works perfectly.
- tkubacki 6y agoMoving from X will be painfull. I remember that first non X Server OSX versions were buggy as hell...
- p_l 6y agoOSX never used X server, AFAIK. DPS was available as extension on X11, but it wasn't the same implementation as on NeXTSTEP, where AFAIK even the old 0.8 code already used Mach IPC for communication with window server.
- nly 6y agoI have a high tolerance of stuff breaking... even now my mid-2020 release laptop requires a custom built kernel because the latest kernel (5.10.12) doesn't support the WiFi 6 chip properly. Ultimately the reason why I won't adopt Wayland is that I use XFCE, and XFCE doesn't support it.
- xyproto 6y ago> DO NOT INSTALL WAYLAND! Wayland is a protocol, and wayland-related libraries are probably needed even if you just use X.
- normaler 6y agoA great tool for screen recording with wl-roots is wf-recorder (https://github.com/ammen99/wf-recorder https://github.com/ammen99/wf-recorder) for example: wf-recorder --audio -f video_$(date +%F).mp4 --geometry $(slurp) lets me select a region of my screen via slurp and then records my microphone and the screen area to the specified file.
- WhyNotHugo 6y agoWhat a bunch of FUD! I picked one a few of those issues at random, and they're entirely out of context and deliberately misrepresented. For example, some Jitsi bugs are closed as "we can't fix this", and it's because the issue was a Firefox bug (hence, Jitsi devs could do nothing). Also Firefox did actually fix that. So, not only is the context wrong, the issue is actually solved. Also, I used Jitsi and screen sharing on sway several times a week - works like a charm. I've looked at a few examples, and they seem to most be misrepresented the same way.
- paulsmal 6y agoThe only thing that holds me back from running my Gnome DE in Wayand is that as of version 88 Google Chrome now supports hardware acceleration. But only for X11.
- xyproto 6y agoWant to see a great example of a Linux distro that doesn't use X and is quite popular? Android.
- knlje 6y agoI wasn't even sure which of them I'm running even though I've been remote teaching for almost a year, i.e. frequently sharing my screen: > [user@laptop:~]$ echo $XDG_SESSION_TYPE > wayland Apparently it's not as bad as it seems! However, now that I think of it, I haven't been able to share the entire screen and must add one application at a time to OBS. Maybe I've gotten used to this. At least I won't accidentally show something that I'm not supposed to.
- gspr 6y agoIf you're using a wlroots compositor, then a workaround for sharing the whole screen is to use wf-recorder [1], which supports capturing the whole screen, and feeding its output to a virtual V4L2 device using v4l2loopback [2]. Software that is able to capture from a V4L2-compatible webcam (i.e. most) can them capture from the virtual device without knowing anything about Wayland. It's not exactly the most CPU-efficient way of doing things, but if you can afford the cycles it works very well! [1] https://github.com/ammen99/wf-recorder https://github.com/ammen99/wf-recorder [2] https://github.com/umlaeute/v4l2loopback https://github.com/umlaeute/v4l2loopback
- knlje 6y agoThanks for the hint, I'll check it out. I'm using v4l2loopback already for feeding OBS output to Teams/Zoom so I'm familiar with the process.
- deleted 6y ago[deleted]
- teekert 6y agoSo funny to read "Wayland breaks everything", yet I run it everyday (on Ubuntu), it solved my screen tearing and other than that I only switch to X for my sons Minecraft. For me it didn't "break everything" in fact, it fixed something for me. Moreover, it seems to be more secure (which is of course something you only notice by things not happening). So such a title does not really make me want to read what is probably an emotional rant. Edit: I see the title just changed, anyway, I think most people realize it's not 1:1 with X, which is why Canonical makes X defaults and allows me to choose easily. At some point though it will be nice, I for one like the promises of PipeWire. Why is there so much emotion involved with such projects anyway?
- rwmj 6y ago"screen tearing" is this thing which is always rolled out to defend Wayland, and I use X all the time and have never worried about this as a problem (even assuming I understand what the problem is). Maybe my eyes are too slow to see this or something. To throw away everything to get this imaginary benefit seems pretty strange to me.
- teekert 6y agoWatching any video under X is really horrible for me. May depend on settings/hardware?
- rwmj 6y agoI watch videos all the time under X without apparent issues. Maybe VLC works around it somehow?
- posix_me_less 6y agoI think it is a matter of proper GPU driver support + correct configuration and people mistakenly attribute all bad to Xorg. My polaris AMD cards have perfect tear-free video, but with intel I had problems/difficulties to configure tear-free behaviour.
- pmontra 6y agoI think I'll wait until every screen sharing, video calling application I use will work with Wayland. Pasting selected text with middle button is also very important to me (huge time saver) and it seems not to work with Wayland yet.
- p_l 6y agoBasic things like embedding windows (and thus classic, non-remote-puppet-over-dbus) systrays are impossible, which funnily enough break things like signing my tax forms with digital signature...
- bkor 6y agoThat can be done using subsurfaces, see https://wayland-book.com/surfaces-in-depth/subsurfaces.html https://wayland-book.com/surfaces-in-depth/subsurfaces.html.
- peter_retief 6y agoWayland came with Fedora that I used as a desktop for a year or so, it was really good and nothing broke that I am aware of.
- nullifidian 6y agoThe problem with wayland is simply underinvestment. https://gitlab.freedesktop.org/pq https://gitlab.freedesktop.org/pq This person is probably responsible for most of the commits and PR reviews. Everything happens at a snail's pace.
- franga2000 6y agoAll the things that were mentioned are annoying, but multi-touch works properly, animations are smoother and I get no screen tearing, even on a multi-GPU setup. It's almost like different people have different priorities, who could've though?
- bionade24 6y agoThe author seems to have way to little knowledge about wayland. It's okay to say I use Xorg bc it's not ready for my usecase yet but spreading this whole GNOME FUD makes this more spam than anything else. I can't take this serious at all.
- littlestymaar 6y agoI don't really understand why such a title has been chosen for HN. Granted, the original one is inflammatory, but this one is just wrong: there is no “Yet”, Wayland will never be a 1:1 compatible Xorg replacement, and is not intended to be. Wayland has a different approach when it comes to security, which makes it much less flexible in order to increase user security. It has evolved a in way to allow as much legit things as possible, but it will never be 100% compatible with what Xorg offered, by design!
- sokoloff 6y agoReading the discussion/yelling on that issue makes me treasure the discussions on HN even more.
- FloatArtifact 6y agoOne of my main gripes unfortunately Wayland does not function very well with accessibility software. Areas include but not limited to : -simulated keyboard/mouse input (some progress recently with some composers) ability to inspect window attributes (e.g. window title, executable and handle) ability to manipulate windows (e.g. maximise, close, etc) So just as with automation software this has significant impact on accessibility. The current composers available provide very limited functionality. Not to mention there are many different composers that would have to be supported to make many different system configurations accessible.
- mercurywells 6y agoIs Wayland ready for virtual desktops (remote VNC, etc)?
- zbuf 6y agoNobody has said it, but it seems we are reaching a fork in the desktop? For users, not 'right' and 'wrong' here, just two groups whose goals differ. Those supporting X.org are using X very much in the spirit of it; custom window managers, network transparency, and possibly bitmapped fonts, BSDs. And those in support of Wayland have arrived there via Linux with eg. GNOME and dominated by GTK and QT desktop apps; looking for an open-source offering with the same functionality as Mac and Windows desktop. Really, this has been brewing for a while. It's been a fluke that the underlying X has allowed these two groups to co-exist.
- swiley 6y agoOne more nice thing about X that people sometimes miss is that you can turn off compositing (this is the default really.) Lots of people say Wayland feels "sluggish" and this is likely a major contributor to that. Especially if you don't have hardware acceleration (and there are a huge number of reasons why that might not be working.) Wayland solves a lot of problems by deciding to just not handle things but we have to recognize that taking that position sacrifices things.
- zbuf 6y agoYes, I am also not using compositing, which I always assumed means apps render direct to the framebuffer. Does this mean that moving to Wayland (or its implemenation) is going to add 1 or more frames of delay to my output? This could be a part of why I have always found other modern systems to be less snappy than my own X desktop.
- HeckFeck 6y agoWouldn't it be possible to write Wayland in such a way that it is similar and familiar to Xorg, so porting Linux GUI applications is easy? Or is the API already familiar enough that this is already possible? Surely it's possible to write a modern display stack while preserving the rich legacy of applications, toolkits, window managers. I would certainly like proper isolation of input, and better support for HiDPI and even locking. But I would certainly miss Xscreensaver and Fluxbox, and even random applications like Asunder or Suckless Terminal. Though I admit that I'm speaking from a position of ignorance, having only ever written in C/SDL for anything graphical on *nix. PS: Now the possibility of porting Fluxbox to Wayland is beckoning me. Could such a mad thing be attempted?
- zbuf 6y agoIs there a "rootless" implementation of Wayland compositor for X? If Wayland is just the protocol, this should be very possible; and perhaps it would have eased some of this transition.
- turminal 6y agoThis is so incredibly bad faith based. I have used wayland on my main computer for the last 3 years and the amount of GNOME-centricness is entirely choice based, there are lots of other options. There are items on those lists that have been long fixed, it's just that X tools don't work on wayland. One has to employ wayland tools. This is like saying "I can't use x86 assembler for arm processors therefore arm is useless". A new technology requires new tools (a different assembler in this example). Some tools are already present in wayland world (like redshift replacement) and some still have to be developed. Instead of whining the author could perhaps contribute to that effort and make wayland a better place.
- deleted 6y ago[deleted]
- mhsabbagh 6y agoAs the developer of Green Recorder [1], the second example referred to in this page, I have to say that it sounds my abandonment statement is taken out of context. In order to support recording on different Wayland compositors (without having to develop tons of other middle layers by yourself), one would need to simply activate their built-in screencasting tool according the specified user settings. This took me a bit of time to figure out for GNOME, and I had to fill a bug-report to speak to one of the compositor developers to understand how to do that, as no documentation was available at all. Even so, some hidden bugs appeared (Quality wasn't too good, audio had to be recorded separately over ffmpeg, and then both audio and video had to be merged together in one file, V9 had a bug that consumes 100% of CPU on some hardware, so we had to use V8 by default... etc). In order to go further, I had to do the same thing for KWin on Wayland, Sway and other compositors out there in the market and then integrate them into my program. I had to find some workarounds for any bugs that may occur. Later on, some changes for ffmpeg API broke the Xorg recording (Green Recorder used ffmpeg to record on all desktop environments on Xorg), so I had to do more testing now for multiple versions of ffmpeg and on which distro do they work and don't work. So I just gave up, as I simply didn't find any particular reason to continue doing that since the only amount of support I received on my then-opened Patreon was $20 per month at its max. But it shouldn't be said that Wayland can not support screencasting or that it breaks screencasting. It is possible, and the previously mentioned issues are actually on the compositors' developers side, not the protocol. 1: https://github.com/mhsabbagh/green-recorder https://github.com/mhsabbagh/green-recorder
- CoffeeDregs 6y agoJust in case someone RTFA and gets worried: this is breathless FUD and could be handled much more usefully in some other fashion that invites discussion of pros/cons (such as is happening on HN but I doubt the gist will be updated...). Wayland is an 0.99:1.00 replacement for x11. I would appreciate a succinct "Wayland changed X, Y and Z and that will affect applications A, B, C" but TFA isn't that. Much like systemd, Wayland sounded as though it might have some serious wrinkles but those, as with systemd, never really materialized for me (a power user on a powerful machine). Most issues I experienced were transient as applications caught up with the switch (mostly screen sharing). Even though it's not too important to me, games (wine and native) are working better than ever on Linux (and Wayland). I think the two persistent "issues" I've seen are: graphical ssh (X-over-ssh); and, maybe, others screen drawing on my screen in Slack calls. I trust the arguments from the x11/Wayland developers and, AFAICT, Wayland has been a Good Thing but some eggs were broken to make the omelette...
- ColonelPhantom 6y agoNot so long ago, I had to use screensharing from Chromium, which I tried from Fedora (I think 31 or 32, it was less than a year ago). It didn't work; all I got was a blank screen. Logging out and back in to Xorg fixed it. That convinced me that, at least at that moment, Wayland was simply not ready. Apart from that, I depend quite a lot on things like xdotool, for which I'm not aware of a (generic) Wayland alternative. If these issues are solved, I may try it again, but overall I'm pretty sceptical; around mid-2019 I tried GNOME on Wayland and there were some pretty wild rendering bugs that I didn't have on Xorg. The compositor being responsible for all rendering also meant that when doing something like opening the app menu, the cursor started lagging, but that's probably more of a GNOME problem, but it still concerns me.
- mehdix 6y agoTL;DR Just played Cyberpunk 2077 with no glich on Sway and Wayland on Arch Linux last night for almost two hours. I am embracing Wayland and wlroot-based desktops. It is simpler, faster, and fits easier in my head. Forgot to mention that I also just got my screensharing working under Wayland with Sway and Chromium for MS Teams (Have not tried with Firefox yet). Works like charm, albat with Pipewire. I have no gdm/GNOME installed. Edit I: Mention the OS. Edit II: Mention screen sharing.
- thekingofravens 6y agoI should say that if you are touchscreen user, wayland solves a lot of problems. I literally can't get touchegg or other crummy solutions to work in xorg for gestures, but in wayland with gnome it just works.
- Jkvngt 6y agoI have no need for it. I also don’t care for IBM / Red Hat’s “viral” marketing, it’s really just terrible shilling. Nobody wants Wayland. Nobody needs it. We are tired of hearing about how IBM will pull its X.org developer - just shit or get off the pot already so a proper fork can be made to continue the work on X.
- michaelmrose 6y agoAnother reason is the extremely toxic response of proponents to legitimate criticism. I'd link what is effectively a response from the primary dev of sway but I think I might get banned for the language.
- AkshitGarg 6y agoNo offense but I personally feel the author is more like against Red Hat than Wayland
- FrozenVoid 6y agoXorg is bad and deprecated but works, same with Firefox extensions. Firefox devs decided to drop old extensions in favor of webextensions, now firefox is at 3.66% marketshare and dropping every month. (I am using Palemoon fork)