News for hackers. Stuff that matters.
Re:KiCad and Wayland Support by zppln on Tuesday June 17, 2025 @01:14PM (#44301390)
> out of their system

I spent some time last year digging around in Wayland and I've got to admit that I was surprised to learn that there really isn't anything really there. Like, there is no "system". I had read that "it's a protocol" but I hadn't fully internalized it. I'm honestly a bit surprised anyone has adopted it. It almost feels like a scam. :) When I checked you couldn't even get your window decorated without an extension (that Gnome decided to not support so you have to bring your own decorator there?).

Re:KiCad and Wayland Support by IshKebab on Tuesday June 17, 2025 @01:38PM (#44301670)
Yeah I think the fundamental mistake they made was trying to standardise a display protocol without a display server.

They changed it so that everyone who previously just wrote a window manager now had to write an entire display server. The open source community just doesn't have that much manpower.

Re:KiCad and Wayland Support by jchw on Tuesday June 17, 2025 @08:24PM (#44305449)
> They changed it so that everyone who previously just wrote a window manager now had to write an entire display server.

Not entirely true. Now if you want to share the "display server" bits you can plug in a library like wlroots or Smithay. The real issue, if any, is that most of those bits are not standardized; or at least, only the libwayland part.

Of course, that's not even the entire story either. When X11 servers were basically entire operating systems that ran as root, implemented print servers and directly touched /dev/mem, only a lunatic would want to maintain multiple of them... but now on Linux and even some BSDs, you can fall back to GBM/DRM/KMS/libinput/etc. for most of your "hardware" needs, the OS is doing the OS things. Wayland is also just simpler than X11; The current day cleaned-up X.org is still around 5x larger by SLOC and much more complex than wlroots.

So how come GNOME and KDE both built their own display server? Well really, they didn't; they took their existing compositors they had for X11 anyway and grew Wayland server limbs out of them. In practice retrofitting Wayland into existing compositors is still hard, but if you already have written a compositor and window manager it's still probably easier than writing a new one from scratch. And for KWin, I believe they're also making use of Qt's Wayland compositor infrastructure, too.

Something that took me a long time to understand is that people are just unhappy no matter what. Not that all of their points are invalid, just, it's often not even really about that; the specific points are often just the obvious weak spots, like the classic "Wayland can't screen capture" meme (totally fair point, but persisted so long that some people still don't know it hasn't been an issue for years.) This right here is just another one of those. Notice that when many Linux distros unified towards a singular init system, systemd, people came out with pitchforks. Were they all spouting incorrect nonsense? Well, blah blah UNIX philosophy, but largely no, there were plenty of valid complaints about systemd and what it meant for the Linux ecosystem, but it wasn't really about that. Same with Wayland! Wayland did the exact opposite, and defined a set of protocols anyone could implement, allowing you to choose your compositor. Seeing as people hated what systemd did and wanted to preserve "choice" in the Linux world, you'd expect that people would like what Wayland did, but instead everyone is just pissed about fragmentation now.

You can pick apart that argument and try to figure out why it's wrong or and invalid comparison and I'm not going to try to fight anyone on that. You can also say that the argument is made by different people and maybe that's true too (though personally I believe "people who hated systemd" and "people who hate Wayland" forms more of a circle than a venn diagram.) Even if it is, the outcome is the same: you're damned if you do and damned if you don't. What I do know is that desktops on X11 stagnated with the same sorts of problems they always had and with Wayland a lot of that got unblocked. X11 will probably be in the same crappy state it's in today and Wayland will continue iterating and improving over time. I'm sure there will be a lot of pain along the way, and I agree it isn't always pretty, but it is what it is. Software isn't a beauty contest, and there's a good reason why "elegant" stuff rarely wins in the long run.

Re:KiCad and Wayland Support by magicalhippo on Wednesday June 18, 2025 @02:33AM (#44307184)
> Seeing as people hated what systemd did and wanted to preserve "choice" in the Linux world, you'd expect that people would like what Wayland did, but instead everyone is just pissed about fragmentation now.

As a mere Linux user, who's occasionally been annoyed at systemd and as mentioned have had poor experiences with Wayland implementations, I've been wondering about the alternate timeline where systemd and Wayland swapped approaches.

That is, systemd was just a set of protocols along with reference implementations, so people could say swap out journald to something that logged to text instead of a binary database etc.

And Wayland instead just did the whole kitchen sink, becoming the basis for the Linux desktop of the future, instead of fragmenting the existing ecosystem even more.

Probably a lot of good reasons why it wouldn't have been better, but it would be interesting to see what might have been.

Re:KiCad and Wayland Support by eliaspro on Wednesday June 18, 2025 @12:25PM (#44311235)
Well, with systems that's actually the case. It's suite of mostly loosely coupled tools and services and you totally can swap out or disable many of the components however you like. They mostly just use DBus and/or Varlink for IPC and use some common shared libraries to prevent code duplication across the whole project.
Re:KiCad and Wayland Support by mqus on Wednesday June 18, 2025 @01:57PM (#44311967)
well, no? Systemd actually also delivered all of the implementations of those protocols and barely no one cared to fit their previous solution to their standards? Rather, it was the opposite, systemd could also run your usual service shell scripts for a while.

Sure, there are similarities in the sense that you started out with 0 service files at the beginning and no GUI toolkit implemented the Wayland protocol from the start, but the thing itself is pretty different. Systemd wasn't designed by committee (and many people still have gripes about this). Wayland kinda is.

Re:KiCad and Wayland Support by saurik on Thursday June 19, 2025 @12:47PM (#44320325)
The "choice" people want is the ability to easily mix and match a patchwork quilt of software from different parties, each adding one tiny behavior. Wayland doesn't do that: it makes it so almost every behavior people want must be added to the compositor.

The magic is in finding what the right point in the abstraction is: what will be centralized and what will be decentralized. Both of your examples--systems and Wayland--made the same decision: the patchwork quilt of behaviors was complex for many users to get working, and even then often didn't work 100% always. It was also slow and a bit insecure (if you don't trust your software).

So, both systemd and Wayland took the same approach of pushing forward the boundary of abstraction and merging together most of the things people would have had to configure. This means that that one core component in the middle -- and sure: in Wayland you can have multiple implementations, and those can even share a library, but you can't MIX AND MATCH -- must do all of the things people want.

The reality is that no one wanted to maintain multiple X11 servers... but we also didn't want to! What we do want is to to be able to mix and match compositors and macro systems and window managers and all of the fun little behaviors that make a computer feel like it works for us, and now we can't, as we have to find and select a single giant ball of behaviors that happens to be close enough to what we wanted.

Theoretically, some day, someone could make a really advanced and capable display server for Wayland, one that will be extremely general and will have a number of protocols for how to extend its behavior. It will be the one display server to rule all display servers, and even ecosystems like Gnome and KDE could just interoperate with it, and we could get back the glorious ecosystem that people are killing...

...but that's effectively what X11 is, right now, and by the time you get that--with a ton of protocols that are old enough to be widely used--all of those behaviors will have aged and ossified and the code will be built by people who are gone in a language that isn't fun using conventions that are out of date, and some A-hole will point out that the stack is difficult to maintain and user's experience is variable and throw the entire thing out to start over :/.

Like, I dunno... I honestly do not understand how you are saying Wayland is doing the thing people wanted from systemd: the issue isn't that I wanted to be able to replace systemd, the issue is that I wanted systemd to not be a single giant C program because I really liked the patchwork of scripts and behaviors and alternative parts that were built up in the ecosystem.

And again: everything tends to end up with some central thing in the design somewhere... but you have to make that thing be so boring that no one has any interest in innovating on it, and X11 was that: while I do think we should have multiple implementations for robustness, we would expect every one of those implementations to work as close as possible to 100% identically.

Re:KiCad and Wayland Support by jchw on Thursday June 19, 2025 @06:44PM (#44323211)
Well really, what people actually want, by my estimation, is a machine that works and to not have to adjust their workflows. These are both very sensible things that everyone understands. The stuff about "UNIX philosophy" and composability is mostly BS. We're talking about Linux, the least UNIX-y UNIX-like imaginable. People getting mad that a single program does too many things is insane when the first thing your computer boots out of firmware is the Linux kernel. Same for many of the more ideological systemd complaints, some of which exacerbated by people not understanding that systemd is an umbrella project and not an init daemon (and you can in fact swap in and out many of the components like timesyncd, networkd, resolved etc.)

I think whether Wayland really was what people wanted out of systemd or not is mostly not that important. I'm arguing that people were mad because systemd took away their choices, you're arguing that Wayland wasn't the choices they wanted. I'm not sure what choices they wanted. I don't think most people who are mad about new things have fully-formed opinions about what they actually want in the first place. Either way, Wayland gives you nothing if not plenty of choices, and many of them much more complete than what you could get with random WMs on X.

Most importantly, though, I strongly disagree that X11 is the ideal protocol to build on. X11 is a mess that's hard to implement and if you omit anything you'll basically always break a non-trivial amount of software. XInput 1 is pretty broken but tough, Wine needs it. Have fun implementing Xv everywhere too, and XRender. Most modern apps just grab a GL or Vulkan context and ignore all of that, but if you want to meaningfully implement X11 those things need to be there. I could go on, but I'm sure you get the point.

Realistically, I'm sure we don't want to maintain multiple X servers. As it is, nobody wants to really maintain X.org to begin with... Well, there is one guy, but that doesn't appear to have gone so well so far.

What's funny is, when people actually want to have X11 support, what they do instead is implement Wayland and use XWayland instead. Seriously, look at how many things implement Wayland: ChromeOS for Linux apps, SteamOS for game compositing, Windows for wslG, termux-x11... Wayland and Weston are much easier to implement and adapt than X11 and X.org were.

When everything works well across all of the GPU vendors and the major applications have the remaining kinks ironed out, things will keep moving along and the sky will probably not fall. I honestly think that people were going to get cranky even if everything was done absolutely perfectly here, because succeeding X requires some people to do a bunch of work and adjust their workflows. Don't blame 'em, doesn't mean they're right.

Re:KiCad and Wayland Support by queenkjuul on Saturday June 21, 2025 @06:40AM (#44336384)
Systemd, unlike Wayland, does everything i need, hence I've never complained about it. That's the only reason i have an opinion on Wayland at all.
Re:KiCad and Wayland Support by gf000 on Wednesday June 18, 2025 @03:00AM (#44307325)
A window manager is just an X11-ism. It's nothing more in that parlance than a Gnome plugin.

There are "Wayland display server toolkits" out there, so you can just build whatever you want without reimplementing a wheel. But an additional layer allowing for these plugins that X has is just added complexity that not every diplay server would want - e.g. a custom display server for a thermostat.

Re:KiCad and Wayland Support by arboles on Wednesday June 18, 2025 @09:15AM (#44309634)
Emphasis on the plural in "toolkits", X has one standard interface running on people's computers that window managers target. X environments end up having common behavior regardless of window manager, and for application developers having to target each Wayland display server with its own subset of protocols has to be less appealing. That is what that comment was getting at.

Application developers don't want to log your keyboard and aren't oblivious to security. The lack of a standard Wayland display server is a real grievance.

Re:KiCad and Wayland Support by gf000 on Wednesday June 18, 2025 @04:53PM (#44313189)
Where is that common behavior, is that GNOME's one, KDE' one, or the million tiny window managers' ones?

Would you swear that no "application" developer would want to log my keyboard if we include the transitive dependencies of every single nodejs/python/etc package that I use for regular-ass development? Because we have seen how trustworthy supply-chains are. But sure, you can definitely drive a car without a seatbelt on, it's just not a good idea.

Re:KiCad and Wayland Support by michaelmrose on Wednesday June 18, 2025 @03:06PM (#44312482)
X and Wayland from the perspective of desktop Linux is for computers and what would be good for thermostats is irrelevant.

It makes more sense to have an entirely different thing for embedded

Re:KiCad and Wayland Support by gf000 on Wednesday June 18, 2025 @04:53PM (#44313194)
What about a car entertainment system? A kiosk that is basically a full touch-based desktop, but only displaying a single app? Where is the line?
Re:KiCad and Wayland Support by panick21_ on Wednesday June 18, 2025 @08:29AM (#44309285)
This just false. There are libraries you can use to get most what you need and you can only change the things you care about related to window manager. And many systems have done that. Libraries are somehow a good way to share software, but not when it comes to display managers?

The claim about OpenSource manpower is also false. We have multiple high quality compositors and despite any issues, there is quite a large amount of homebrew and other compositors.

If you want something like X11, you can built on something like Mir.

Re:KiCad and Wayland Support by mqus on Wednesday June 18, 2025 @01:51PM (#44311922)
The point is: The libraries are not from the same people that build the standards, meaning: there is no "primary implementation" that everyone agreed on. ("agreed on" already is one of the problems, X11 was mostly just developed and everyone got "the thing" and had to use it, for better or worse. In Wayland, KDE, Gnome, wlroots, etcpp first have to agree on a common protocol to implement... and we see how that is going)
Re:KiCad and Wayland Support by gf000 on Wednesday June 18, 2025 @05:01PM (#44313246)
Besides there being a large overlap between the "people that write the standards" and library authors, how is there no primary implementation and why does it matter? It's literally an XML document that can be used to generate C code for the server/client, that can communicate via a binary protocol.

This is just a faulty sentence. If you meant that there is no general consensus on which extensions are "core core" and which are completely optional, that might be a more reasonable criticism.

Re:KiCad and Wayland Support by 0points on Wednesday June 18, 2025 @09:53AM (#44309908)
> They changed it so that everyone who previously just wrote a window manager now had to write an entire display server.

Hence wlroots was born.

Re:KiCad and Wayland Support by teleforce on Tuesday June 17, 2025 @09:33PM (#44305831)
>Like, there is no "system". I had read that "it's a protocol" but I hadn't fully internalized it. I'm honestly a bit surprised anyone has adopted it. It almost feels like a scam.

I feel you. I was there before and after Wayland. I was there when they promised you toward the promise land of the year of Linux Desktop and allegedly X11 is the main hurdle.

X11 is a proper system and protocol, and it seems the Wayland folks just ignore this. The two main reasons were given by them at the time were X11 has archaic architecture (reverse client and server concept) and, the X11 code is ancient and a mess. I'm kind of sold on their first idea of Linux need a clean windowing system so we can have something nice like RDP in Windows. But their second points on the codes debt is rather off. It did occur to me at the time it will be much easier to come up with a clean room implementation of X11 system and protocol rather than come up with entire new windowing system, than hope entire people and industries will use them. After all Linux basically is a clean room implementation of Unix.

I think the main problem is that at the time there's no authoritative figure like Linus on the non-kernel Linux part or what I called Linux user environment. At the time there was Miguel de Icaza of Gnome fame but at the time he seems too much involved with another promise land of Windows .Net and Linux people cannot come to term with the idea of we should just use Win32 as other comments have suggested here. It's proven later that .Net is an eventual failure as expected and Miguel reputation suffered because of that. Strangely to be honest I have never read Linus comment on Wayland but why would he? He's laser focus on the kernel and he's happy to admit using Fedora in the middle of the Red Hat Fedora bruhaha.

Re:KiCad and Wayland Support by ChocolateGod on Wednesday June 18, 2025 @02:41AM (#44307220)
> X11 is a proper system and protocol

It's really not, it's designed for drawing on remote terminals over a network (it even has a print server), not hardware accelerated devices. Things like HDR, multiple refresh rates, mixed DPI, passive compositing, hardware planes are just harder to do.

There was a reason Android didn't use Xorg and instead used SurfaceFlinger (which shares more design with Wayland than Xorg).

Re:KiCad and Wayland Support by gf000 on Wednesday June 18, 2025 @03:05AM (#44307351)
What I don't understand is why do "GNU Linux" have such an adverse reaction to anything Android? Like why wasn't SurfaceFlinger got adapted for both?
Re:KiCad and Wayland Support by ChocolateGod on Wednesday June 18, 2025 @05:25AM (#44308164)
> Like why wasn't SurfaceFlinger got adapted for both

IIRC SurfaceFlinger is tightly tied to Binder which is an Android only kernel IPC, didn't work with the standard Mesa stack and wasn't designed for multiple windows with multiple displays.

Wouldn't be surprised though if eventually Android swaps to Wayland as Google wants to merge it with ChromeOS. Since talking to the compositor is abstracted away to the platform APIs, I don't see it as big of a hurdle as X11 to Wayland was.

Re:KiCad and Wayland Support by gf000 on Wednesday June 18, 2025 @07:20AM (#44308866)
Fair enough.

Though I would be happy if merging of work would happen in either direction.

Re:KiCad and Wayland Support by ahartmetz on Friday June 20, 2025 @04:41AM (#44325740)
It doesn't seem like Android devices have much to offer to fill desktop computing functionality gaps in Wayland.
Re:KiCad and Wayland Support by ChocolateGod on Friday June 20, 2025 @10:01AM (#44327825)
Adopting SurfaceFlinger on the desktop would certainly be a step backwards, OEMs effectively fork it each time and change it for functionality on their devices.

Google sometimes tries to add these features (e.g. split screen, multiple windows etc) into the base code but can take time for OEMs to adopt them on their skins.

Re:KiCad and Wayland Support by m-p-3 on Thursday June 19, 2025 @09:10AM (#44318387)
I'm curious to see what Google did for their Desktop Mode / DeX-like implementation in Android 16.
Re:KiCad and Wayland Support by teleforce on Thursday June 19, 2025 @08:30AM (#44318028)
>Things like HDR, multiple refresh rates, mixed DPI, passive compositing, hardware planes are just harder to do.

Are you sure it's easier to do with Wayland, all this while the Linux HDR is not working well [1],[2].

I've got the feeling that every features claimed to be easier with Wayland are all bogus and the same thing can be achieved with the same amount of effort and time on X. Wayland now really feel like the Emperor's New Cloth.

[1] Ubuntu 25.04 & Fedora 42 Hit A Long Sought Milestone With HDR Support Working Well On The Linux Desktop:

https://www.phoronix.com/review/linux-hdr-2025

[2] Wayland Color Management & HDR Protocol Support Merged:

https://www.phoronix.com/news/Wayland-CM-HDR-Merged

Re:KiCad and Wayland Support by phendrenad2 on Saturday June 21, 2025 @08:51AM (#44337185)
> it's designed for drawing on remote terminals over a network

Yes, but.

On a local machine the "network" is just system calls, and the kernel just hands the data from one process to the other. The overhead is minimal. HDR, multiple refresh rates, mixed DPI, these can all be implemented on the existing protocol. X11 actually closely resembles win32 (it was inspired by the same source after all - Xerox Parc GUI research), which has support for all of these things (it may not be pretty but are Adobe or the legion of game devs complaining? Of course not, it's write once and done.)