News for hackers. Stuff that matters.
Re:The technical merits of Wayland are mostly irrelevant by jchw on Friday September 01, 2023 @08:20AM (#37349833)
Very true. Wayland is now stable enough to be used in a lot of "production" environments and I've been using Sway as my desktop for years, and yet still, there is work left to be done:

- Hardware support. NVIDIA support is spotty still. Easily the biggest issue IMO, though it's better than it was.

- Network operation. X will always be better here because it was designed to be (at least with toolkits that can still take advantage of XRender.) That said, Waypipe can work well too, but I find myself needing to tweak it for best performance. Having a better out of box experience would be nice.

- Apps. Electron and Chromium still default to XWayland and still have a laundry list of (mostly small) issues. VS Code currently is unstable in native Wayland mode. Qt QDockWidget works poorly in native Wayland: it was unusable in Qt 5. OBS crashes more often in Wayland, on top of being impacted by the dock widget problem.

(There are other issues, e.g. no obvious/general answers for automation, but these ones in particular make me weary of generally recommending people switch to Wayland.)

Until then, there's no point in pushing harder. These problems are showstoppers for many.

P.S.: Not all UNIX environments have good Wayland support but since its a common misconception, Wayland is not inherently limited to Linux and some compositors will run on BSD and there is even one for macOS, albeit more in the vein of XQuartz.

Re:The technical merits of Wayland are mostly irrelevant by roenxi on Friday September 01, 2023 @08:33AM (#37350007)
> Network operation. X will always be better here because it was designed to be (at least with toolkits that can still take advantage of XRender.)

That is by no means clear cut - X is competing against specialist applications like VNC and there is a real question mark over whether a critical application uses OpenGL. X can easily win on toy benchmarks that play to its strengths, but it is rare in the extreme for that to matter.

Why do we need a remote server to provide a GUI that doesn't involve OpenGL? It happens, but not often enough to be an advantage. SSH + VNC is a more reliable and general combination, the X protocol is a maintenance and security liability. Personally if I'm logging in to strange servers I'd rather be learning cross-platform skills that carry between Windows, Mac and Linux.

Re:The technical merits of Wayland are mostly irrelevant by JohnFen on Friday September 01, 2023 @08:48AM (#37350146)
> X is competing against specialist applications like VNC

I stay with X because it lets me have multiple independent logins with their own desktops. The last time I checked, Wayland doesn't support this, and this is well outside of what VNC does. This is a very important facility to me.

Re:The technical merits of Wayland are mostly irrelevant by jchw on Friday September 01, 2023 @09:14AM (#37350397)
Can you elaborate on this one? You can of course have multiple Wayland displays at once, and/or multiple VNC servers. But, presumably, you're talking about something entirely different here.
Re:The technical merits of Wayland are mostly irrelevant by JohnFen on Friday September 01, 2023 @09:40AM (#37350722)
X lets me log into a machine multiple times simultaneously, with each login having its own, independently operating desktop. Wayland doesn't support this (or didn't the last time I checked). VNC does something entirely different from this -- it just shares an existing desktop remotely rather than providing a unique independent desktop.

So the effect is a bit like VNC in that you can remotely access a desktop, but the desktop you see is not a copy of the one being actually displayed on the machine's monitor. It's entirely its own thing, only visible to that particular login.

Re:The technical merits of Wayland are mostly irrelevant by jchw on Friday September 01, 2023 @09:52AM (#37350855)
> VNC does something entirely different from this -- it just shares an existing desktop remotely rather than providing a unique independent desktop.

Actually, not necessarily; you can use Xvnc to achieve this with X+VNC. It's an X server that serves over VNC.

Can Wayland do this? Yes! But, the problem is that there is no singular Wayland "display server". This is both a big strength and big weakness of Wayland. In this case, it means that I can't point to a single correct way you can do this. However, with the compositor I currently use, SwayWM, it's very trivial: I can start Sway inside of an existing compositor or X server to get a nested desktop. You could use this with Waypipe or X11 forwarding for example. It can also be started with wayvnc inside, to expose a VNC server from Sway, though this is not really any different from starting an Xvfb and running a VNC server inside of it.

Re:The technical merits of Wayland are mostly irrelevant by JohnFen on Friday September 01, 2023 @09:56AM (#37350901)
> Can Wayland do this? Yes!

Interesting. I remember asking some Wayland devs a few years back about this and they said this use case would never be supported. I'm glad that's changed! It means that if the day comes that I have to use Wayland, I won't necessarily lose functionality.

(Just for clarity, I'm not opposed to Wayland if it can do what I want. But I'm not excited by it, either, because the benefits it does provide are ones that don't really matter to me)

Re:The technical merits of Wayland are mostly irrelevant by jchw on Friday September 01, 2023 @10:25AM (#37351236)
Yeah, as you may gather from my first post, I am not advocating anyone to switch if there's nothing in Wayland for them. But at least with wlroots-based compositors (a decent number of them, but notably not GNOME and KDE which use Mutter and Kwin respectively,) you can definitely do this sort of thing relatively easily. It'd probably be a good idea if every compositor got on the same page here so that the experience is consistent. I'm not sure how to do this kind of thing with every compositor.
Re:The technical merits of Wayland are mostly irrelevant by hulitu on Friday September 01, 2023 @04:40PM (#37355959)
Does xv runs in wailand ? xpdf ? fvwm2 ? xterm ? xsnow ?

Does wailand supports window managers ?

Re:The technical merits of Wayland are mostly irrelevant by jchw on Friday September 01, 2023 @06:18PM (#37356733)
X11 apps run under XWayland, an X server that runs under Wayland compositors, almost always by default. It's possible to run WMs under XWayland too, but most Wayland compositors are WMs and handle the WM for XWayland too.

Wayland doesn't have a single display server. Most of what was the X11 display server is moved to the kernel and libraries. So, the WMs ARE the display server.

xv, xpdf, xterm should work fine. xsnow should work, but will only see X windows. fvwm2, it can run on some Wayland compositors, but the better option here would be a compatible replacement: as far as I know, we still don't have an fvwm2 equivalent, but SwayWM exists as a replacement for i3, for example.

Re:The technical merits of Wayland are mostly irrelevant by dale_glass on Friday September 01, 2023 @08:49AM (#37350150)
> Network operation. X will always be better here because it was designed to be

Excuse me, but BS. At least for anything of actual relevance.

X11 networking works okay for stuff that looks like a classic X11 app. That's things like xcalc. Any modern text editor, web browser, or anything else is going to be dog slow.

X11 has a bad networking protocol that's way too latency sensitive, and as a result is nigh unusuable without something like NX, which puts a local cache in front to get rid of that latency.

No, I'd say X11 wasn't designed to be run on the network, in that no particular care seems to have been taken to deal with latency and bandwidth issues. It's more of a feature that could be had for free, because if you can use an UNIX socket, you can also use a TCP one with minimal work, so might as well allow it.

Re:The technical merits of Wayland are mostly irrelevant by alphablended on Friday September 01, 2023 @09:09AM (#37350344)
> No, I'd say X11 wasn't designed to be run on the network [...]

That's just wrong. X11 was designed from the ground up to be used on the network. It just happens that nowadays requirements are different from when it was originally designed.

Running X11 on the network was quite a thing in Unis all over the world, where you could have dedicated dozens of X11 graphic terminal servers (tektronix used to make good ones) connected (100Mbits) to a single mainframe, and everyone running an Xemacs session without slowdown.

Wayland design is all about framebuffers, which clearly shows how focus has shifted. X11 was not designed for pixmap heavy, shader heavy scenarios.

Re:The technical merits of Wayland are mostly irrelevant by ekidd on Friday September 01, 2023 @09:19AM (#37350446)
Also, X networking was mostly used within local university and company networks, and not over the internet backbone. Well-designed local networks can be very low latency, often noticeably lower latency than disk I/O.
Re:The technical merits of Wayland are mostly irrelevant by spacedcowboy on Friday September 01, 2023 @11:56AM (#37352428)
To be fair, X doesn't work that well over even local networks with modern apps.

Serving X applications (eg: Chromium) from the Raspberry Pi I'm targeting to the Mac I'm developing on is an exercise in futility, even if it does make 'download this to the target' easier. It's a lot faster to run Safari on the Mac and scp the download to the Pi, just because of interface latency issues.

Re:The technical merits of Wayland are mostly irrelevant by alphablended on Tuesday September 05, 2023 @05:16PM (#37397868)
Well, I don't think that network at the time was faster than SCSI, but that's a fair point that X11 isn't quite "internet ready" (though these days with a dedicated VPN you'd probably get very good performance on the core protocol).
Re:The technical merits of Wayland are mostly irrelevant by steve1977 on Friday September 01, 2023 @09:30AM (#37350589)
I remember running Hummingbird Exceed on Windows to access the “proper” applications on Solaris in a stock trading environment (like 25 years ago)
Re:The technical merits of Wayland are mostly irrelevant by jchw on Friday September 01, 2023 @09:10AM (#37350369)
Actually, though, toolkits that still have XRender backends will run relatively efficiently over the network. To be fair, this is becoming a thing of the past slowly, but it's not gone yet: Qt 6 re-added the XRender backend due to complaints of how much slower X11 networking was!

Granted though, it does nothing for apps using Electron. However, try e.g. the Dolphin file browser on a 4K display over the network, and you'll find it is clearly faster than should be possible.

Probably I should've made it clearer, but imo the bigger problem is that tweaking Waypipe to replace old uses of ssh -Y shouldn't be needed; it should be possible for it to determine what possible options can be used and switch things around to deal with CPU or network bottlenecks most effectively. Easier said than done. There's also still some bugs under Waypipe; it's an understandably challenging problem.

Re:The technical merits of Wayland are mostly irrelevant by jesboat on Friday September 01, 2023 @09:51AM (#37350847)
In the 2010-2013 era, i did most of my computing over X over ssh on a fast LAN. At the time, YouTube and other video stuff worked fine, and my environment felt as responsive as local computing.
Re:The technical merits of Wayland are mostly irrelevant by nullc on Friday September 01, 2023 @02:38PM (#37354603)
Your experience doesn't match with other people's.

Remote X over fast low latency networks is fine, a near local experience-- even running things like firefox or gimp. (And for classic apps it's indistinguishable from local). The wayland world alternatives like using RDP are painful to the point of usability even over a 10gigbit network, peg the cpu... and are really only good for rescuing something that's stuck or providing a bit of tech support.

Yes, over a high latency network remote X is sucky but seldom much worse than RDP.

Re:The technical merits of Wayland are mostly irrelevant by jjav on Sunday September 03, 2023 @03:20AM (#37368385)
> No, I'd say X11 wasn't designed to be run on the network

That's very wrong, the whole point was to run over the network.

It worked exceedingly well even in the earliest 90s (modulo bandwidth expectations of the time) and continues to work wonderfully 30+ years later.

Re:The technical merits of Wayland are mostly irrelevant by bitwize on Sunday September 03, 2023 @02:29PM (#37372917)
No, it doesn't, it works like shit because that's not how modern apps work anymore.

Modern apps draw all their UI client-side onto a surface which is then sent to X for display. IF ONLY we had a windowing system that was based around simply compositing together the various surfaces that the apps draw into a complete image of the desktop. Since this is a step away from the complexity of X, we could give it a name starting with W...

Re:The technical merits of Wayland are mostly irrelevant by jjav on Sunday September 03, 2023 @05:54PM (#37374968)
> No, it doesn't, it works like shit because that's not how modern apps work anymore.

Don't know what to tell you, your experience is different.

Many of my computers are on a rack and I run everything on them over X displaying to my desktop. Works just fine.

Re:The technical merits of Wayland are mostly irrelevant by bitwize on Tuesday September 12, 2023 @05:04PM (#37488327)
Try running Firefox over your networked X connection.

Go ahead, I'll wait. Literally, I'll wait.

Re:The technical merits of Wayland are mostly irrelevant by Cthulhu_ on Friday September 01, 2023 @09:18AM (#37350436)
I just had to look it up; Wayland has been around for 14 years already. How much software takes 14 years and still isn't stable? How big and / or complicated is this problem and the codebase anyway?
Re:The technical merits of Wayland are mostly irrelevant by jchw on Friday September 01, 2023 @09:41AM (#37350732)
For one thing, Wayland is a protocol, not a specific piece of software. But mostly, that progress has been non-linear. A ton of it is not about writing code, or even about Wayland itself; much of it tied into the modernization of the Linux and general open source graphics ecosystem, moving it away from being oriented around X.org specifically and implementing modern features like generic buffer management and kernel modesetting. A lot of setbacks have been simply waiting on NVIDIA to support these modern facilities well in their still-very-popular proprietary drivers.

HDR support has been in the works for years. Why? Well, nothing terribly specific to do with Wayland: there has been a ridiculously deep dive into the entire space of color management, wide-gamut colorspaces, etc. to try to build HDR protocols that don't merely just get things out the door, but ideally support current and future use cases for the foreseeable future, have good backwards compatibility and handling of unaware apps, etc. These things are non-trivial and can't be solved by writing code or staring at GDB. (Not to mention there are few drivers that can currently support this, so it's also a bit of a chicken and egg problem.)

That is to say, Wayland is a lot less of a software problem than it is a design and social problem. And as you can probably see, ultimately, Wayland will be nobody's favorite, but hopefully with time, it can at least be everybody's favorite.

Re:The technical merits of Wayland are mostly irrelevant by shlip on Friday September 01, 2023 @09:35AM (#37350635)
Ever heard of GNU Hurd ?
Re:The technical merits of Wayland are mostly irrelevant by Maken on Friday September 01, 2023 @09:58AM (#37350924)
PulseAudio is still not there after 19 years.
Re:The technical merits of Wayland are mostly irrelevant by e12e on Friday September 01, 2023 @10:25AM (#37351239)
On the other hand, PipeWire is?
Re:The technical merits of Wayland are mostly irrelevant by ahartmetz on Friday September 01, 2023 @11:50AM (#37352339)
Thank $deity, it is. PipeWire actually works well.
Re:The technical merits of Wayland are mostly irrelevant by Maken on Saturday September 02, 2023 @10:29AM (#37361835)
It has already surpassed it.
Re:The technical merits of Wayland are mostly irrelevant by Condition1952 on Friday September 01, 2023 @09:22AM (#37350480)
I can’t get to launch obsidian on arch-sway without the ozone flags :/
Re:The technical merits of Wayland are mostly irrelevant by torginus on Friday September 01, 2023 @09:24AM (#37350496)
X hasn't been good at network in the past 2 decades.

From my experience, Windows RDP has always worked way better, and when we were confronted with the need of having to do RDP access, we always found the more primitive VNC far superior.

But even that is the past. Today you can stream your entire desktop over the network with highly efficient modern video codecs, courtesy of the hardware encoders built into your GPU.

Re:The technical merits of Wayland are mostly irrelevant by gjvc on Friday September 01, 2023 @09:33AM (#37350623)
[delayed]
Re:The technical merits of Wayland are mostly irrelevant by Gud on Friday September 01, 2023 @11:33AM (#37352135)
Regarding your post scriptum,

It is clear to me as a FreeBSD user that Wayland is primarily developed first hand for Linux.

To me, Wayland looks like a threat rather than something I should embrace.

I remember when it was a given that free software was developed to support a wide eco system. What happened?

“There is even one for macos” XD

Re:The technical merits of Wayland are mostly irrelevant by jchw on Friday September 01, 2023 @09:20PM (#37357828)
I disagree, though. Wayland itself is definitely not meant to be a threat to BSD.

There are some anti-patterns in the Wayland ecosystem that lead to arguably unnecessary dependency on things like DBus, but Wayland itself doesn't actually need much and you should find that SwayWM works fine on FreeBSD. However, the graphics stack and drivers for BSDs are a little bit behind, which is arguably a bigger threat.