• Colloidal@programming.dev
        link
        fedilink
        arrow-up
        7
        ·
        6 days ago

        The underlying tech used to control graphics in Linux has 2 options: X (harkening from the old Unix days) and Wayland (a project that has been in development since 2008 but only recently started seeing widespread adoption).

        The thing is, while seeing widespread adoption, Wayland hasn’t reached feature parity with X. Several use cases remain impossible or impractical to replicate. Some important stuff like accessibility tools, certain forms of screen sharing, and other less used by the majority but otherwise critical for some people.

        The schism is because a lot of projects are making the cutover to Wayland mandatory. KDE, and GNOME, for instance, no longer release updates for X versions of their software. So it feels like a big “F U” to the people that depend of those features to use their computer.

        If Wayland was optional, it wouldn’t be an issue. Or if the people working on the project didn’t dismiss people complaining about the lack of feature parity, giving a clear indication that those “edge cases” can suck it.

        There other technical / philosophical objections some have too, but that isn’t as relevant IMO.

          • Colloidal@programming.dev
            link
            fedilink
            English
            arrow-up
            6
            ·
            6 days ago

            You know what? I’m caffeinated and I’ll go into the technical stuff a bit, because that illustrates that this problem is likely to last before it gets any close to being solved, and badly.

            X works with “drawing primitives” as a concept. The X server renders graphical content. Programs interacting with it use functions like “create a window from here to here”, “display this in window A”, “draw these decorations (title bar, buttons, etc.) on window B”, etc. You get the idea: there are categories of things that the X server allows programmers to manipulate. A separate program, the Window Manager, is the one that will actually make those requests. It will decide which decorations to on which windows, which window goes on top, etc. There are several WMs. You could even, which your session running, kill your WM, start another one, and it could pick it up where the other left off (likely would be buggy as all get out).

            The thing is the X protocol is ancient. So, as our needs evolved, it started getting “patched” in the form of extensions to the protocol. Some were hackier than others. By 2008, when Wayland started (and other projects as well), it was a consensus that X needed a fundamental redesign to keep up with current and future needs. X.org page on the subject.

            Wayland is absolutely fundamentally different. There is no “Wayland server”, like X, that is shared under all graphical interfaces in your computer. Each desktop environment is its own WL server. That means that a program that interfaces with the GNOME wayland server, might not necessarily work on KDE’s (without some sort of software layer in between, at least). Lots of resource-light interfaces (FVWM, IceWM, etc.) rely heavily on X’s draw primitives, and would have to reimplement them from the ground up to be Wayland compatible. Most are choosing to retire the project - we will no longer have those interfaces as an option.

            Now, back to accessibility. A lot of people depend on Screen Readers to interface with the PC. There is software that reads it aloud, there’s hardware interfaces that can put the text into braille. A lot of those screen readers find the content they will read using X’s draw primitives. They get free reign of your screen, because X does not have a security model that prevents them from doing that. The same mechanism is used by some screen sharing apps, like OBS. Some people depend on these tools to either be able to use the computer at all, or to maintain gainful employment and a roof over their heads. There’s not a lot of them, but the consequence of not supporting them is dire.

            They don’t have that option on Wayland. AFAIK, there isn’t a way to give a program free reign of your screen on Wayland. The protocol would have to change for that to be possible, and then each wayland server (GNOME’s, KDE’s, Cinnamon’s, etc. etc.) would have to implement and test it independently. Supposed they did. Now the screen reader has to adapt to the new protocol. But, while before it would just test its product with the latest X server, it now has several servers to test against. So you’ll have a screen reader that you like but only works well with the GUI that you don’t like.

            It gets compounded by the Wayland project’s glacial pace in adopting protocol changes. It didn’t linger in design hell for almost 20 years for no reason. X.org, the “owners” of X, decided they won’t work on improving the X protocol any longer (understandable, it was like putting lipstick on a pig at this point).

            But what about the people not covered by Wayland? Well, someone started a fork of X11. Padmé meme: To continue maintaining the project, right? Right? No. They started the project so they could be bigots against trans people without being censored by the X project leadership. Fuck. So now you have some bigots joining the people with very real, deep consequences in fighting the switch to Wayland. That only encourages the pro-Wayland camp in ignoring them.

            And philosophically? The big companies behind Wayland are loving the “we each have our own server” because not having a common base to work with your competition means they can lock customers in their pen. It is a departure of general compatibility and the Unix principle of well-defined, limited in scope, reusable tools. The screen server is no longer reusable. Moderately compatible. And this status quo isn’t very likely to change because of the economic incentives against that change.

            • Awesome Lowlander@cozyver.se
              link
              fedilink
              English
              arrow-up
              2
              ·
              6 days ago

              It is a departure of general compatibility and the Unix principle of well-defined, limited in scope, reusable tools. The screen server is no longer reusable. Moderately compatible. And this status quo isn’t very likely to change because of the economic incentives against that change.

              How did it reach this point? Sheer lack of contributors? With the frequency everything else in FOSS gets forked, I’d have expected something like this to have a whole bunch of alternatives.

              • Colloidal@programming.dev
                link
                fedilink
                arrow-up
                2
                ·
                edit-2
                4 days ago

                Making a successor to X is a massive undertaking. We don’t have the likes of Bell Labs anymore. Talent isn’t concentrated in a research focused group with a unified goal and financed by a massive monopoly. They’re dispersed, in separate companies that compete with one another, with a focus on selling products and making money.

                You can’t just fork X either, the structure needed to change, we needed a new concept to rally around and build anew. It’s what made the project so daunting, too much for any player to handle on their own.

                So yes, for decades nobody could agree on a direction to the project. There were alternatives to Wayland in development, they didn’t go past concepts, as far as I’m aware. Wayland won by default.

                Edit: I don’t want to give the impression that X was created at Bell Labs. It was created at MIT. Which makes me question why aren’t the big computing research centers (MIT, Berkeley, Purdue, …) doing basic research anymore?

    • SprkPlug@lemmy.world
      link
      fedilink
      arrow-up
      2
      arrow-down
      4
      ·
      6 days ago

      Does it matter? Why should you care? If you dont like it use devuan with xlibre like everyone else who whines about wayland

      • mycodesucks@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        6 days ago

        It does matter. I’ve used Linux mint as my primary system for over a decade, and now they’ve come into my home, trashed my workflow, broken tools I use, not replaced them, told me it was an upgrade, and now call me the asshole for complaining.

        I’m not going to shut up because that is shitty and I have every right to be angry.