6 ms·
I didn't know what Wayland is, but was curious what this article is about. I read the article, and it doesn't explain what Wayland is. So I googled Wayland and
by kruuuder 3y ago
I didn't know what Wayland is, but was curious what this article is about. I read the article, and it doesn't explain what Wayland is. So I googled Wayland and read the start of the Wikipedia page. Ok, so Wayland "is a communication protocol that specifies the communication between a display server and its clients, as well as a C library implementation of that protocol." and so on. Huh. I now know have a very, very vague idea what Wayland is. What does that have to do with a browser? How can Firefox "ship with Wayland"? I think I have learned nothing. I feel stupid. Tech news is weird sometimes.
Edit: Thanks for all the responses. But I'm still not understanding what all this has to do with Firefox. I boot up my linux machine that runs KDE, I launch Firefox and then what? Does this help with something on my local machine? Or does Firefox now provide a UI for remote systems that I SSH into? Whatever Firefox can do now, why should this be a feature of a browser?
Edit 2: Ah, I get it now, Firefox simply renders itself using the Wayland protocol, correct?
- bfdm 3y agoI only know it as the thing that broke all my screen capture tools because none of them had implemented the necessary changes the last time I tried, admittedly small N years ago.
- starttoaster 3y agoThis is how most of us casual linux users learned about Wayland.
- mgbmtl 3y agoTo be fair, for such a huge change to how we use Linux on the desktop, worst things could have happened.
- doublepg23 3y agoYeah while Wayland still has some warts it seems like people say "I don't have proper color management on Wayland" with the same enthusiasm "This GNOME Wayland session crashes on boot" from a nearly a decade ago.
- aidenn0 3y agoThis Plasma Wayland session crashes (in my GPU driver): - 3 years ago - 1 year ago - 6 months ago The biggest issue I have with Wayland is that it requires a lot more out of a GPU than a framebuffer, and my experience with video drivers on Linux is that they are very buggy and not maintained for very long. I have an older computer that I can run Xorg with compositing disabled and firefox with GPU rendering disabled. As far as I can tell I will never be able to run Wayland on it without changing the GPU. Similar issues with some ARM based SBCs; they have varying levels of stability in their graphics acceleration capabilities, and often only on a very old kernel, but I can get a reliable framebuffer on mainline.
- vetinari 3y agoWayland in itself has no special requirements on the GPU; it needs standard kernel support (KMS, dmabuf). EGL is optional, for both compositors and apps. Mutter and Sway can both happily run in QEMU framebuffer.
- FirmwareBurner 3y agoScreen capture works with the built in tools. What isn't guaranteed to work out of the box is screen sharing apps.
- dsr_ 3y agoWayland is a replacement for X11 which is now ten or more years old and still not feature complete. It will be the future of all graphical interfaces, or maybe we will still be running X11 with extensions in 2050.
- vidarh 3y agoI remember when GGI[1] was the future of all graphical interfaces. Remember GGI? 1994-2007 RIP. Wayland looks a bit more likely to achieve its goal, but we'll see. For my part, it'll take a long time yet before it's worth the hassle to consider switching. [1] https://en.wikipedia.org/wiki/General_Graphics_Interface https://en.wikipedia.org/wiki/General_Graphics_Interface
- yobert 3y agoWayland is a piece of the linux desktop software stack. If you're on a Mac or Windows, it won't mean anything to you. Linux historically has used X11 for drawing the desktop. Wayland is a replacement for X11. It's big news because it's been a long time coming, and fixes a lot of longstanding issues. Unfortunately it also creates some new issues (screen sharing, hot key apps, etc), but they're being actively worked on and are very close to being completely solved.
- debugnik 3y ago> it also creates some new issues (screen sharing, hot key apps, etc), but they're being actively worked on and are very close to being completely solved. I swear I've been reading this for a decade.
- vetinari 3y agoScreen sharing has been solved for years. Just some apps didn't bother with updating.
- kiwijamo 3y agoTo offer the opposite viewpoint, I swear I've been reading for decades that X11 would fix old issues. My last experience of X11 (less than a decade ago) had me using vi to edit a configuration file to add a line of text to enable some sort of magical feature to stop screen tearing. I've been using BSD/Linux since the late '90's and this issue has persisted for over 25 years. Wayland meanwhile actually has 99.9% of what you need working today not 25 years from now. There's some bits and pieces already progressing well and likely to be fixed in the next few weeks/months/years and not 25 years in the future. Very different situation to X11, IMHO.
- jakjak123 3y agoAt least screen sharing has been solved. We are mainly waiting for apps that use sharing to implement the Wayland compatible to get access to screen recording.
- aneutron 3y agoThis a Linux thing. Essentially, in an operating system you need a way to "draw" things on the screen. And a way to properly "move" the boxes "draw". Previously, the usual* way to do that was using XServer (XOrg). Now you would imagine that the server would take commands from applications, and would draw them. But it was the inverse (for various historical reasons)! However, the most egregious thing was that it ALWAYS ran as root. And while tries had been made to reduce the attack surface, it had to fundamentally change (I am skipping over other parts related to performance, scalability, or future proofing). And that's where Wayland comes in, and literally flips the whole thing on its head. Now the issue is XOrg has been around for maybe 40 years or more ! And that was not going to change easily. Distros did their absolute best to allow double use, but adoption grew very slowly. Eventually, supporting and testing for two envs will grow complicated. Anyway long story short, almost everything about Wayland is better IMO, actively supported and is the future. But migrating to it has been complicated because they were undoing 40 years of habits, hardcoded bugs that grew into features, and had to come up with new testing. This is something I typed up rather quickly so please take a peek at the Wiki page for Wayland you will find a much more complete history
- yjftsjthsd-h 3y ago> However, the most egregious thing was that it ALWAYS ran as root. That hasn't really been a thing for over a decade now. As a decent metric, https://wiki.ubuntu.com/X/Rootless https://wiki.ubuntu.com/X/Rootless says Ubuntu switched to rootless by default for most drivers in Lucid==10.04
- dTal 3y agoOn a modern computer, programs that wish to draw on the screen do not interface with the hardware directly (aside from games). Instead, they communicate with another program that does the drawing on their behalf. This other program is called a "display server", a GUI program such as Firefox is a "client", and the details of the mechanism by which they communicate is called a "protocol". Until recently, "Xorg" was the main centralized implementation of a display server on unix-likes, and any program wishing to display graphics had to speak its native protocol, "X11". Now many systems run display servers which speak a new protocol, "Wayland"[note]. While a compatibility shim does exist (XWayland), ideally a program wishing to display graphics on such a system should do so using the new protocol directly, for better performance and features. Porting an application to a new graphics backend obviously requires some effort and testing. Until now, out of an abundance of caution, Firefox simply spoke the old X11 protocol by default, even when running on a new Wayland system, relying on the XWayland compatibility shim. Now Firefox is essentially announcing that they believe their Wayland backend is robust and complete enough to enable by default. I hope this helps! [note] the nature of Wayland is such that there are many implementations of such servers, not just one main one like with Xorg. This is because the semantics of the Wayland protocol have taken over some of the functions previously handled (on X11) by a separate piece of software, called a "window manager", which contributed heavily to the look, feel, and behavior of a particular desktop GUI. Thus, while Xorg was agnostic and could be shared by different GUIs, with Wayland each GUI system must implement its own display server.
- kruuuder 3y agoThank you!
- charcircuit 3y ago>This is because the semantics of the Wayland protocol have taken over some of the functions previously handled (on X11) by a separate piece of software, called a "window manager", which contributed heavily to the look, feel, and behavior of a particular desktop GUI. Window managers can be separate with Wayland too. It just seems like the Wayland people don't want to unify under one implementation and have separate window managers.
- blindhippo 3y agoI think this is a problem with any highly specialized or technical topic. I vaguely recollected what wayland was, but I didn't know why I would care about it and ended up doing similar googling before realizing this news will not matter to me outside of a general technical curiosity. I encounter the same thing when dealing with code reviews as well - people love to document the WHAT or HOW of things, but rarely if ever consider talking about WHY it matters, or WHO it matters too. To borrow from a favourite corpo speak: answer the "so what" for the reader to make something actually useful to more people.
- tapoxi 3y agoThis is about how Firefox, KDE, any app you run draws to the screen. In the old world, they talked to an X server that implemented the X protocol. It's not KDE drawing stuff to your screen, it's X, but KDE is a little special in that it can move windows around and draw title bars and borders. This is called a window manager. Two big issues with X, this was defined in the early 90s by a consortium of Unix vendors and is somewhat of an overly complicated nightmare. It's also a security nightmare, any app can snoop on any other app. Wayland is an attempt to simplify things. The server, called a compositor, is much simpler and is implemented as a library, usually by former window managers that now actually handle drawing stuff to the screen. Applications can no longer snoop, they must ask permission. If you run an older app designed for X, it uses an almost invisible compatibility shim called XWayland, basically a tiny X server that takes in X draw commands and converts them to Wayland ones. Firefox enabling Wayland support means that on most modern systems, it no longer has to use this shim. Wayland is a step forward for desktop Linux, but like any big change there are some annoyances. The asking for permission model means things like screensharing tools or apps that do weird shit like macros or capturing keystrokes need to be updated to ask permission. Nvidia didn't really support Wayland well until very recently because they got into some weird argument about driver APIs that took years to resolve.
- jakjak123 3y agoIt's a very long story, but yeah, its about how the applications on your desktop can draw content inside their borders, and how those applications interact with things like keyboard/mouse/other applications drawn on the screen. One of the big things is that X11 was written for a time where everything was open with no access control. Any application can view any other application, or capture any keystroke. Wayland introduces a form for permissions control, which has been a huge ordeal to both pave the path for and to design and figure out how on earth that should work. It's great though that you can have some actual control on who can listen to keystrokes and not.