News for hackers. Stuff that matters.
Re:The X.Org Server Is Abandonware? by swiley on Sunday October 25, 2020 @08:25AM (#24885769)
Sure X.org is abandonware but there are serious problems Wayland still hasn't solved that X has.

1) Wayland is really slow. I don't know if it's the compositing or what but it's unusable on lighter hardware that X ran fine on.

2) Widget toolkits handling window decoration is awful. Before the large number of toolkits just meant some controls were a little different but now basic behavior changes based on how programmers decided to build an app. And if you don't like the window decorations (say, they take up too much screen space) your choices are suck it up, or if you're lucky and willing to spend a bunch of time reconfigure every different toolkit your apps use.

3) basic stuff that worked fine on X11 doesn't work on wayland in the name of "security" (screenshots are a big one, there are extensions but isn't that the complaint about X? And if there's a security problem with something isn't hacking around with it because people need it a really strong indication that the idea is broken and probably making the situation worse?)

Re:The X.Org Server Is Abandonware? by solarkraft on Sunday October 25, 2020 @10:00AM (#24886318)
> Wayland is really slow.

I think you don't mean that the Wayland protocol forces slowness but that the compositor you used was slow. The one I use is fast.

> And if you don't like the window decorations (say, they take up too much screen space) your choices are suck it up, or if you're lucky and willing to spend a bunch of time reconfigure every different toolkit your apps use.

No, there are protocols to negotiate whether an app has server side decoration or not and the compositor has the last say.

> basic stuff that worked fine on X11 doesn't work on wayland in the name of "security"

On only the core Wayland protocols you're absolutely correct, you can't even implement desktop shells with those. This means there must be extensions and there are 3 different classes: KDE, GNOME, wlroots, with tools for and incompatibility between each. The wlroots extensions are designed to be accepted into the standard and for wider Wayland acceptance they probably should be.

Screen sharing is still a particular issue that we are starting to see solved with the advent of Pipewire.

Wayland desktops are definitely usable. I've been happy with a wlroots based one (Wayfire) for a few months and KDE before that (from what I see GNOME has been perfect for a while).

One of the last standing real issues I'm facing is kerfuffle with Nvidia drivers, especially the ones paired with Intel GPUs, but I think (surprisingly) Nvidia are actually working on fixing that.

Re:The X.Org Server Is Abandonware? by mort96 on Sunday October 25, 2020 @11:37AM (#24887061)
> No, there are protocols to negotiate whether an app has server side decoration or not and the compositor has the last say.

The compositor can implement that protocol and just respond with "this compositor doesn't support SSDs". GNOME does this, so all toolkits must use CSDs if they wanna work on the most popular Wayland compositor.

Incidentally, that's hell for all the simple libraries out there which just exist to get a GL window on the screen. GLFW, GLEW, SDL, etc. all have to implement CSDs now if they wanna work with Wayland. It also means that it's no longer feasible to just make a Linux application which uses the windowing system directly; everything must use a huge toolkit now.

EDIT: To clarify, I don't think this is an issue with Wayland, but with GNOME. There's no reason it couldn't have supported SSDs like every other Wayland compositor. But as it stands, it hurts the Wayland ecosystem.

Re:The X.Org Server Is Abandonware? by cycloptic on Sunday October 25, 2020 @12:41PM (#24887579)
GLFW and SDL are looking at using libdecoration to draw CSDs. Yes it's an additional dependency but most applications won't need to worry about it unless they need it.

The way GNOME is built it's not really possible architecturally for them to support SSDs in Wayland. Maybe that will change if they ever get around to redesigning mutter and gnome-shell, but I wouldn't wait for it.

Re:The X.Org Server Is Abandonware? by mort96 on Sunday October 25, 2020 @01:00PM (#24887750)
I've seen libdecoration, and yeah, that seems like their intended solution to this. It doesn't seem like a terrible solution, but last time I looked at it at least, libdecoration was a long way off being production ready, and GNOME with Wayland is shipping _right now_ and must be supported.
Re:The X.Org Server Is Abandonware? by cycloptic on Sunday October 25, 2020 @01:12PM (#24887885)
You can use a library like that or you can draw your own decorations. There unfortunately is no other option. I don't see it as being likely that GNOME will support SSD any time soon, it just isn't designed for that.
Re:The X.Org Server Is Abandonware? by solarkraft on Sunday October 25, 2020 @02:18PM (#24888551)
> There unfortunately is no other option.

Gnome could stop being unreasonably obstructionist, but that indeed seems unlikely.

Re:The X.Org Server Is Abandonware? by cycloptic on Sunday October 25, 2020 @02:34PM (#24888670)
What would it take for something not to qualify as being "unreasonably obstructionist" to you? If there's an open source desktop project that has infinite resources to redesign and rewrite everything at will at a moment's notice, then please let me know. I'll gladly use it. Hell, I'll sign up as a developer.
Re:The X.Org Server Is Abandonware? by bigbubba on Sunday October 25, 2020 @02:46PM (#24888762)
Have GNOME devs yet acknowledged that XFCE exists? In one now infamous exchange with Transmission developers a GNOME dev claimed that he didn't even know what XFCE was and, furthermore, that cross platform applications like Transmission should choose whether they would be "GNOME apps or XFCE apps", suggesting that they can't be both. The context of this exchange was that GNOME developer asking that a feature be removed from Transmission because GNOME would no longer support it.

That's just one example, but GNOME has a reputation for not respecting Linux desktop diversity for a reason.

Re:The X.Org Server Is Abandonware? by cycloptic on Sunday October 25, 2020 @03:06PM (#24888954)
I had to dig up the comment you're talking about but just to put this in perspective: You are forming your current opinion about entire communities based on one comment made by one developer 10 years ago. I'm fascinated by all this open source that's out there but if you told me that a developer had to know every single open source desktop out there in order to contribute to one of them then I can't really get behind that. It's very hard to keep track of what everyone's doing all the time.

But in any case I don't understand what is contentious about that. Some pieces are shared between GNOME and XFCE, but a lot of pieces are different and applications have always needed to choose. If they weren't trying to be different they wouldn't have made a separate desktop environment with their own separate libxfce libraries and components. (To GNOME's credit, they have gotten rid of most of the "libgnome" things since then, but now an application that wants to speak to certain GNOME-specific pieces is usually expected to use their private dbus protocols, things that XFCE would never implement anyway)

Re:The X.Org Server Is Abandonware? by bigbubba on Sunday October 25, 2020 @03:15PM (#24889046)
> You are forming your current opinion about entire communities based on one comment made by one developer 10 years ago

Incorrect. I am using a single example to illustrate a trend. A single example to illustrate what "unreasonably obstructionist" looks like. That particular incident made everybody roll their eyes but it hardly surprised anybody because GNOME has earned this reputation. Even back then nobody was particularly surprised by the GNOME arrogance, and I've not seen this change.

(Also, maybe I'm getting old but 10 years ago really isn't that long ago.)

Re:The X.Org Server Is Abandonware? by cycloptic on Sunday October 25, 2020 @03:49PM (#24889322)
Please don't use this kind of hyperbole. It's really not an interesting conversation when it leads into platitudes like "everybody did this" and "nobody did that" and "an entire group of people is arrogant and obstructionist" which neither of us have any way of proving or disproving. I wish this open-source-holy-war type of comment was not so common on Reddit and HN, it's about as constructive as the endless Emacs and Vim flame wars.

If you're trying to illustrate the trend that GNOME and XFCE (and KDE, and LXQT, and MATE, and Budgie, and Mint...) all have different goals and ideas for how applications should behave then yes, I would say that much is obvious by now, and it has only gotten more obvious over the last few years. If you have a technical solution to this then I'd love to hear it, but aside from that I don't care to bicker about whose fault it is that your applications broke, because honestly no answer is going to pleasing for you to hear. Unless I'm mistaken then we aren't paying customers, this is all just random no-warranty open source and there's no support hotline that's going to care about what's broken.

Re:The X.Org Server Is Abandonware? by bigbubba on Sunday October 25, 2020 @04:43PM (#24889735)
Transmission never broke. GNOME devs requested that Transmission break itself on non-GNOME platforms. Falling back on 'well you're not paying anything' really does nothing to dispel the perception that GNOME devs don't play nice with others. If anything, it cements it.
Re:The X.Org Server Is Abandonware? by cycloptic on Sunday October 25, 2020 @05:28PM (#24890046)
If nothing broke then I don't see what the problem is. And, your assertion doesn't even seem to be correct. I re-read the bug and it's one GNOME developer suggesting for changes to be made only in GNOME 3, because support for a particular feature was deprecated upstream. The developer is apologetic and later goes on to make suggestions about what can be done in Ubuntu and XFCE. I see nothing there about "GNOME devs requesting that Transmission break itself." https://trac.transmissionbt.com/ticket/3685

I'm not trying to dispel any perceptions either, if you have a deep seated belief that GNOME (or XFCE, or anything really) are "not playing nice" because they removed features from upstream, there's nothing I can really say to you to change that view. If you want to challenge your own perceptions, I'd suggest you start developing a new open source desktop and application platform yourself over a period of many years just to see how much work it is, and how it's practically impossible to support everything that every app developer asks for when none of them are paying you a cent.

Re:The X.Org Server Is Abandonware? by mort96 on Sunday October 25, 2020 @01:23PM (#24887976)
I know, and that's kind of what I'm complaining about. There's no reason it couldn't support SSDs.
Re:The X.Org Server Is Abandonware? by cycloptic on Sunday October 25, 2020 @01:34PM (#24888111)
I was trying to be clear here: There is a reason and it's that it's not really possible architecturally for them to support SSDs in Wayland; doing so would require a redesign of significant parts of the compositor's code. I'm sorry if that was misunderstood. If you're trying to say they should have anticipated this and made a different architectural decision years ago, maybe that's true, but that also offers no practical solution to the applications that need to support it right now.
Re:The X.Org Server Is Abandonware? by mort96 on Sunday October 25, 2020 @02:00PM (#24888354)
I am trying to say that maybe they should have made the architectural decisions which wouldn't prevent non-GTK applications from working in GNOME. That's all.
Re:The X.Org Server Is Abandonware? by cycloptic on Sunday October 25, 2020 @02:20PM (#24888567)
I don't know what you're trying to get at. We can sit here and argue and say they should have done this and they should have done that, but that doesn't help anybody who wants support for them at this current moment.

And please don't exaggerate, non-GTK applications do work in GNOME. Qt5 has native CSDs that will show up in GNOME. If the application is a game or something that doesn't support CSD then the experience is somewhat degraded but they still work. You can resize and move any window by holding Super and Left/Middle clicking. I won't pretend the situation is ideal but I also don't believe it's totally unusable or on a bad trajectory at the moment—like I said the other libraries are working on getting CSD support too.

Re:The X.Org Server Is Abandonware? by ywei3410 on Sunday October 25, 2020 @12:42PM (#24887589)
> GLFW, GLEW, SDL, etc. all have to implement CSDs now if they wanna work with Wayland.

I honestly don't understand what you're talking about here? If you want to get a window on the screen with OpenGL or Vulkan you don't implement anything special for Wayland.

In fact with Vulkan+Wayland, it's fairly easy to do it without any third-party dependencies, with OpenGL you'll probably need EGL which is a Khronos dependency. Here's some slightly outdated example code [1].

[1] https://gist.github.com/Miouyouyou/ca15af1c7f2696f66b0e01305...

Re:The X.Org Server Is Abandonware? by mort96 on Sunday October 25, 2020 @12:53PM (#24887689)
If you just create a Wayland window, GNOME will draw _only_ that window, with no decorations. The window can't be moved, minimized, resized, etc. because there's no decorations. The window's content shows up, but that's it.
Re:The X.Org Server Is Abandonware? by ywei3410 on Sunday October 25, 2020 @01:24PM (#24887996)
I don't believe that's correct. The move, minimize, full-screen and resize seems to be part of the xdg_shell protocol (which has no extra methods for decorations and is only for window roles etc...) under the configure event [1]. I suspect that's how the tiling window managers like sway do it without extra server-side decorations.

Possibly this is a subtle distinction, but I do think it matters.

[1] https://github.com/wayland-project/wayland-protocols/blob/ma...

Re:The X.Org Server Is Abandonware? by mort96 on Sunday October 25, 2020 @01:58PM (#24888328)
Sway does server-side decorations. It draws window borders and a title bar for you, and handles the drag events in the title bar and borders for you.

Go ahead and make a basic Wayland window in GNOME. Compare the user experience to KDE or Sway.

Re:The X.Org Server Is Abandonware? by ywei3410 on Sunday October 25, 2020 @03:40PM (#24889255)
I believe you misread my comment; I said that the full-screen, minimize, re-size isn't part of the server-side decoration extension, but was part of a more basic xdg_shell protocol through the configure event.

I was objecting to the fact that you said that windows did not have this capability without the server-side extensions, whereas I think they can be through configure. I did not dispute whether sway had server-side decorations or not.

Re:The X.Org Server Is Abandonware? by bigbubba on Sunday October 25, 2020 @02:03PM (#24888389)
> The [compositor] I use is fast. [...] I've been happy with a wlroots based one (Wayfire) for a few months

wlroots performed very poorly on my i5-3427U with 4000 series iGPU. Very poorly. I ended up using neither X nor Wayland and instead having mpv render straight to the frame buffer (--vo=gpu --gpu-context=drm)

Re:The X.Org Server Is Abandonware? by emersion on Sunday October 25, 2020 @06:27PM (#24890601)
I'm a wlroots developer, and I'm using an old Sandybridge mobile i5 CPU daily. So I'm pretty surprised about this. I'd be interested in a bug report if you were to try again.
Re:The X.Org Server Is Abandonware? by swiley on Monday October 26, 2020 @10:08AM (#24896297)
I'll agree with this post. Wayland is not pleasant on my core i5 machine either. I should point out that the GPU it has is very weak, I don't know what it is but most 3d games are unplayable.

X.org, Firefox, and Xterm all work very well on it though. As do other apps like gschem and openscad.

Re:The X.Org Server Is Abandonware? by emersion on Monday October 26, 2020 @04:36PM (#24901074)
"Wayland" is just the protocol, can you give more details about your setup? For instance, GNOME is more heavyweight than say Sway (and gives a more feature-ful and eye-candy user experience in return).
Re:The X.Org Server Is Abandonware? by linuxdaemon on Sunday October 25, 2020 @01:44PM (#24888218)
I am forced to use ms teams for work. Every time I attempted to share my desktop, teams would crash. I thought it was just because teams sucks. As it turns out, it seems to be that running under wayland was actually causing it. Everything works fine under x.org. After I was running with x.org for a couple days, I realized there are quite a few little oddities that I just lived with and didn't realize it was because wayland was actually messing things up.
Re:The X.Org Server Is Abandonware? by aorth on Sunday October 25, 2020 @02:42PM (#24888729)
Teams is an Electron app (like Skype, Signal, VS Code, Atom, etc), which is based on Chromium. Chromium doesn't have Wayland support yet so those run via XWayland. Things should get better once Chromium supports Wayland properly (soon, as it finally entered beta in 2020-09):

https://www.phoronix.com/scan.php?page=news_item&px=Chrome-8...

Re:The X.Org Server Is Abandonware? by Arnavion on Sunday October 25, 2020 @03:09PM (#24888983)
Electron running on Wayland natively isn't relevant to its ability to screen-share. Even if it were running on Wayland it wouldn't be able to screen-share just based on that alone, because having a Wayland window doesn't have anything to do with screen sharing.

Native applications these days have the option to use pipewire and xdg-desktop-portal for screen-sharing, and it doesn't matter whether they use that from a Wayland window or an Xwayland window. Both Firefox (under Wayland) and Chromium (under Xwayland) use this method today.

Unfortunately Teams does not use that method and instead calls an X function directly, which crashes, as I wrote in the sibling comment.

Re:The X.Org Server Is Abandonware? by Arnavion on Sunday October 25, 2020 @02:14PM (#24888515)
Yes, Teams uses a function that is unsupported by Xwayland (XGetImage, if I remember the backtrace correctly), so it crashes. I worked around it with a rather convoluted setup that involves running Xephyr under Xwayland, then running Teams under Xephyr (via setting `DISPLAY`), and running vncviewer under Xephyr connected to a VNC server (wayvnc) sharing my screen on the parent wayland instance. Then I tell Teams to share the "whole screen" (ie the entire Xephyr window) and quickly maximize the vncviewer window (within the Xephyr window).

To be able to maximize vncviewer you do need a compositor running under Xephyr too. I picked i3 to be the most minimal. Again, i3 can be told to run in the Xephyr window by setting `DISPLAY`.

One caveat is that I still use Teams under Wayland to join calls for the audio, so this setup means I need two Teams instances to join the same call. This works for meetings but not for individual calls. Of course if you want to use the Xephyr'd Teams to do audio too there shouldn't be any problem; I just prefer having easy access to the Teams window to mute myself, etc instead of having to reach into the Xephyr window and unmaximize the vncviewer window.

People on the #sway IRC channel on Freenode suggested an alternative might be to use v4l2loopback to create a "camera" device that is sourced from the screen and then have Teams use it as a webcam, but I couldn't get v4l2 to work on my distro (it kept insisting my distro's ffmpeg couldn't encode video even though it could) so I didn't investigate further.

Re:The X.Org Server Is Abandonware? by michaelmrose on Sunday October 25, 2020 @03:38PM (#24889234)
I salute your creativity and tenacity but what the actual fuck the need for a rube goldberg setup in order to make an application work is ... unfortunate. If I did such a thing I would take one last look to take pride in my work before deleting the whole affair and installing an OS that isn't broken.
Re:The X.Org Server Is Abandonware? by Arnavion on Sunday October 25, 2020 @03:50PM (#24889328)
Well, I knew what I was signing up for when I decided to switch from X to Wayland, so I'm personally okay with it. It's the same with doing anything that isn't mainstream, such as my decision to use Linux in a workplace where a lot of stuff is Windows-first, and sometimes Windows-only. The best thing the iPhone did to the world was to make web applications more popular, and as long as Safari lags on web standards it pushes websites to not use Chromium-only features and give Firefox users like me a chance.

Anyway, a less convoluted setup might be to use the browser version of Teams in a browser where it allows you to screen-share, ie Chromium and not Firefox. IIRC when I tried it a few months ago people on the call said they could only see me broadcasting a black screen, but I know the browser is fine so it had to have been a Teams issue. Maybe it's fixed now.

Hopefully these applications will catch up soon. As another example, Zoom's native Electron application uses a GNOME-specific method of screen-sharing which doesn't work in non-GNOME DEs, but I've heard the browser version works fine.

Re:The X.Org Server Is Abandonware? by martinsb on Sunday October 25, 2020 @04:14PM (#24889521)
Re: black screen when using Teams from browser. Check you have environment variables set correctly: XDG_SESSION_TYPE=wayland and XDG_CURRENT_DESKTOP=sway. I set up them in my .zshrc before starting sway. This helped me to fix the black screen issue. Hope it helps you too!
Re:The X.Org Server Is Abandonware? by Arnavion on Sunday October 25, 2020 @04:20PM (#24889561)
If those env vars weren't set screen-sharing with xdpw would be broken as a whole because pipewire wouldn't invoke it, which wasn't the case. Other applications like that one python gstreamer script could access xdpw just fine, and Firefox and Chromium could screen-share in other websites (like Mozilla's gUM test page) just fine; the only one broken was Teams.
Re:The X.Org Server Is Abandonware? by tbr1 on Sunday October 25, 2020 @04:03PM (#24889433)
The v4l2 trick "works", but usually the application will use a lossy video codec optimized for faces, not screens. wf-recorder to v4l2 as a poor-man's screenshare to Discord ends in a blurry mess. YMMV with Teams.
Re:The X.Org Server Is Abandonware? by SweetestRug on Sunday October 25, 2020 @03:15PM (#24889038)
I had the exact same problem - as others have already said, its a problem with electron not having Wayland support. I solved it in two different ways:

- An unofficial Teams app (https://github.com/IsmaelMartinez/teams-for-linux) which works great - screen sharing works without problems, no crashing, and native notifications!.

- Use teams in qutebrowser: the dev (The-Compiler) added support for screensharing and it works great. Just like the unofficial app above, it also has native notifications, not the weird popup notifications of the official app.

Re:The X.Org Server Is Abandonware? by blibble on Sunday October 25, 2020 @03:27PM (#24889136)
> Wayland is really slow.

as a counterpoint: my sway (Wayland) system is the first one I've ever had where I can watch youtube, or vlc/mpv at 60fps without flickering, dropping frames or tearing

I've used nvidia and radeon cards, plus intel onboard in this machine with X and none of them allowed all of the above

the display server also remains responsive even if one client starts going nuts

generally sway is considerably more responsive on the same system than the Xorg it replaced

I am very happy with it

Re:The X.Org Server Is Abandonware? by tutfbhuf on Sunday October 25, 2020 @04:02PM (#24889428)
> first one I've ever had where I can watch youtube, or vlc/mpv at 60fps without flickering, dropping frames or tearing

Have you tried Picom?

https://wiki.archlinux.org/index.php/Picom

Re:The X.Org Server Is Abandonware? by derefr on Sunday October 25, 2020 @04:21PM (#24889570)
> And if there's a security problem with something isn't hacking around with it because people need it a really strong indication that the idea is broken and probably making the situation worse?

If there’s a security problem and people are hacking around it, that’s an indication that the either those people have bad needs, or that the security model is flawed — but it’s not an indication that it’s wrong to attempt to secure that resource in the first place.

If a janitor needs the nuclear-missile launch codes to clean the missile silo, you’ve probably fucked something up — but that “something” isn’t the fact that the missile silo doors are code-locked. (Instead, it’s probably 1. the fact that you’re using the same credentials for physical missile access as you are for missile launch, and 2. the fact that your regular janitor is expected to clean the missile silo.)

In this case, the security model of Wayland is the same kind that Windows and Android already have: preventing “low-integrity” apps from screen-scraping “high-integrity” apps. In other words, preventing a random webpage running in Chrome from stealing your credit card details sitting visibly in a sibling text-editor window.

(Or, of course, preventing you from Twitch-streaming your playback of DRMed Netflix video. That’s a use-case that “needs supporting” too, given that the alternative is that type of video not playing back on the platform at all.)

Re:The X.Org Server Is Abandonware? by danaris on Monday October 26, 2020 @11:42AM (#24897379)
I guess my question is: Why shouldn't "take a screenshot, either of a window, the whole screen, or a portion of the screen" be something that Wayland itself be expected to handle?

I mean, if you're worried about security of apps from other apps, don't make it something in the apps' domain. Only allow Wayland to take the screenshots, but support that, make it easy, and you won't need to worry about either the security model or users complaining.

I mean, this is the way other OSes do it...to the best of my knowledge (which is certainly not comprehensive) neither Windows nor macOS allow arbitrary apps to screenshot arbitrary portions of the screen; that's handled by the OS itself.

Re:The X.Org Server Is Abandonware? by derefr on Monday October 26, 2020 @01:23PM (#24898613)
I think that (the compositor doing the screenshotting) is already the way it works. But "screenshots" (i.e. fed to the user as files / on the pasteboard) are the exception, not the rule, of the use of this API.

The normal, non-edge-case use of the relevant screen-capturing API is for screen-sharing ala Zoom, or for remote desktop using RDP et al. These are use-cases where one app wants to see what's going on in other apps — exactly the thing you wouldn't want a malicious app to be able to do, but also exactly the thing that you do want these apps to be able to do.

Re:The X.Org Server Is Abandonware? by SweetestRug on Sunday October 25, 2020 @12:00PM (#24887250)
> Wayland is really slow

I have to wonder if this is distribution dependent? On Manjaro my experience with Wayland has been fantastic. I cannot perceive any speed differences vs X.org; Wayland just flies.

It would be interesting to poll users and see just what factors are contributing to speed issues. GPU? CPU? Distribution? Wlroots vs Gnome? etc. Learning more about what users experience could be helpful in making Wayland better. Has anyone done this?

Re:The X.Org Server Is Abandonware? by ironmagma on Sunday October 25, 2020 @03:01PM (#24888911)
This is a great idea. So many Linux issues go undiagnosed because the response is so often “it works fine for me, on my <insert insanely overpowered system specs here>.”
Re:The X.Org Server Is Abandonware? by sergeykish on Sunday October 25, 2020 @05:42PM (#24890149)
I've found GamingOnLinux statistics [1]. Mostly X11, wayland 7%. But look at the other data:

* Both Ubuntu and Arch based distro 40%

* Manjaro helped a lot 15%

* Both AMD and Intel 50%

* AMD GPU 40% and rising

* Open source GPU driver 43% (almost all of it AMD)

* 10% own VR Headset

[1] https://www.gamingonlinux.com/index.php?module=statistics&vi...

Re:The X.Org Server Is Abandonware? by microcolonel on Sunday October 25, 2020 @03:28PM (#24889149)
Yeah, I think there are a lot of distro bugs, and a lot of old or mismatched packages, outside of the Arch/Manjaro ecosystem. This hurts the impression of Mesa, the Kernel, and basically anything else like this where there's no good reason conventional distros shouldn't ship new feature releases at least a bit more frequently than they do.
Re:The X.Org Server Is Abandonware? by pengaru on Sunday October 25, 2020 @03:35PM (#24889201)
> 1) Wayland is really slow. I don't know if it's the compositing or what but it's unusable on lighter hardware that X ran fine on.

Presumably your compositor is using llvmpipe software rendering if it's so slow.

Unaccelerated Xorg using something like the vesa driver is slow too.

Re:The X.Org Server Is Abandonware? by swiley on Monday October 26, 2020 @09:38AM (#24896014)
I own machines that have no hardware acceleration (I had to remove the kernel modules and use the efi framebuffer because the drivers would crash.)

Xorg is absolutely usable on such machines with compositing disabled, wayland is not.

Re:The X.Org Server Is Abandonware? by pengaru on Monday October 26, 2020 @10:14AM (#24896362)
> Xorg is absolutely usable on such machines with compositing disabled, wayland is not.

For this comparison to make any sense at all you need to state which Wayland compositor, Wayland is a protocol.

Re:The X.Org Server Is Abandonware? by circlingthesun on Sunday October 25, 2020 @03:27PM (#24889142)
It apparently also lacks good color management. https://www.reddit.com/r/wayland/comments/ihi1wm/xwayland_ov...
Re:The X.Org Server Is Abandonware? by goatinaboat on Sunday October 25, 2020 @08:33AM (#24885821)
Wayland is really slow. I don't know if it's the compositing or what but it's unusable on lighter hardware that X ran fine on.

This is crazy when you think about it. I remember running an X server, Hummingbird I think it was called, on 386 and 486 machines connecting to Suns and it was fine, this was a perfectly acceptable way to work. Couple of xterms, an Emacs, xbiff for email, maybe some xeyes just for fun. Developing with Tcl/Tk and running those applications. Now we have several orders of magnitude more CPU, memory, network and Wayland doesn't even perform as well as that! My mind is truly boggled.

Re:The X.Org Server Is Abandonware? by folkhack on Sunday October 25, 2020 @10:00AM (#24886319)
Yeah - I have no clue why you're being downvoted. I have the exact same professional experience where Wayland is slow out-of-box vs X. I also share the experience of getting X to work on ancient hardware without much difficulty.

Let's be real here - if you're needing something to "just work" you're going to install X. Sorry Wayland, you're just not there yet.

Re:The X.Org Server Is Abandonware? by DyslexicAtheist on Sunday October 25, 2020 @12:10PM (#24887315)
> Yeah - I have no clue why you're being downvoted.

I didn't downvote but it's because parents comment are anecdotal and not providing further data one might be able to engage/confirm/refute ... and therefore I learned nothing from reading it.

I'm also running a dual setup of i3/sway and the only reason why I still keep i3 around is screen-sharing in jitsi and similar. and my experience is that wayland has a lower use of CPU/memory than when running X (i3) but it's not why I prefer sway. (I'm using sway with "xwayland disable" so maybe this is where a lot of resources are saved). But the whole discussion is pointless without verifiable benchmarks.

Re:The X.Org Server Is Abandonware? by asveikau on Sunday October 25, 2020 @12:36PM (#24887534)
Well, the anecdotes are kind of real, and vast in numbers. I suspect many readers here never used X on a 90s PC or workstation, so they could be forgiven for not realizing it was up to the task on hardware that is now pitiful.

Another example I like is the Nokia N900, which ran X on a phone no less, phone hardware from 2009, and it was pretty good there.

Part of the problem is surely software bloat over time on higher parts of the stack, rather than X itself. You couldn't get the 486 in the comment above to run recent gnome or a recent browser. But you could run software of the era well.

Re:The X.Org Server Is Abandonware? by tutfbhuf on Sunday October 25, 2020 @04:09PM (#24889478)
Maybe someone could try to install Wayland on an old device, where latest Xorg works fast, and see if Wayland also does. Comparison video would be nice.
Re:The X.Org Server Is Abandonware? by adwn on Sunday October 25, 2020 @10:42AM (#24886638)
For what it's worth, whenever I tunneled X over a non-local SSH connection, it was slow as molasses. That's because almost all contemporary GUI applications render to a bitmap anyway. Those that actually use the outdated X vector graphics operations look like utter garbage compared to anything post-1995. Frankly, I'd rather my applications are at least somewhat aesthetically pleasing.
Re:The X.Org Server Is Abandonware? by jleahy on Sunday October 25, 2020 @10:50AM (#24886695)
I routinely use modern X applications running on a remote (25 miles) machine, all day long as part of my job.

It works flawlessly if you have a reasonable amount of bandwidth and reasonable latency.

Sure, it doesn’t work over dial-up.

Re:The X.Org Server Is Abandonware? by kllrnohj on Sunday October 25, 2020 @11:53AM (#24887203)
Of course it does, just like video-based remote desktop systems work great these days.

That's the point, X's claimed advantages here long since stopped existing, and nobody noticed because the "inferior" approach is perfectly fine with modern internet connectivity.

Re:The X.Org Server Is Abandonware? by MayeulC on Sunday October 25, 2020 @11:01AM (#24886774)
Honestly, X forwarding doesn't work that well in my experience, unless you have a very stable connection, with quite a bit of bandwidth (~1Mbps at the very least). I've had more success using xpra for forwarding, as I'm often connecting over Wi-Fi (hostel, campus rooms...).

It's also rather complicated to set-up on the server side (xauth, magic cookie, etc).

waypipe, on the other hand, was a breeze to use, even though it's very young. I tried with Firefox and 500Mbps of upload capacity, it worked fine as long as the window wasn't too large.

Re:The X.Org Server Is Abandonware? by ajsnigrutin on Sunday October 25, 2020 @11:39AM (#24887076)
> It's also rather complicated to set-up on the server side (xauth, magic cookie, etc).

you mean "ssh -Y user@host..."?

Re:The X.Org Server Is Abandonware? by MayeulC on Sunday October 25, 2020 @02:17PM (#24888539)
No, that is the client side. I went back and looked at the documentation, I was wrong and conflated two ways of doing it:

- X forwarding over SSH: this only requires changing X11Forwarding in OpenSSH sshd's config

- Plain X over network, which is secured with `xhost`, insecure, and needs transfering the magic cookie or other authentication information

So, not nearly as complex to setup as I recalled, though it's much simpler to run a nested wayland compositor (which waypipe does) than a X11 server (which xpra does). The difference between X11 and Wayland remote access thins when xpra is involved.

https://stackoverflow.com/questions/37157097/how-does-x11-au...

Re:The X.Org Server Is Abandonware? by bromonkey on Sunday October 25, 2020 @02:18PM (#24888545)
that would be the client side
Re:The X.Org Server Is Abandonware? by sokoloff on Sunday October 25, 2020 @02:17PM (#24888532)
To me, it’s been a while since 1Mbps was “quite a bit of bandwidth”, even for WAN connections.
Re:The X.Org Server Is Abandonware? by hansvm on Sunday October 25, 2020 @02:23PM (#24888588)
Outside of major metros, in the US a lot of towns only offer up to 5Mbps down, and only then if you pay out the nose. Not sure if it matters for X forwarding, but upload caps are also ridiculously low even on otherwise reasonable connections.
Re:The X.Org Server Is Abandonware? by MayeulC on Monday October 26, 2020 @04:28AM (#24893915)
Pretty much this. With 5 Mbps down on ADSL, you can expect 300 to 500 kbps up. It can be hard to remote connect home under those conditions.
Re:The X.Org Server Is Abandonware? by MayeulC on Monday October 26, 2020 @04:30AM (#24893919)
> tried with Firefox and 500Mbps of upload capacity

That should have been 500 kbps

Re:The X.Org Server Is Abandonware? by goatinaboat on Sunday October 25, 2020 @12:17PM (#24887364)
Those that actually use the outdated X vector graphics operations look like utter garbage compared to anything post-1995. Frankly, I'd rather my applications are at least somewhat aesthetically pleasing.

That is entirely subjective no? Personally I think Motif is one of the pinnacles of GUI design.

Re:The X.Org Server Is Abandonware? by nullc on Sunday October 25, 2020 @02:37PM (#24888686)
I also agree, and even if I did think that the modern stuff with the impossible to see borders and the buttons that you can't tell were up and down looked better (I don't), I'd still prefer smooth remote operation.

Alas. That isn't the way the world has went, and it's extremely expensive to be weird.

Re:The X.Org Server Is Abandonware? by adwn on Sunday October 25, 2020 @02:53PM (#24888835)
Aesthetics is always subjective, but it's safe to say that most people today would find Motif to be rather ugly.
Re:The X.Org Server Is Abandonware? by a1369209993 on Sunday October 25, 2020 @03:39PM (#24889240)
> whenever I tunneled X over a non-local SSH connection, it was slow as molasses

And? Last time I checked, tunneling Wayland over a non-local SSH connection was slow as glass. Which is to say it didn't work at all.

Re:The X.Org Server Is Abandonware? by bmn__ on Sunday October 25, 2020 @11:59AM (#24887244)
x11vnc is the answer. Performs okay at 10000km (quarter Earth circumference).
Re:The X.Org Server Is Abandonware? by josefx on Sunday October 25, 2020 @05:18PM (#24889977)
> Those that actually use the outdated X vector graphics operations look like utter garbage compared to anything post-1995

Modern UIs could do with being a bit more like 1995. Most of my work is performance sensitive so the first thing that goes are all the desktop effects that try to barf pointless rainbows and glitter in my direction.

Re:The X.Org Server Is Abandonware? by gnufx on Sunday October 25, 2020 @10:35AM (#24886593)
For what it's worth, Exceed was never fine in my experience, and you were better off with the Cygwin server. At one time, the first thing to ask about certain sorts of Emacs problems that were reported was "Are you running Exceed?", with high probability the answer would be "Yes". I never understood why "we" paid for it. But, yes, X did always run on relatively low-resource machines. (I can't comment on how Wayland compares.)
Re:The X.Org Server Is Abandonware? by Flex247A on Sunday October 25, 2020 @08:40AM (#24885860)
What could be the reason behind this? Asking as a noob.
Re:The X.Org Server Is Abandonware? by p_l on Sunday October 25, 2020 @08:49AM (#24885910)
Part of it is toolkits throwing sometimes multiple megabyte bitmaps to draw, which starts to have problems the moment you don't have a zerocopy, gpu accelerated method to draw them.

The old core protocol approach extensively used optimized graphic operations on the server side, with clients sending things like "draw me a rectangle/fill a rectangle/draw a bunch of lines" etc. - today you're going to get pretty big bitmap (especially with high dpi).

It's the same problem that mobile devices faced, and is related to a lot of issues on how android devices were "janky" (and related to the various hacks that Apple did to make sure your application wasn't capable of overstressing the early iPhones - cause just displaying basic UI was close to doing that.)

Re:The X.Org Server Is Abandonware? by beowulfey on Sunday October 25, 2020 @08:48AM (#24885899)
I personally don’t know, but most likely when you are not forced to think about memory, efficiency, etc... most people just don’t. So if you aren’t actively developing on those lightweight systems your code won’t run efficiently on them.
Re:The X.Org Server Is Abandonware? by Flex247A on Sunday October 25, 2020 @11:56AM (#24887224)
I guess that explains why Electron based apps don't feel as snappy as native ones.
Re:The X.Org Server Is Abandonware? by Const-me on Sunday October 25, 2020 @04:45PM (#24889747)
Technically what Wayland is doing, using 3D GPU for everything, is the best way forward. Windows is using it since Vista. When done right, gradients mentioned in other comments are free, GPUs have hardware to interpolate values (such as colors) across vertices of triangle, for free. Many other effects are either free or very cheap.

Engineering-wise it's really hard.

Microsoft reworked GPU driver model introducing WDDM. They invented a new user-facing API for that, introducing Direct3D 10. They did that in close collaboration with all 3 GPU vendors. They made user-mode components like desktop compositor itself, dwm.exe, and higher-level libraries to benefit from all that stuff. Initially they were optional things like WPF, Direct2D, DirectWrite, then with Win8 they introduced WinRT later rebranded to UWP. That one is no longer optional and is the only practical way to render "hello world, GUI edition" in modern Windows (possible to do with DirectWrite or legacy GDI but neither of them is practical).

The problem "render nice high-resolution graphics, fast" affects everything, the entire stack. Modern Linux has decent kernel infrastructure (DRM/KMS), but even so, remaining challenges are hard. Linux has less luck with user-facing GPU APIs (Vulkan is not yet universally available, neither is GLES3+ or OpenGL 4.3+). For some GPUs, quality of drivers is less than ideal. OS maintainers oppose stabilizing kernel ABI for drivers. There's no high level GPU-centric graphics libraries, I tried once with moderate success https://github.com/Const-me/Vrmac but that only supports one specific Debian Linux on one specific computer which happens to support GLES 3.1, and some important features are missing e.g. no gradient brushes or stroked pens.

I don't see any large party interested in making that happen. At least not for desktop Linux. Valve started to do relevant things when they thought Windows 10 is going to kill their Steam business model, then it became apparent Microsoft won't make Win10 into an iOS-style walled garden, and they no longer have much motivation.

Re:The X.Org Server Is Abandonware? by danaris on Monday October 26, 2020 @12:33PM (#24897989)
> Technically what Wayland is doing, using 3D GPU for everything, is the best way forward.

It's great for the common desktop case.

It's not as great for some other cases in which Linux is the preferred platform (headless servers, repurposed old hardware, etc).

The problem isn't, of course, that there exists a solution for this on Linux. It's that that solution is being pushed as the only one that should be maintained—and thus, exist—going forward.

Re:The X.Org Server Is Abandonware? by Const-me on Monday October 26, 2020 @01:33PM (#24898721)
> It's great for the common desktop case.

Also phones and tablets. Also embedded devices who have a GPU + LCD, I have personally shipped Linux firmware where I used NanoVG on top of DRM/KMS to render touch screen GUI. Also for kiosks, cars, smart watches and many other applications.

It’s great everywhere you have a high-resolution screen. And it’s mission-critical for ARM devices who don’t have CPU power to render that screen on CPU, at least not at 60Hz.

> headless servers

Why would you want a GUI there? Even Microsoft has console-only “core” editions of their Windows Server, since 2008. They made it because competition from Linux, who had that from the very beginning and was thus way more suitable for cloud use cases. It still is due to other reasons, but that’s another story.

> It's that that solution is being pushed as the only one that should be maintained—and thus, exist—going forward.

I get why some people would want the X to be maintained, but the thing is, it’s very expensive, and not fun.

Developing game console emulators is expensive, but fun and people do that in their free time with great results. Moving forward GPU-targeted Linux GUI is expensive, not too fun, but there’re commercial applications with healthy profit margins (automotive, embedded, etc) so people from these areas are working on that tech. Patching x.org for repurposed old hardware, on the other hand…

Re:The X.Org Server Is Abandonware? by erik_seaberg on Monday October 26, 2020 @01:52PM (#24898948)
Wayland’s mistake is assuming every application has a local GPU. In reality the user has just one GPU attached to his monitor, which is fine for email and gaming, but serious tools run miles away in datacenters. We wouldn’t be rewriting everything in javascript if only we hadn’t forgotten how cool remote X was.
Re:The X.Org Server Is Abandonware? by Const-me on Monday October 26, 2020 @02:28PM (#24899395)
> but serious tools run miles away in datacenters

I work on a serious tool, specifically it’s CAM/CAE stuff. Despite Google, Amazon and MS sales people apply pressure to upper management (they want us to move to their clouds and offering gazillions of free compute credits), our software works on desktops and workstations, and I have reasons to believe it gonna stay this way. With recent progress of HPC-targeted CPUs, and steady downward trend of RAM prices, I believe our customers are happier running our software on their own computers, as opposed to someone else’s computers.

> We wouldn’t be rewriting everything in javascript if only we hadn’t forgotten how cool remote X was.

It was cool in the epoch of OpenGL 2. By the time Metal, Direct3D 12, and finally Vulkan arrived, it stopped being cool. Essentially, these APIs were designed to allow apps to saturate PCIe. You can’t transfer that bandwidth over any reasonable network.

Re:The X.Org Server Is Abandonware? by erik_seaberg on Friday November 06, 2020 @09:15PM (#25012800)
True, that’s one of the domains where you can assume everyone on staff has a really expensive workstation (sometimes for licensing reasons).
Re:The X.Org Server Is Abandonware? by Fnoord on Sunday October 25, 2020 @09:00AM (#24885964)
The compositor is evil [1]

[1] https://news.ycombinator.com/item?id=24466929

Re:The X.Org Server Is Abandonware? by pfortuny on Sunday October 25, 2020 @09:10AM (#24886013)
When a window bar needs a gradient, you are starting to stress the graphics engine... And that is just a simple bitmap (or not)...
Re:The X.Org Server Is Abandonware? by pmarin on Sunday October 25, 2020 @10:02AM (#24886327)
Re:The X.Org Server Is Abandonware? by pfortuny on Sunday October 25, 2020 @11:04AM (#24886802)
Wow thanks. I was saying that just in order to show the most basic example.
Re:The X.Org Server Is Abandonware? by goatinaboat on Sunday October 25, 2020 @08:53AM (#24885932)
What could be the reason behind this? Asking as a noob

Abstractions piled on top of abstractions. Something that might have been 5 function calls deep on either side with a carefully crafted packet in the middle is now 100s on each side.

We have a culture that prizes programmer happiness above all and this means everyone thinks "this is a mess, I'll put my own layer on top to make it nice, then work above that layer". Repeat 100 times and now you have processors literally 2000 times faster that struggle to even keep up with keypresses. But what noone wants to admit, is that it's messy because the problem domain is messy and sometimes you just have to live with the mess and get some real work done. The programmers of old understood this.

Re:The X.Org Server Is Abandonware? by adwn on Sunday October 25, 2020 @10:37AM (#24886602)
Okay, nice rant, but are too many layers of abstraction the actual cause for Wayland's (alleged?) slowness compared to X? From what I understand, no.
Re:The X.Org Server Is Abandonware? by Spooky23 on Sunday October 25, 2020 @10:33AM (#24886578)
Exactly. There’s no customer, so the product is a nerd carnival that delivers whatever the developers want.
Re:The X.Org Server Is Abandonware? by pmontra on Sunday October 25, 2020 @04:16PM (#24889530)
Anecdotally I run X11 on several Sun workstations (Motorola 680xx), a Dec Alpha (some RISC), HP X terminals, etc. All of them were reasonably fast or at least not any slower than the Windows and Mac boxes of the time (1990/95.)

We played videogames on them. Does anybody remember Netrek, Xtanks, and a F16 vs MIG flight simulator which I can't remember the name of?

Re:The X.Org Server Is Abandonware? by flyinghamster on Sunday October 25, 2020 @04:09PM (#24889475)
I think much of the problem is that today's systems have vast amounts of eye candy that was all but nonexistent back in the 80s and 90s. X terminals and 486s don't have the resources to throwing fancy visual effects on the screen, and sometimes might not even be color displays.
Re:The X.Org Server Is Abandonware? by swiley on Monday October 26, 2020 @09:39AM (#24896020)
I feel like I should point out I was thinking of my 64bit core-i5 machine when I made that comment. A 386 won't even run a modern Linux kernel.