Asahi Linux developer warns the one true way is Wayland
- Reference: 1684323912
- News link: https://www.theregister.co.uk/2023/05/17/asahi_linux_wayland_only/
- Source link:
In a lengthy [1]post on Mastodon, one of the lead developers of the Asahi Linux project to port Linux to Apple Silicon-powered Mac computers has asked users not to use X.org, saying: "we absolutely do not have the bandwidth to spend time on it."
Martin warns that the future of graphical desktops on Apple Silicon is Wayland and nothing but Wayland. Xwayland will be supported, so that X.org apps will run under Wayland based desktops, but the developers hope that people will use only Wayland-based environments on Asahi Linux and related distros.
[2]
Up to a point, this is not such a shock for the nascent Linux ecosystem on Arm-ISA-based Macs. These machines have a single family of GPUs, which is closely integrated with the main processor, so there are no questions about which GPU vendor to choose, or what drivers a machine is running – because you have no choice. Additionally, the laptop models' displays, as well as Apple's own external screens, are all hi-DPI devices, or as Apple calls them "retina displays". These effectively mandate the use of fractional scaling – something that X.org does not support well. The Apple Silicon market is a closed one, without the free choice of mix-and-match GPUs and displays found in commodity PCs.
[3]
[4]
As we've [5]written before , support for features such as high-DPI displays, fractional scaling, and worst of all, a mixture of heterogeneous monitors with different DPIs, are all critical weaknesses of X.org, and given how little development is happening in the world of legacy X11, this is not very likely to change.
If you are a rampaging neophiliac and you actively enjoy using modern desktop environments such as GNOME 40+ and KDE Plasma 5, or one of the handful of tiling environments for Wayland, this won't seem like a big ask. For some Linux desktops that currently don't work with the new display server, adding support might be relatively easy.
[6]
For example, Cinnamon is based on GNOME technology – the [7]next version seems to be based on GNOME 43 – and while current versions of Cinnamon don't support anything except X.org, as a fork of GNOME, it shouldn't be that hard for the Cinnamon developers to enable Wayland support.
KDE Plasma already runs quite well on Wayland, and if you need fractional scaling under KDE today, this [8]actually works better with Wayland than it does with X.org .
The problem is that the majority of [9]the profusion of Linux desktops out there don't support Wayland yet… And some likely never will. Regular readers may have gathered that two of the particular favorites of The Reg FOSS Desk are Ubuntu's Unity environment and Xfce. Fortunately, the Xfce developers are working hard on their Wayland support – indeed a recent [10]announcement said that Wayland compositor support has now been merged into the main XFWM4 binary. The next stable version of XFCE should be version 4.20, and with any luck that will work natively under Wayland. However, the chances of this happening for Unity seem very slim. Unity fans may more or less be forced to adopt [11]the new Lomiri environment , but for now this does not support a global menu bar, one of the appealing features of the Mac-like Unity desktop. And, of course, Lomiri requires [12]Canonical's Mir display server .
[13]Linux Mint 21.2 and Cinnamon 5.8 desktop take shape
[14]Fancy a quick tour of DragonFly BSD 6.4?
[15]Ex-org? Not at all! Three and a half years after X.Org Server 1.20, 1.21 is released
[16]Ubuntu reverting to Xorg in Bionic Beaver
The current version of the MATE desktop, [17]version 1.26.1 , still does not support running under Wayland although some of its component apps do. The latest version of LXQT, [18]1.30 , also has preliminary support for Wayland, but the older LXDE environment is now moribund and probably never will.
The PC industry is wildly varied and the lower end of the market features budget-priced kit which may mean that standard definition displays stick around for years to come. As such, the Apple Silicon Mac range may prove to be a harbinger of a future mass extinction event that's heading in the direction of the Linux market right now. Not only may a lot of the older Linux environments never make the transition to the brave new Wayland world, but this new Wayland-only Linux (and possibly FreeBSD) market may have significantly less backwards compatibility with older and non-open source UNIX OSes, simply due to no longer supporting X11. ®
Get our [19]Tech Resources
[1] https://social.treehouse.systems/@marcan/110354541574112092
[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZGT6JxL@5XdpoxNBA6WEpgAAAJg&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZGT6JxL@5XdpoxNBA6WEpgAAAJg&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZGT6JxL@5XdpoxNBA6WEpgAAAJg&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[5] https://www.theregister.com/2023/03/14/gnome_44_release_candidate/
[6] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZGT6JxL@5XdpoxNBA6WEpgAAAJg&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[7] https://www.theregister.com/2023/03/02/linux_mint_212/
[8] https://www.theregister.com/2023/03/10/thinkpad_x1c_g10_linux/
[9] https://www.theregister.com/2022/05/17/linux_desktop_feature/
[10] https://lists.freedesktop.org/archives/wayland-devel/2023-May/042714.html
[11] https://www.theregister.com/2023/02/27/lomiri_desktop_on_debian/
[12] https://www.theregister.com/2022/11/29/new_versions_of_ubuntu_touch/
[13] https://www.theregister.com/2023/03/02/linux_mint_212/
[14] https://www.theregister.com/2023/01/06/dragonfly_bsd_6_4/
[15] https://www.theregister.com/2021/10/28/x_org_1_21/
[16] https://www.theregister.com/2018/01/30/ubuntu_reverting_to_xorg_in_bionic_beaver/
[17] https://mate-desktop.org/blog/2021-08-08-mate-1-26-released/
[18] https://github.com/lxqt/lxqt/releases/tag/1.3.0
[19] https://whitepapers.theregister.com/
Re: Nope
Come back to me when I can run it across a network like I do with Xorg every day.
Re: Nope
X11 is awful and needs to die. It's a networked GUI that's terrible at being a networked GUI.
Running remote desktop over a 512KBit dsl connection via an SSH tunnel about 20 years ago was usable, the same SSH tunnel running an X app was unusable.
One of these is a system designed for networking and remote display from the get go, on hardware that was much much much slower than that of the time, the other is RDP, which was Citrix's bolting on networking to windows GDI.
RDP works well, X doesn't.
However, it's worth pointing out there are multiple X servers for windows. If you don't mind pissing around the the vanilla XOrg one works (or used to), otherwise get something like mobaxterm for better integration.
Re: Nope
Yes, X11 remoting does not really work smoothly unless you are on the same LAN. Which was its original use case anyway. On the other hand, an X11-based desktop over TigerVNC works just fine over a VPN tunneled through residential DSL (sans any sound, but for my uses I don't even need it).
I have so far steered clear of Wayland, but one of these days I will have to bite the bullet. Hope by that time it has some working remote feature.
Re: Nope
I must confess my hatred of X goes back a long way and may not be entirely rational. I just grew up with decent GUIs (Hi RISC OS) and using X always feels like using treacle for me, there seems to be a perceivable gap between any interaction and it's result, that I don't feel with other GUIs.
Wayland feels lovely in comparison.
Also, because X never actually had the decency to define a UI I can still experience the joys of Motif in 2023. I just discovered ddd the other day, lovely tool, but under wsl very 1970s motif'y.
You have this juxtaposition of a really powerful piece of software that looks old. Sure this doesn't really matter from a function point of view, but it's a jarring experience usability wise.
Had X had the decency to define (and render) the controls too then I suspect that the mishmash of horrible and still prevalent UIs would've been avoided.
Hope by that time it has some working remote feature.
Weston has RDP support. However [1]waypipe looks interesting too.
[1] https://gitlab.freedesktop.org/mstoeckl/waypipe/
Re: Nope
Depends on the X app. If the app designer 'knew' the graphic card was local and he could wait for a response after drawing each pixel then network performance will be awful. If the app designer did some thinking in advance to send as many commands as possible before waiting for a response then network performance is fine.
I always assumed sending an entire window full of pixels would be slower than sending the commands that draw them. To be fair, I never tried because X was fast enough.
* firefox needs the --no-remote option when used remotely. That one caught me by surprise.
Re: Nope
It's been some time since 'commands' were sent - i.e. drawing lines, placing fonts etc with complex drivers in the days of yore. Now it's more efficient to send pixel data.
You're also talking at a level below application development - no-one has talked raw X protocol for years, that's down to the underlying libraries.
Re: Nope
> no-one has talked raw X protocol for years,
Probably almost never, because that is what XLib is for. Applications and toolkits run on top of it. I believe it by default tries to combine consecutive X11 protocol commands.
It is true newer X11 programs do the drawing and font rendering themselves and push pixels, and that really breaks the original idea. I first encountered it with some bloated Java program, that was totally impossible to remote the plain X11 way. The GUI library redrew the entire window for every change (not sure if Java still does this, it was 20 years ago). Using it with VNC server worked. It looks like a X11 server to the application, but sends only the changed pixels (or rather changed blocks) to the remote client.
Re: Nope
> no-one has talked raw X protocol for years
No, but X11 has provided the infrastructure for NoMachine (currently the fastest modern competitor to RDP) and multi-session VNC to exist.
Without X11 we would be back to Windows 95 where the best you can do is screen scrape. Wayland is OK because it allows for multiple sessions in that regard. But unfortunately we are still back to "dumb" rasters, aka VNC. This will never be as efficient as utilizing a subset of an intelligent protocol.
If you have time; do compare NoMachine's X11 based offering against VNC or Waypipe. It is a little depressing as to the difference.
Also, the *fastest* solution we have, even beating Microsoft's annoyingly impressive RDP is X11 TCP/UDP (not tunneled through SSH) with an appropriate Xt-based toolkit like Motif. Looks like "old" but its performance far outpaces more modern solutions. For many use-cases, this really is the solution, still after all these years. And we are effectively going the wrong direction if we ever want to remedy that.
We might not care about remote desktop solutions personally (I prefer SSH); but someone who develops awesome software that we both use, just might need them... Hopefully Asahi Linux can one day fix this shortcoming.
Re: Nope
Well - did you see any of the weaknesses noted in the article (or post)?
Are any of those important to you on apple hardware?
This article comes with a complementary bucket of free sand for all readers. Feel free to stick your head in it.
The Apple Silicon market is a closed one, without the free choice of mix-and-match GPUs and displays found in commodity PCs.
I'm not sure this is true is it? You can attach any display to an M1 mac as they have USB-C and HDMI (I have 2 dells attached to mine), and as we're talking about Linux surely any PCI-E GPU connected over thunderbolt would work if there are Linux drivers for it? (Mind you if it uses a binary blob you would need an ARM64 one).
Apple doesn't provide third party drivers for M1 silicon on mac os, but there's no reason one couldn't be written for Linux.
It's worth reading the Mastodon thread in full
It basically boils down to 'Wayland is pretty much there, but you're going to have to do some work and may have to change your drivers'. It's not yet mature but without people attempting to switch it probably will never be there.
The problem is that if you have an edge case or complex configuration Wayland will not be a solution out of the box, and some of the commentators have a hard time dealing with real life constraints to ideological purity. For instance, the idea the resolution should not change, which doesn't sit well with games and full screen video playback.
Going to look at moving this FreeBSD box to Wayland - AMD and Intel should support it, and Nvidia support is now in testing for more recent cards (most cards younger than about 6-7 years old).
I do like X, but remoting can be a pain, and a non mainstream WM is used (I prefer cwm) it really does not play well with poorly written pieces of software that assume the existence of a full desktop environment, complete with dbus and APIs to add desktop icons.
There is, as ever, a 'Unix is not just Linux' problem. Wayland isn't in a bad shape in FreeBSD, is there to some extent in NetBSD, and due to lack of resource, not a priority for OpenBSD at the moment.
This guy is using his recent position of popularity to spread FUD about Xorg like a little child. He really is either a massive moron, or a snake pushing his agenda. These key points (echoed from my posts on Phoronix).
> "along came xf86-video-modesetting, which was supposed to be the future"
It is *still* the future. Most Wayland compositors use this exact Xorg driver as a starting point. They merely call it a "backend" rather than "driver".
> "but modesetting couldn't even handle tear-free output until earlier this year (2023)"
Uhh... so its still solved then... Perfect. Wayland is no longer needed. Problem solved.
> "That was in 2015. And here's the problem: X was already dying by then."
Is just nonsense weasel speech. What is dying? Linux? Grow up
> "Deal with it. The major players in desktop Linux have decided it's time to move on from Xorg"
No they haven't. A couple of desktop environment projects have perhaps to facilitate a tighter integration. Many Linux users don't use a desktop environment.
Take your Apple-style "Deal with it" nonsense and shut the fsck(8) up please.
Translating his whole drivel is simply:
> "Asahi Linux as a project doesn't have enough manpower to get the current industry standard display system working"
And that's fine. There are plenty of incomplete system ports in the same boat. You don't have to lie about your shortcomings. You are doing your best, people don't blame you for that.
@karlkarl
An industry standard in Linux? Really?
Haha, god no!
Established by UNIX but greatly benefitted from by Linux. That is why it would be so bizarre to think this level of industry standardization could happen again unaided, and within the Linux community.
They won't realize what they had until it is too late!
If Asahi Linux can't get Xorg working on recent Apple hardware, I know OpenBSD and Xenocara (X11) has made excellent progress. Perhaps migrate to that instead. Fantastic security to boot!
Quote from OA
"Xwayland will be supported, so that X.org apps will run under Wayland based desktops"
So when these Apple Silicon Macs start to appear on the second hand market, people will be able to run any of the software they need. Sounds fine as a starting point. I'm sure people will start tinkering...
Question: will this work on Asahi for the version of ARM that Apple have produced have a knock on to lesser kinds of ARM by generic laptop makers? I'd like some of this 15 hour battery life.
Icon: obvious really
Nope
Sorry, but X11 works on pretty much everything (except, of course, Microsoft Windows, quelle surprise) whereas Wayland is still in its infancy.
Come back to me when it has multiple decades of interoperability like X11 has (OK, I carry it over SSH tunnels but that's about it).