|
|
Log in / Subscribe / Register

Hutterer: Is Wayland ready yet?

On his blog, Peter Hutterer answers the perennial "is Wayland ready yet?" question by pointing out that it really is not the right question. "The protocol is stable and has been for a while. But not every compositor and/or toolkit/application speak Wayland yet, so it may not be sufficient for your use-case. So rather than asking 'Is Wayland ready yet', you should be asking: 'Can I run GNOME/KDE/Enlightenment/etc. under Wayland?' That is the right question to ask, and the answer is generally 'It depends what you expect to work flawlessly.' This also means 'people working on Wayland' is often better stated as 'people working on Wayland support in ....'. "

to post comments

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 18:37 UTC (Fri) by zuki (subscriber, #41808) [Link] (61 responses)

> So rather than asking 'Is Wayland ready yet', you should be asking:
> 'Can I run GNOME/KDE/Enlightenment/etc. under Wayland?'
> That is the right question to ask

I think it's the wrong question. The answer is trivial: yes, you can.
A better question would be: are you better off running under wayland or under X?
Do the positives outweigh the drawbacks?

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 18:59 UTC (Fri) by newren (guest, #5160) [Link] (60 responses)

A bit fedora centric, perhaps, but links I like that explain what some of the current drawbacks are and ongoing work to address them:

https://fedoraproject.org/wiki/Wayland_features
http://www.spinics.net/lists/fedora-desktop/msg13110.html

(Primary Selection being particularly important to me.)

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 19:21 UTC (Fri) by josh (subscriber, #17465) [Link] (22 responses)

I used to care more about the primary selection, but these days, I only ever use it between gnome-terminal and other programs, and gnome-terminal also supports the clipboard.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 20:58 UTC (Fri) by raven667 (subscriber, #5198) [Link] (11 responses)

As another datapoint along those lines, on MacOSX the Terminal application implements its own primary selection pasting like X, and is the only part of the OS to do so AFAIK, so maybe there is a stronger use-case for the feature in a terminal than for the desktop as a whole.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 21:41 UTC (Fri) by josh (subscriber, #17465) [Link] (7 responses)

I only find relevant in the terminal because gnome-terminal uses different copy and paste keystrokes than the rest of the OS, to avoid conflicting with Ctrl-C and Ctrl-V in the terminal itself.

I've actually bound Ctrl-V to paste in bash (using readline bindings and xsel); in general, Ctrl-V seems less likely to conflict with bindings in standard terminal applications. (The only common application I know of is readline's "quoted-insert", also bound to C-q.) And I wonder if gnome-terminal could make Ctrl-C copy with text selected, and send Ctrl-C otherwise.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 11:48 UTC (Sat) by cortana (subscriber, #24596) [Link] (4 responses)

Ctrl+V usually runs 'verbose mode' which lets you type a character without it being interpreted by readline. For instance, Ctrl+V followed by Tab inserts a literal tab character into the command line, as opposed to triggering completion.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 14:07 UTC (Sun) by mgedmin (guest, #34497) [Link] (3 responses)

I think the V in Ctrl-V stands for 'verbatim' rather than 'verbose'.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 16:04 UTC (Sun) by cortana (subscriber, #24596) [Link]

You're quite right, thanks!

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 11:18 UTC (Tue) by Wol (subscriber, #4433) [Link] (1 responses)

I thought it was originally seen as "an arrow head pointing where to put it".

X and C were easy (X is a pair of scissors, C is copy), and because V fell neatly under the fingers, they wanted to find some meaning for it :-)

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 14:40 UTC (Tue) by mgedmin (guest, #34497) [Link]

I was talking about the libreadline/EMACS(?)/vim Ctrl-V binding, which is "insert the next character verbatim".

I've no idea if V has any mnemonic meaning for programs where it's used to paste text.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 13:37 UTC (Sat) by ballombe (subscriber, #9523) [Link]

I use C-V all the time in vim.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 19:22 UTC (Sun) by Seegras (guest, #20463) [Link]

You should not use standardized terminal control-codes for other purposes.

That's why command-C is prefectly ok for "copy", which Ctrl-C is not, because that means SIGINT.

Thankfully, you've all got these space cadet keyboards courtesy by Microsoft, where you can map "copy" to super-C or hyper-C ("windows" and "menu" or the other way round) or something.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 16:29 UTC (Tue) by drag (guest, #31333) [Link] (2 responses)

Putty tries to implement similar behavior in Windows (which I have to remember to disable every time I use Windows) with right click paste. It always screws me up because right click is supposed to bring up a menu, not inject semi-random bits of text into my terminals.

Terminals make the most sense for 'primary selection' because they are already so heavily overloaded legacy key bindings for every little application, so they can't follow the traditional PC 'IBM CUA' standard. However I have found ctrl-shift-c and ctrl-shift-v more then adequate for my purposes.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 18:26 UTC (Tue) by zdzichu (subscriber, #17118) [Link]

It's configurable in Putty, you can switch to paste-on-middleclick like $DEITY intended: Window → Selection → xterm (or Windows if you prefer menu on rightclick).

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 19:22 UTC (Tue) by lsl (subscriber, #86508) [Link]

Those CUA guidelines are neither standard nor traditional.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 16:23 UTC (Tue) by drag (guest, #31333) [Link] (9 responses)

I used to like primary selection, but now I despise it because how incredibly shittily it's implemented by various applications.

About a dozen times a day I end up having to go back and re-copy selections or end up pasting something I copied long ago. Even multiple times 'ctl-c' copying ends up being ignored or missed for various reasons.

Emacs copy/paste is broken fundamentally. I am sure it's possible to configure it to behave in a sane manner and have it act just like 'gedit' or other modern applications, but it's beyond me. Firefox does weird and crappy things when it comes to pasting or copying things from the URL bar... not to mention weird javascript hacks that people do on some pages/web applications to overwrite how selections work. I use vmware-view sometimes for times I need to use outlook for something terrible, and it's incapable of working for any length of time.

Pretty much every application, unless it's bog-standard Gnome app, manages to screw up copy and paste in Linux in some irritating corner case.

The only saving grace is that I can use stuff like 'Gpaste' to have clipboard management.

I also used to think that a compromise is in order for Wayland... just allow normal applications only ctrl-c/ctrl-v... follow the standard behavior (IBM CUA) that has existed in PCs since 1992 or so, but allow primary selection-like behavior with terminals.

Now I hate primary selection, period. It's just a really bad idea and the perfect poster child for 'Choices that inflict negative consequences for everybody regardless of their choice'. It's been proven over 20 years of X11 history that it simply cannot be implemented in a clean and consistent way. I am also convinced that once it's out of the hands of applications and firmly being managed by the display manager then that will open the doors up for advanced clipboard management that will blow the doors off of any primary clipboard workflow speed-ups that people may currently have in X11.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 16:46 UTC (Tue) by zuki (subscriber, #41808) [Link] (6 responses)

> I used to like primary selection, but now I despise it

Great. You don't need it, fine. When people argue for primary selection to be available, they are not trying to force everyone to use it. They are not even arguing for it to be always enabled. They would, at least I know I would, be totally OK with it being disabled by default and requiring a preference checkbox to be ticked somewhere. I'd do this at the same time I enable focus-follows-mouse and be happy.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 17:45 UTC (Tue) by drag (guest, #31333) [Link] (5 responses)

>Great. You don't need it, fine. When people argue for primary selection to be available, they are not trying to force everyone to use it.

You are not understanding the problem then. If I could only 'just ignore it' then I would be completely and utterly indifferent to it's existence. In X11 the broken nature of copy-n-paste affects users regardless of how they configure their systems. There is no option to disable it or ignore it.

I fully understand that lots of people want it, but at the same time those people need to understand the significant negative effect X11-style buffers inflict on everybody else.

So I hope that if Wayland does implement it they implement it in a manner that removes responsibility from application developers to 'get it right'. Also it would be nice if it's disabled by default so no longer a nasty surprise for new users and removes the temptation for application developers to try to depend on it's functionality.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 18:18 UTC (Tue) by zuki (subscriber, #41808) [Link]

What happens under X is irrelevant, and bringing it up only sidetracks the discussion about Wayland. You want the primary selection under Wayland to be a) configurable, b) off by default. Should be doable. This is what I suggested in the grandparent comment, so it seems we are in agreement.

Hutterer: Is Wayland ready yet?

Posted Jan 27, 2016 13:27 UTC (Wed) by nix (subscriber, #2304) [Link] (3 responses)

Why do you say the primary selection inflicts negative consequences on you when you're not even using it? What non-selection-related behaviour do you think would be different if it didn't exist? Why do you imagine that programs would change their behaviour in other respects merely because they didn't have to maintain the primary selection?

Be specific. So far all you've said is it's terrible, without saying what you actually *find* terrible, and your proposed solution imposes costs on everyone else and makes no sense.

Hutterer: Is Wayland ready yet?

Posted Jan 28, 2016 12:24 UTC (Thu) by Wol (subscriber, #4433) [Link] (2 responses)

> Why do you say the primary selection inflicts negative consequences on you when you're not even using it?

Because if you actually read the bulk of the complaints, it's that it has this *nasty* little habit of happening, and surprising you, just when you had no intention or desire to use it.

Like I regularly lose text because I - completely unintentionally - do a "control arrow" select and then overtype it. Because I regularly do an accidental "double click to drag scroll" and then wonder where the heck the page I was reading has gone. Etc etc. (And when my wife does it and I have to clean up the mess it's even worse :-(

Okay, once you realise what has happened, it's usually easy enough to undo it. But it's why so many people find computers so infuriating - all these features are like the story about the little boy scout, who on seeing an old lady waiting by the side of the road and eager to do his good turn for the day, almost drags her across the road only to discover that she was waiting for the bus. Which has been and gone while he was "helping" her across.

This is Artificial Stupidity at its finest. And when you *can't* disable it (as appears to be the case) you feel like throwing the computer out the window.

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Jan 28, 2016 13:31 UTC (Thu) by zuki (subscriber, #41808) [Link]

I think you got the tally wrong. Most comments (the whole article in fact!) are about the *nasty* little of habit of this *not* happening (when people expect it to). Then there's a few poeple who go on and on about primary selection in X, which has little bearing on primary selection under Wayland.

I get it that you don't like it, it's not for everyone. Primary selection and focus-follows-mouse are features which work great when there is very good control of the mouse with almost no spurious events, and are very disruptive otherwise. Some people have such conditions, most often on a good desktop with an external mouse, and then they are very happy and productive, and want to keep this.

With Wayland the protocol becomes centrally managed, so there should be trouble whatsoever to turn it on and off at will. Problem solved, both sides can be happy.

Hutterer: Is Wayland ready yet?

Posted Feb 10, 2016 9:21 UTC (Wed) by nix (subscriber, #2304) [Link]

Like I regularly lose text because I - completely unintentionally - do a "control arrow" select and then overtype it.
That's not the primary selection. That's the CUA select-then-type-erases 'feature', which exists on many systems that have no concept of a primary selection at all (Windows is the obvious one) and which is not present in some programs which do use the primary selection (Emacs in non-'transient-mark-mode' springs to mind).
Because I regularly do an accidental "double click to drag scroll" and then wonder where the heck the page I was reading has gone.
That's got nothing to do with the primary selection either (though accidentally middle-clicking when trying to use a scroll wheel would).

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 17:59 UTC (Tue) by madscientist (subscriber, #16861) [Link] (1 responses)

> Emacs copy/paste is broken fundamentally.

I'm not sure what you mean here but in the context of copy/paste Emacs works fine: if I use the cut buffer (C-c) in another window like Firefox, then yank in Emacs (C-y) pastes the contents of the cut buffer. If I use primary selection in another window then middle click pastes the primary selection. They don't interfere with each other at all: after I select with the mouse yank in Emacs still pastes the cutbuffer and after I add something to the cut buffer (without using mouse selection; maybe clicking in the URL bar and using C-a / C-c) then middle-click still pastes the primary selection. Also, copying in Emacs using ALT-w etc. copies to the cutbuffer so C-v in other apps pastes, while selecting with the mouse fills in the primary selection only.

It works exactly how I'd expect.

The issues around Emacs using different keys for cut/paste are orthogonal and due to Emacs existing long before the CUA and having an incompatible set of keys. I believe there are modes in Emacs which give you some terminal-like C-S-v etc. behavior but I've never bothered to find them.

> Firefox does weird and crappy things when it comes to pasting or copying things from the URL bar

Don't know what to say: I do this all day every day and it always works fine.

> not to mention weird javascript hacks that people do on some pages/web applications to overwrite how selections work

Oh noes! Someone wrote some crappy JS on the net! Let's throw out the entire WWW! All the weird JS cut/paste windows I personally have used recently work OK; things like StackOverflow, GitHub, etc. DTRT.

> Pretty much every application, unless it's bog-standard Gnome app, manages to screw up copy and paste in Linux in some irritating corner case.

I do use a lot of bog-standard Gnome apps, but even the non-Gnome apps I use seem to work fine. The only time I get frustrated is using remote desktops via RDP and trying to copy/paste between Windows and my local system. But that doesn't work well even with the cutbuffer.

> It's been proven over 20 years of X11 history that it simply cannot be implemented in a clean and consistent way.

Horsepucky. What's been shown over 20 years of X11 history is that applying the concept of "mechanism, not policy" to a graphical environment, while it has some advantages, also has serious disadvantages. A graphical environment is by definition shared across multiple applications and policies that allow them all to work together are absolutely essential. The policy that X did publish for selection protocols was inconsistent at best. It wasn't until Freedesktop finally published a useful and usable policy that sanity began to be restored, but a lot of damage was done.

The speed and efficiency of being able to select and click for copy/paste is significantly better than selecting, copying with the keyboard, clicking on the target to position the cursor, then pasting with keyboard. This is especially true for those of us who are left-handed: standard copy/paste key chords are on the left side of the keyboard and if you use your mouse left-handed as well it's extremely awkward. And if you think dealing with middle-click rebinding for different apps is bad you've never tried to rebind standard cut/copy/paste keys :-/

I have no problem with primary selection being implemented differently, as long as the user-level experience is the same: especially if that means a more consistent behavior across apps I'm all for it. I also have no problem with being able to turn off primary selection or move it to a different input sequence (unlike some others posting here who apparently won't be satisfied unless it's no longer possible at all).

As for things like drag-scroll, I find it much simpler to use Shift-click to enable that, rather than middle-mouse.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 18:26 UTC (Tue) by Wol (subscriber, #4433) [Link]

> As for things like drag-scroll, I find it much simpler to use Shift-click to enable that, rather than middle-mouse.

As for drag-scroll, I curse blue murder every time I accidentally switch it on, and switch it off again INSTANTLY!

Cheers,
Wol

Not usable for me

Posted Jan 23, 2016 1:13 UTC (Sat) by lemmings (guest, #53618) [Link] (36 responses)

Primary selection also important for me. I tried using Wayland this week for a couple of days, but the lack of primary selection was a deal breaker. It killed my productivity having to use Ctrl-Shift-[CV] constantly compared to middle mouse click especially as I am on Dvorak keyboard and right handed (i.e. have to first select with trackball and then move hand back to right side of keyboard to copy, move hand back to trackball to move to new window, move hand back to keyboard to paste).

Switching windows with Alt-Tab was also weird where the new window wouldn't have keyboard focus and I would then have to jiggle the mouse pointer for keystrokes to go there.

Not usable for me

Posted Jan 23, 2016 2:56 UTC (Sat) by rahvin (guest, #16953) [Link] (5 responses)

One of the problems with using alternative keyboard layouts like Dvorak is all the shortcuts in use are based on Qwerty. Ctrl-Shift C/V isn't any harder to do on qwerty than Ctrl-C/V and both can be done entirely with the left hand. You are complaining about something that is tied to your choice of keyboard layout, not wayland. I'm sure there are other keyboard shortcuts that are just as big of a pain in the butt because they were designed for qwerty.

The problem with trying to use wayland right now is that none of the window managers are fully ported. There will be bugs and things that don't work right like the focus thing. Last I saw both KDE and gnome are only at the point that you can run it, not that it's fully tested and mostly bug-free.

Personally I can't wait for Wayland and all the X idiosyncrasies that will go away, but I'm not going to use on my primary desktop it until it's ready. Of course I'm one of those people that prefers to use Debian Stable because I prefer stability over the new shiny.

Not usable for me

Posted Jan 23, 2016 14:22 UTC (Sat) by k8to (guest, #15413) [Link] (4 responses)

Except that it DOES have to do with wayland as he or she just said, because this workflow issue doesn't exist outside of wayland due to primary slect-paste support.

Denying the validity of valid experience problems is in poor taste.

Not usable for me

Posted Jan 23, 2016 14:33 UTC (Sat) by rahulsundaram (subscriber, #21946) [Link]

This status update might be relevant reading here

https://blogs.gnome.org/mclasen/2016/01/22/a-wayland-stat...

Not usable for me

Posted Jan 24, 2016 4:23 UTC (Sun) by rahvin (guest, #16953) [Link] (2 responses)

The two primary complaints were that there was a need to put both hands back on the keyboard to cut/paste and that middle click primary didn't work. The first is entirely tied to the selection of keyboard layout and has nothing to do with Wayland.

The primary selection problem is a noted issue with the incomplete port to wayland. As by the post replying to yours (in the included link) this is acknowledged problem that they are hoping to fix soon. Again, this is due to using software that's not stable and complete. Complaining about software missing a feature when that software is not complete and is acknowledged as incomplete and then claiming the software is broken and won't ever work is childishness.

I'll never understand people complaining about missing features on software that isn't done yet. It's foolish.

Not usable for me

Posted Jan 24, 2016 11:07 UTC (Sun) by k8to (guest, #15413) [Link]

On the topic of "is it ready yet", someone provided some information about why it isn't ready yet for them after a practical test. This isn't complaining, it's part of the expected conversation.

You basically implied that this problem was the user's fault, when the wayland team clearly knows it is a problem. Now, when called on this behavior, you agree that this problem exists, but try to dodge responsibility for your action.

I don't understand your behavior either.

Not usable for me

Posted Jan 30, 2016 2:12 UTC (Sat) by jschrod (subscriber, #1646) [Link]

I haven't read any complaints.

I have read an experience report about specific missing features, in a topic about problems to use Wayland. Exactly on topic, and very informative.

And then I read your posts. Do you understand that you come across as a fanboy that doesn't want to accept discussions about the current state of Wayland? As somebody who is neither interested nor capable of coherent discussion and »where are we now«?

That's sad, because otherwise your contributions are better.

Not usable for me

Posted Jan 24, 2016 19:28 UTC (Sun) by Seegras (guest, #20463) [Link] (29 responses)

I tried using Wayland this week for a couple of days, but the lack of primary selection was a deal breaker.

You're telling me paste with the middle mouse button does not work?

In that case, the answer can only be Wayland IS NOT READY YET, at all.

Not usable for me

Posted Jan 24, 2016 22:18 UTC (Sun) by pbonzini (subscriber, #60935) [Link] (12 responses)

The problem is that the primary selection is a security issue. Just pressing Ctrl-A in the wrong window may lead to a clear-text password (or credit card number, or anything else) being available to all clients. Unlike X, Wayland doesn't allow a random client to scrape your screen, so the issue is much more important there.

Implementing the primary selection in the terminal only would probably satisfy 90%+ of the usage.

Not usable for me

Posted Jan 24, 2016 22:57 UTC (Sun) by TomH (subscriber, #56149) [Link] (8 responses)

I'm not sure what Ctrl+A has to do with the primary selection? Unless you have configured that to paste the primary selection in your environment...

In any case while the terminal is certainly one major use it's hardly the only one. I use it just as much with emacs, firefox and thunderbird.

Not usable for me

Posted Jan 24, 2016 23:15 UTC (Sun) by madscientist (subscriber, #16861) [Link] (5 responses)

Agreed. I use primary selection everywhere, with every application I use. In fact I use the clipboard for maybe 5% of my cut and paste. About the only time I use the clipboard is if I know I'll be replacing text rather than just pasting it, so I can select what I want to replace with the mouse and paste the clipboard over it. If I'm doing non-replace copy/paste (most of the time) I only ever use primary selection.

The idea that terminal support gets you "90%+" of the way to an acceptable solution is simply wishful thinking.

Wayland needs to support the functionality described in the Freedesktop Clipboards spec guidelines.

Not usable for me

Posted Jan 25, 2016 17:51 UTC (Mon) by distances (guest, #103785) [Link] (4 responses)

And as a counterpoint, before this discussion I didn't even know what "primary selection" means. On terminal I always explicitly use Ctrl+Shift+C to copy, and Shift+Insert to paste. I now think "primary selection" means select to copy and middle click to paste.

I disable that functionality where I can, since I except middle click to activate drag-to-scroll. Also, I tend to use selection to highlight random things when reading. Yeah, scrolling with middle click is not possible in my terminal, but at least I can set it to paste the clipboard contents instead of my random selection.

Just another anecdotal use case for the hard requirements of Wayland's completeness.

Not usable for me

Posted Jan 26, 2016 11:29 UTC (Tue) by nye (guest, #51576) [Link] (3 responses)

>I now think "primary selection" means select to copy and middle click to paste

Note that the primary selection and the clipboard are separate, and shouldn't interfere with each other (at one point common desktops had tools that 'helpfully' merged the two, giving the worst of both worlds, but I think they all saw the light long ago).

If you don't use it, it's something that you can safely ignore. Well in your personal case you want to remap the middle button anyway, but in general.

Not usable for me

Posted Jan 26, 2016 12:36 UTC (Tue) by Cyberax (✭ supporter ✭, #52523) [Link] (2 responses)

No, it's not that easy.

Primary selection pokes out in tons of places (like accidental middle-clicks in Firefox). And remappign a middle button is not a solution, I _need_ a middle button.

Not usable for me

Posted Jan 26, 2016 17:35 UTC (Tue) by jfb (subscriber, #60805) [Link] (1 responses)

For the web browser, have you tried setting middlemouse.contentLoadURL to false in about:config ?

Not usable for me

Posted Jan 26, 2016 19:40 UTC (Tue) by Cyberax (✭ supporter ✭, #52523) [Link]

Yes, it does make it better but only marginally so.

Not usable for me

Posted Jan 25, 2016 9:11 UTC (Mon) by jku (subscriber, #42379) [Link] (1 responses)

The relevance of ctrl-A is that PRIMARY as currently implemented in X (and as specified) is available to any client at any time, from the moment you select the text. There's a wayland proposal that would implement a PRIMARY so that it only becomes available when user actively does a paste (middle-click) so this might be fixable -- but the design in X is just not a valid one for Wayland.

Not usable for me

Posted Jan 25, 2016 15:22 UTC (Mon) by nybble41 (subscriber, #55106) [Link]

Historically, Ctrl-A would still have been irrelevant because the PRIMARY selection would only be updated when a selection is made with the mouse, not the keyboard. I've always considered it a very annoying bug that some applications overwrite the PRIMARY selection when text is selected with the keyboard—for example, the Alt-D, Backspace, middle-click sequence in a web browser ought to paste the URL I had just selected with the mouse, not the previous contents of the address bar. However, I see that this errant behavior has apparently been standardized. If Wayland forces a change back to the original mouse-only selection behavior for security reasons then I'll consider this an improvement.

Not usable for me

Posted Jan 24, 2016 23:06 UTC (Sun) by zuki (subscriber, #41808) [Link]

> The problem is that the primary selection is a security issue. Just pressing
> Ctrl-A in the wrong window may lead to a clear-text password (or credit card
> number, or anything else) being available to all clients. Unlike X, Wayland
> doesn't allow a random client to scrape your screen, so the issue is much
> more important there.

How often do you leave your password or credit card number in clear text on screen? I certainly avoid that.

But even if someone did, your argument is fighting a strawman. The proposed primary selection protocol [1] in wayland does not allow arbitrary windows to query the selection, you need an actual middle-click (i.e. paste event) to get access to the selection.

[1] https://wiki.gnome.org/Initiatives/Wayland/PrimarySelecti...

> Implementing the primary selection in the terminal only would
> probably satisfy 90%+ of the usage.

True. That would be better than nothing, but the lack of consistency would be annoying. I certainly paste filenames and URLs back and forth all the time between all kinds of windows.

Not usable for me

Posted Jan 30, 2016 2:17 UTC (Sat) by jschrod (subscriber, #1646) [Link] (1 responses)

> Implementing the primary selection in the terminal only would probably satisfy 90%+ of the usage.

Sigh, and again I'm among the 10%- grey beards (literally :-)) that some current Linux advocates want to dump.

Not usable for me

Posted Jan 30, 2016 4:01 UTC (Sat) by raven667 (subscriber, #5198) [Link]

In some way that's the normal nature of things, younger people have different ideas of normal and good than older people, as it has always been and will always be. Welcome to the nature of change! 😃😀

Not usable for me

Posted Jan 25, 2016 0:53 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (15 responses)

> You're telling me paste with the middle mouse button does not work?
Wow! At least now at least one Unix desktop stack is ready for the prime time!

Finally somebody had courage to drop the useless primary selection.

Not usable for me

Posted Jan 25, 2016 9:50 UTC (Mon) by micka (subscriber, #38720) [Link] (14 responses)

If a feature is a problem for you, please don't use it.
No need to spread sarcasm over other people's use cases.
And it will be added back in some (if not all) compositors.

Not usable for me

Posted Jan 25, 2016 10:06 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (13 responses)

Primary selection actually actively harms my workflow.

I actually asked several times how to turn it _off_. So far the only answer included recompiling the X-org server.

Not usable for me

Posted Jan 25, 2016 15:03 UTC (Mon) by rgmoore (✭ supporter ✭, #75) [Link] (7 responses)

There's a knob to control "middle-click paste" in GNOME, and it defaults to off. I'm not sure if that's good enough for you.

Not usable for me

Posted Jan 26, 2016 16:35 UTC (Tue) by drag (guest, #31333) [Link] (6 responses)

It's not because in X11 individual applications manage their own buffers and they invariably screw it up royally. Primary selection 'middle click paste' is a nightmare and has been the bane of Linux users since the beginning of time. There existed very good and sensible standards which Linux desktop manages to break and screw up, due to specifics.

I understand that 'middle click paste' can't go away in Wayland because so many people have that behavior ingrained into their muscle memory. This is fine.

So I am hoping that by Wayland display managers taking full control over the buffers away from normal applications then it can impose something that is actually consistent on the desktop regardless of the type of widget toolkit or insanity that individual application developers thought made sense at random times in the past 30 years.

Not usable for me

Posted Jan 26, 2016 17:30 UTC (Tue) by zuki (subscriber, #41808) [Link]

> So I am hoping that by Wayland display managers taking full
> control over the buffers away from normal applications

That's more or less the proposal: https://wiki.gnome.org/Initiatives/Wayland/PrimarySelecti...

Not usable for me

Posted Jan 26, 2016 23:17 UTC (Tue) by lsl (subscriber, #86508) [Link]

> There existed very good and sensible standards which Linux desktop manages to break and screw up, due to specifics.

You mean the OSF/Motif Style Guide? Or SGIs Interactive Desktop User Interface Guidelines? Maybe that IBM/Microsoft CUA thing for Windows/DOS and OS/2 you mentioned upthread? So many "standards" to choose from and none of them general enough to not suck when applied to environments other than those the specific vendor in question happened to care about.

Not usable for me

Posted Feb 1, 2016 1:03 UTC (Mon) by marcH (subscriber, #57642) [Link] (3 responses)

> I understand that 'middle click paste' can't go away in Wayland because so many people have that behavior ingrained into their muscle memory. This is fine.

It's not just "muscle memory": it's obviously and measurably *faster*. As the user of some hybrid (and masochist...) Linux+Windows desktop configuration, I'm actually forced to measure this speed difference every single day.

"Faster" unless of course you can't drive that fast and then "crash". So configurability is needed, agreed.

Not usable for me

Posted Feb 1, 2016 8:46 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (2 responses)

> It's not just "muscle memory": it's obviously and measurably *faster*.
But you have to use a MOUSE to do that.

/me *vomits in disgust*

Not usable for me

Posted Feb 1, 2016 13:21 UTC (Mon) by pizza (subscriber, #46) [Link] (1 responses)

Okay... so if you're not using a mouse, how does one invoke (and in your case get tripped over by) primary selection?

Not usable for me

Posted Feb 1, 2016 18:10 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link]

Mostly in places where mouse is used for other purposes, primarily in browsers and text editors.

Not usable for me

Posted Jan 28, 2016 10:08 UTC (Thu) by Seegras (guest, #20463) [Link]

And not having primary selection actively harms MY workflow.

It's not like I do use this because "nothing better existed", I use this because copy&paste with the mouse buttons alone is extremely efficient.

Not usable for me

Posted Jan 30, 2016 2:21 UTC (Sat) by jschrod (subscriber, #1646) [Link] (3 responses)

> Primary selection actually actively harms my workflow.

Well, not having primary selection actually actively harms my workflow. (I used primary selection to enter this sentence.)

So can we get over this childish behaviour »it's not good for me, so you must not have it either« and start to work for something that's appropriate for both kinds of users? Some years ago, Linux was about choice. Seems to be missing today, this idea.

Not usable for me

Posted Jan 30, 2016 2:25 UTC (Sat) by Cyberax (✭ supporter ✭, #52523) [Link] (2 responses)

Sure, whatever. I feel free to setup your mouse to emit key 'A' on left mouse button. I don't particularly care.

What I care about is that I _can_ _not_ turn off the primary clipboard. Had it been optional I would have just switched it off and forgotten about it.

Not usable for me

Posted Jan 30, 2016 2:29 UTC (Sat) by zuki (subscriber, #41808) [Link] (1 responses)

> What I care about is that I _can_ _not_ turn off the primary clipboard

... under X, right?

Not usable for me

Posted Jan 30, 2016 3:07 UTC (Sat) by Cyberax (✭ supporter ✭, #52523) [Link]

Yes, correct.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 18:49 UTC (Fri) by bjacob (guest, #58566) [Link] (81 responses)

So sad to see the state of free desktop graphics. Catching up to 2008 Mac/Windows/Android, in 2016.
If every desktop application/framework is going to pay a major transition cost, it had better be worth it -- it had better bring state-of-the-art graphics, and be future-proof. EGL and OpenGL 2.x-era in 2016? Not sure that's worth the transition; not sure that there wouldn't be another transition coming soon, given that OpenGL is already being phased out.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 19:07 UTC (Fri) by bjacob (guest, #58566) [Link] (35 responses)

And just one specific example to show how that concern of OpenGL being phased out is concrete:

Over the past 10 years, desktop apps have been doing increasingly complex graphics, to the point that some of them, especially Web browsers such as Firefox and Chrome, not to mention games and video players, are doing any combination of command-buffer-management, buffer-swapping, and compositing, themselves internally, before they present their frontbuffer to the OS compositor. Another common theme has been a gradual shift toward multi-threaded (even multi-process) applications, increasing the demands in terms of synchronization and in terms of either buffer-sharing, or command-buffer management, depending on architectural choices (typically, Firefox has been doing buffer-sharing, while Chrome has been doing command-buffers).

This has shown a lot of cracks in the OpenGL model - OpenGL has scaled poorly to that. OpenGL has no notion of command buffers, coarse/unstandardized synchronization primitives, and doesn't allow the kind of fine-granularity command management and synchronization that today's desktop apps (again, notably Web browsers) need. This results in concrete problems for applications. For example, it often results in one-frame latency in the compositing process of Web browsers, due to the exceedingly long chain from producer to command buffer to app-side compositor to OS compositor. That's a big hindrance, among other things, for advanced Web applications (e.g. games).

This is one of the underlying themes in Vulkan (the successor to OpenGL)'s new concepts, especially in Vulkan's command-buffers.

It would be worth looking into what a new "Wayland" would look today, in an age of command buffers and fine-grained synchronization.

Basically, one should look at every way that applications today are duplicating the compositor's work, and ask if there is a change to the Windowing system that would allow to reduce this redundancy, because redundancy is costly in terms of frame latency, of animation timing/scheduling (aka 'smoothness'), in memory usage, in memory bandwidth (power usage), and in raw processing power (fillrate) etc.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 20:32 UTC (Fri) by sbergman27 (guest, #10767) [Link] (4 responses)

OpenGL being phased out? Tell that to Google/Android and Valve/Steam. OpenGL is *not* going away. With the decline of Windows gaming, OpenGL is on the rise. Ultimately, it will win out over all others. That much of the handwriting is already on the wall.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 21:55 UTC (Fri) by bjacob (guest, #58566) [Link] (2 responses)

Android going Vulkan:
http://arstechnica.com/gadgets/2015/08/android-to-support...

And re: Windows, given the goodness that is DX12, as long as the only competition is OpenGL, they're safe. Vulkan is the wider industry (Khronos) catching up to DX12 (and Metal, and Mantle, etc).

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 0:53 UTC (Sun) by sbergman27 (guest, #10767) [Link] (1 responses)

Going with Vulkan? Really? Vulkan is being added as an alternative, lightweight API. OpenGL ES is still there for the heavy lifting. Debian including Lua does not mean that Python is dead. Anyway, this all seems very indirectly related to Wayland.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 5:10 UTC (Sun) by Cyberax (✭ supporter ✭, #52523) [Link]

> Going with Vulkan? Really? Vulkan is being added as an alternative, lightweight API. OpenGL ES is still there for the heavy lifting.
So many misconceptions, oh my...

Vulkan is _not_ a "lightweight" API. It exposes low-level memory management and command buffer creation so it's much more powerful than OpenGL exactly because of this. There are real-world applications that have seen 2-3x FPS improvement after switching to Vulkan.

Of course, EGL won't disappear overnight - it'll be supported for backwards compatibility for the foreseeable future.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 13:53 UTC (Sun) by sheepdestroyer (guest, #54968) [Link]

Valve and Google are majorly invested in Vulkan. In fact they are each founding the efforts of two teams at LunarG working on specs, tools, drivers and Android integration :

http://lunarg.com/vulkan/
http://lunarg.com/lunarg-splitting-to-address-vulkan-needs/

Vulkan is clearly the future of Linux and Android, especially for gaming.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 8:23 UTC (Sat) by HelloWorld (guest, #56129) [Link] (2 responses)

What does this have to do with Wayland? Wayland is rendering API agnostic.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 0:17 UTC (Tue) by butlerm (guest, #13312) [Link] (1 responses)

I believe the suggestion here is to use Vulkan / SPIR-V or something like it as the basis for a new remotable, command based graphics protocol. That sounds like an idea with some potential to me, certainly more practical than using GLX to accomplish the same thing, for the very reasons that Vulkan will be generally superior to OpenGL in the first place - portability in particular.

Vulkan is a relatively complicated API to implement, though not quite as complicated (apparently) as OpenGL. It specifies a complete virtual machine for shading and computation after all. A few years down the road it should be commonplace nonetheless, supplied by your friendly neighborhood graphics adapter vendor, so it makes an attractive candidate.

One of the main issues I can see is that it is not exactly practical for the GPU to share memory with the application process across nodes, and the general purpose Vulkan API assumes that sort of sharing, to the point where you almost want to assume two Vulkan implementations, one on the display machine and one co-located with with application, and some creative but not quite so impractical shuffling back and forth. Then you could render surfaces locally (i.e. Wayland style) or remotely (i.e. GLX style) as was most convenient.

A more fundamental question perhaps is are modern applications (e.g. Web browsers) so wacky graphics wise that is impractical to make any kind of command based protocol that performs better on average than shipping compressed damaged rectangles to a remote compositor. The latter is the next closest thing to a highly compressed video stream after all, and it may still out run a command based protocol in general use. It would be great to see someone try though.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 2:43 UTC (Tue) by Cyberax (✭ supporter ✭, #52523) [Link]

Sharing a video card over the network is like sharing a CPU over the network.

You CAN do it, but it probably is not a good idea.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 10:57 UTC (Sat) by hitmark (guest, #34609) [Link] (22 responses)

Frankly the web browser has become a OS in its own right.

It starts to look a bit ironic when one look at how things has developed.

First you got Ethernet, then you got TCP/IP, then you got HTTP, and now we seem to have gotten protocols developed in JSON stacked on top of all that.

Frankly web browsers today is doing what X did originally, draw stuff on a local screen while talking to a server at the other end of the network that is doing the grunt computing.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 18:34 UTC (Sun) by butlerm (guest, #13312) [Link] (21 responses)

The difference is that a web browser runs most of the user interface on the same machine as the display, something that X never did. They are pretty much at opposite ends of the spectrum in that respect, the reason why the web browser dominates the world, and why X is being replaced by something that lacks its core design feature. The latter is not a competitive model anymore, or at least not obviously so over any network with latency measured in tens of milliseconds.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 20:20 UTC (Sun) by viro (subscriber, #7872) [Link] (18 responses)

What makes you assume that browser is running on the box the user is sitting at? Definitely not true here, and if some webshite is unusable with X-over-ssh-over-gigabit-link, well, piss on that webshite, I'm not going there. Happens from time to time, usually due to heavy flash infestation. Which correlates with other things I'm only happy to avoid (e.g. "meaningful" delays before showing the next piece of information, so that the mark would have time to enjoy the presentation skills of the web duhveloper and to wish him/her/it equally long dips into a scorpion pit, etc.)

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 3:50 UTC (Mon) by butlerm (guest, #13312) [Link] (5 responses)

I don't assume the web browser is running on the same machine as the display, although that is likely to be the case for the vast majority of all users. The number of users who normally run a web browser remotely is probably dangerously close to a rounding error. Something worth supporting of course, but far from business as usual.

On principle, I would really like it if X were competitive with native processing over a LAN, and work as well as say RDP over a wide area network, but I have never personally seen X come anywhere close in either scenario. If one uses it at all - in native form - it is probably over a LAN and with some special requirements that make it worth the substantial performance loss compared to running the process in question on the same machine as the display in the first place. The design is basically thirty years out of date.

Unless someone gets really creative, the era of remote command based graphics rendering is about to come to an end, replaced for the users who really need it by some protocol that does differential comparison and compression of damaged rectangle bitmaps.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 5:13 UTC (Mon) by viro (subscriber, #7872) [Link] (1 responses)

More likely variant is that LAN speed will keep growing for a while and make all of that a non-issue. Gigabit is already good enough pretty much for everything I care about; 10Gbps will make it completely moot. Sometimes brute force is better than cute algorithms, and I very much suspect that this is the case here. Now, X over wireless is more unpleasant and probably will remain so for quite a while, but over ethernet? Not a problem...

Sure, GNOME and KDE will always find something pointless to chew any amount of bandwidth with. Obvious solution: don't use either. After all, the bandwidth of my eyes and visual cortex is limited and I have better uses for it, TYVM...

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 15:55 UTC (Mon) by barryascott (subscriber, #80640) [Link]

What kills X performance is round trip latency. That has been true from the start.

There are protocol tricks that mitigate the lanency and make X usable for lots of user caases.

The round trip issue cannot be sovled by more bandwidth on a network.

Hutterer: Is Wayland ready yet?

Posted Jan 29, 2016 12:10 UTC (Fri) by ianmcc (guest, #88379) [Link] (2 responses)

There was a period a few years ago when running X over a network was competitive, on a LAN at least. Around 1999 the computer on my desk was some Ultrix box (I think) that was very sluggish. I used to run XEmacs on another host (probably with rsh, I can't remember) with $DISPLAY set to the Ultrix box, and that was much smoother and less laggy! Hard to imagine nowdays!

Back in those days it wasn't uncommon for accidents to happen -- some strange X window suddenly pops up on your screen because someone in the next building set their $DISPLAY to your machine accidentally. This was the tail end of telnet, rsh, and unsecured xhosts.

Hutterer: Is Wayland ready yet?

Posted Jan 29, 2016 16:37 UTC (Fri) by anselm (subscriber, #2796) [Link] (1 responses)

In the 1990s, we had “X terminals”, which were essentially stripped-down workstations that ran an X server (and perhaps a local window manager) only, with the actual clients on remote machines. This market essentially dried up when people realised that they could use Linux PCs for the same purpose at a fraction of the price of a dedicated “X terminal”.

Hutterer: Is Wayland ready yet?

Posted Jan 29, 2016 16:45 UTC (Fri) by raven667 (subscriber, #5198) [Link]

Miracast, ChromeCast and SteamLink amongst others are the modern incarnation of those ideas.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 12:00 UTC (Mon) by daniels (subscriber, #16193) [Link] (11 responses)

If only there were some kind of network transport for web pages other than X11 ...

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 15:47 UTC (Mon) by viro (subscriber, #7872) [Link] (10 responses)

Sure, and when I want to look into some documentation, I can always enjoy having it pulled over DSL, right? Beats saying xpdf or djview from ssh session into a box I'd copied them to... And rather than using xdvi from ssh session where I'm editing something in TeX, I can duplicate the whole texmf setup on every box I might be sitting in front of, along with the unspeakable joy of sharing the stuff I'm editing over NFS and/or synchronizing it between the boxen. Thank you, but I am not interested.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 16:00 UTC (Mon) by daniels (subscriber, #16193) [Link] (9 responses)

OK, in that case you can just keep using SSH X forwarding, since xpdf will presumably never be ported to anything modern. Works fine today with XWayland. Not that I have any idea how you have PDF files bigger than the image content you'll be hauling across the network (width * height * 4 bytes; adds up pretty quickly), but oh well.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 16:43 UTC (Mon) by viro (subscriber, #7872) [Link] (8 responses)

Huh? Are you familiar with the distinction between LAN and WAN? The choice between HTTP over WAN and X over ssh over LAN is somewhat affected by the slight speed difference between DSL and 1000BASE-T...

And sure, I can set httpd for serving those local copies to the entire LAN, but it's extra headache for no good reason.

As for the "ancient" xpdf... Sadly, internal pdf renderer used by iceweasel produces crap, plain and simple. It's getting better, but still nowhere near acceptable quality. Might get there in a year or two, but until then...

And frankly, having to fight every random tool I might need... Whatever for? I can certainly appreciate the benefit of dropping old cruft from protocol, but how would you avoid carrying that burden anyway in XWayland?

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 16:45 UTC (Mon) by daniels (subscriber, #16193) [Link] (5 responses)

> And frankly, having to fight every random tool I might need... Whatever for? I can certainly appreciate the benefit of dropping old cruft from protocol, but how would you avoid carrying that burden anyway in XWayland?

XWayland is an X11 server which serves X11 clients. Wayland servers serve Wayland clients. The two protocols are even more different than gigabit Ethernet and ADSL.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 17:29 UTC (Mon) by viro (subscriber, #7872) [Link] (4 responses)

I am certainly aware of that, thank you very much. But ISTR the claims that Wayland and xorg maintainers are essentially the same group, so the burden of maintaining all that ancient protocol cruft would seem to remain - after all, if a change in Wayland proper would break XWayland, you guys would still get the fun of fixing it, wouldn't you? IDGI... Is XWayland going to remain maintained?

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 17:36 UTC (Mon) by daniels (subscriber, #16193) [Link] (3 responses)

The maintainership claim has been very much distorted. The people who work on X11 still maintain that, the people who work on core Wayland still maintain that, and both sides keep XWayland working.

Not sure what you mean about the cruft, unless you're trying to claim that running FreeBSD virtualised under a Linux host, means that the host can never be any better than FreeBSD.

So far it hasn't been a problem for us, and hasn't caused any design issues in the Wayland protocol, but obviously you seem to have discovered some flaws, so I'd be curious to see what they are. So far AFAICT it works just fine, given that I'm writing this comment via XWayland.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 18:45 UTC (Mon) by viro (subscriber, #7872) [Link] (2 responses)

You seem to be confusing me for some kind of advocate, pardon the obscenity. FWIW, I don't see what benefits would I get from switching from xorg server to Wayland + XWayland scheme and I'm mildly curious about the assorted claims of benefits Wayland developers are seeing - I _have_ read xorg codebase and I can certainly see why one would want to work on something cleaner, but the claims of leaving the protocol cruft behind seem to be distorted, to borrow your expression.

I'm _not_ accusing you folks of planning to pull a lennart; if that's the impression you've got from what I'd written, I do apologize.

BTW, the setup here is xorg + wmaker + bunch of xterms all the time + all kinds of random stuff (xpdf, iceweasel, xdvi, gitk, djview, gv, xloadimage, occasional gimp or <spit> openoffice, xine, etc.), some remote, some local. For instance, I'm certainly *not* going to inflict openorifice on anything other than an almost never run kvm image. xine, OTOH, is usually local. iceweasel - pretty much always remote, etc.

Something like e.g. fedora lives in a KVM image on the testbox, almost always used headless. When I need something on it that uses graphics, it's either ssh -Y into it,
or, for really shitty situation, kvm run without -nographic.

The laptop I'm typing this on runs debian-testing, but it could easily have been a FreeBSD one (10-stable). Which one is in use at the moment has minimal impact on how I'm working and I like it that way, TYVM. Most of the work is done in ssh + long-running screen(1) sessions on other boxen.

No GNOME, other than in several kvm images on testboxen. No KDE anywhere (as environment, that is - libraries are used by a bunch of stuff, obviously). What benefit would I get from switching to Wayland, seeing that I'm not hacking on it (I already have more than enough on my platter)?

PS: all of the above is *NOT* a veiled "nobody needs your project, so quit it and start doing something I want!1!1!!!" crap. I realize that you've run into twits who spew that kind of garbage, so for the record - I have no problems whatsoever with Wayland developers hacking on Wayland, and I really wish it wouldn't have to be spelled out ;-/

Advocates - can't live with them, can't dispose of the bodies without violating hazmat regulations... ;-/

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 20:04 UTC (Mon) by MattJD (subscriber, #91390) [Link]

The problem is that X is no longer being used as it was originally intended. X was designed to handle all the drawing, windowing, and inputs needs. It was also designed to be run over dumb terminals. None of that is wrong, bad, or unused today. But things have organically grown away from that model.

Most people run applications locally, without virtual machines. Most applications now handle all the drawing internally, often directly speaking to your graphics card. Window managers are taking more of a role in how windows are actually composited for the screen, which is good not just for wobbly windows and cubes but also to prevent redraws just because a window moves over another. X has basically turned into a glorified message bus between window managers and applications that also handles some input (but not all, see for instance joysticks).

While X/X11 does this decently (which is a testament to the protocol), it isn't great at it. Wayland is kind of an X12, but without the baggage attached to the name. It removes parts of the protocol not used by most popular applications (such as the drawing apis). It also combines the window manager and X server into one, to avoid having an X server to rely messages.

The protocols have been designed for different use cases, where each use case is more relevant to a different time periods (but not exclusively so). For you, I'd imagine Wayland is less relevant since you are currently relying heavily on X11's network transparency. XWayland lets you continue to do so on Wayland, so you don't have a flag day where you must upgrade. But how you use your computer isn't the common case. Most people just run there software locally, and there X's overhead is a waste.

None of that is meant to imply your use case is wrong (I take advantage of X's network transparency as well). And afaik XWayland should continue to serve you if you move to Wayland. As with everything, the more specialized and different you want something, the more work there is involved with it.

Also a lot of the technology going into Wayland is also benefiting X (and vice versa). For instance, KMS.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 3:14 UTC (Tue) by raven667 (subscriber, #5198) [Link]

> FWIW, I don't see what benefits would I get from switching from xorg server to Wayland + XWayland scheme and I'm mildly curious about the assorted claims of benefits Wayland developers are seeing
> ...
> BTW, the setup here is xorg + wmaker + bunch of xterms all the time

Honestly, I'm not sure what changes you would find interesting, at the end of the day regardless of the low level internal details of how the graphics stack is implemented, pictures are going to show up on your screen, you might even be satisfied with X driving a uEFI GOP. The changes are far more important for window manager and application development, making it simpler to develop and easier to reason about problems by making the abstractions match more closely to what is actually happening at the kernel and hardware level, but that's more useful for new software development than running existing software.

If anything the benefit is that it will be easier to keep Xwayland, which only has to target an EGL buffer rather than every possible type of graphics hardware, running into the long and distant future with minimal effort, even as the hardware changes, as long as EGL is still available.

Hutterer: Is Wayland ready yet?

Posted Jan 27, 2016 13:47 UTC (Wed) by nix (subscriber, #2304) [Link] (1 responses)

As for the "ancient" xpdf... Sadly, internal pdf renderer used by iceweasel produces crap, plain and simple. It's getting better, but still nowhere near acceptable quality. Might get there in a year or two, but until then...
These days, in my experience, mupdf blows the absolute socks off xpdf in every way: quality, speed, startup time, non-horrific and actually maintained code... you might want to try it. (It's pleasantly minimal, too.)

Hutterer: Is Wayland ready yet?

Posted Jan 31, 2016 22:25 UTC (Sun) by jimparis (guest, #38647) [Link]

It does seem pretty awesome. I just wish it would show the TOC and have a few more of xpdf's features (customized keybindings, "zoom to selection"). I'm sure it wouldn't be hard to implement that (maybe via PyMuPDF?)

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 20:40 UTC (Sun) by anselm (subscriber, #2796) [Link] (1 responses)

In the late 1980s, the big competition to X were user interfaces based on PostScript, where applications would essentially download their UI to the server and the server and client would exchange high-level messages (“menu item X was clicked – OK, open the ‘pick a file’ dialog – file Y was selected” as opposed to X's “mouse button 1 was clicked at (x, y) – execute these 123 simple drawing commands to paint a menu – mouse was dragged to (x', y') – execute these 56 simple drawing commands to highlight the menu entries that the cursor passes over – mouse button 1 was released at (x'', y'') – …”). These got by with a lot fewer messages on the wire but the computers at the time were a little too slow to make them successful.

Right now, web browsers work along the same lines, where applications get to download large parts of themselves into the user's machine (web browser “client” as opposed to display “server”) and communication generally takes place at a higher, application-oriented level rather than through graphics primitives. This does not entirely remove the use cases that X network transparency was originally meant to address, but adds a dimension of system independence that in the X context is no longer a thing given that most non-Unix/Linux platforms these days don't bother with X.

Hutterer: Is Wayland ready yet?

Posted Feb 3, 2016 0:32 UTC (Wed) by jwarnica (subscriber, #27492) [Link]

3270 was also conceptually similar to HTTP+HTML.

Both models have existed for a long time.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 20:40 UTC (Sun) by daniels (subscriber, #16193) [Link] (3 responses)

So, you're writing this under the assumption that we haven't considered such a model, didn't see the upcoming shift to new rendering APIs, and are unaware of the possibilities. None true.

As noted downthread, clients already use anywhere from five to thousands of draw calls per frame; you may be surprised how many are involved in es2gears. Kernels and hardware are already really, really good at scheduling, and more active synchronisation is something we're already looking at.

No other system transmits command buffers (and all their auxiliary data) across process boundaries, because it just adds overhead for no gain. As for ES2, the reason we use it in Weston is because the rendering requirements for composition are so trivial that we have no reason to use anything else: we're not bound by GL state-tracking overhead.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 21:01 UTC (Sun) by bjacob (guest, #58566) [Link] (2 responses)

Daniel - my main point here is that no matter what optimizations are done on the application side and on the windowing-system side, having the "framebuffer" as the only point of contact between these two sides, is a major cause of redundancy and overhead.

I'm not criticizing using OpenGL in either side - I'm criticizing the traditional framebuffer-as-point-of-contact model, which is offered by EGL and built upon by OpenGL, and departed from by Vulkan and its command buffers.

There is a precedent for using command buffers as the interface between producer and consumer - it's the Chrome browser. From seeing newer APIs like Vulkan essentially standardize the concepts underpinning this model, I'd bet that Chrome isn't alone.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 10:47 UTC (Mon) by daniels (subscriber, #16193) [Link] (1 responses)

> having the "framebuffer" as the only point of contact between these two sides, is a major cause of redundancy and overhead

[citation needed]

> the traditional framebuffer-as-point-of-contact model, which is offered by EGL and built upon by OpenGL, and departed from by Vulkan and its command buffers

Hm, the Vulkan spec isn't actually public, so I'm curious as to how you know this.

> There is a precedent for using command buffers as the interface between producer and consumer - it's the Chrome browser.

Yes, there definitely is - it's a good example. But when you look at the reason why, it becomes clear: Chrome doesn't trust the render processes to also have direct execution over the graphics driver, so it removes it into a separate GPU process, which is allowed to crash because there is a bare minimum of control over how it does so from the render process. If you consider window systems, the mutual distrust is between applications - with the compositor in the position of highest trust - so elevating graphics execution to the compositor would be the literal opposite of the Chrome approach. Performance has nothing to do with Chrome's GPU architecture.

Anyway, if you take a look closer, the output of the GPU process is ... rendered framebuffers. The GPU process doesn't exist to marshal command buffers, but only to generate framebuffers in a more secure context.

I'm curious as to what efficiencies you think you'd get from sending the command buffers (and all their auxiliary data: uniform blocks, buffer descriptors, etc), across processes. A composited window system effectively requires the entire buffer to be rendered anyway, so you're not going to be able to do clipping (and, if you're doing something seriously GPU-intensive, odds are you're going to be displaying it in full anyway: you don't have games maxing out the GPU, only to be mostly hidden by a terminal). Even if you did, requiring a re-render whenever the clip region changes is pretty much the antithesis of efficiency. Again, merging command buffers does nothing for efficiency, because games execute boatloads of independent draw calls anyway, which has made for extremely efficient schedulers in both the kernel and hardware. I'd recommend reading this: http://www.adriancourreges.com/blog/2015/11/02/gta-v-grap...

One of Vulkan's core principles is to give the client maximum control over execution; delegating it to the winsys completely goes against that principle, for an advantage you don't seem to be able to elaborate.

> I'd bet that Chrome isn't alone.

Have you got any more examples?

Hutterer: Is Wayland ready yet?

Posted Feb 16, 2016 16:48 UTC (Tue) by daniels (subscriber, #16193) [Link]

> Hm, the Vulkan spec isn't actually public, so I'm curious as to how you know this.

Now the Vulkan spec is public - https://www.khronos.org/registry/vulkan/specs/1.0-wsi_ext... - you can see that its window system integration does in fact use framebuffers.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 19:27 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link] (44 responses)

Wayland _today_ works perfectly fine with Vulkan. That's because the Wayland protocol doesn't care how you create your surfaces. You can do all kinds of stuff, like using V4L to create them or Mesa3D software renderer.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 19:39 UTC (Fri) by bjacob (guest, #58566) [Link] (43 responses)

That's not my point - I was suggesting that one should look at doing more than just "working fine with Vulkan applications" - the question is whether Vulkan allows one to design a better windowing system that would overcome traditional limitations of GL-based windowing systems, that result in today's situation where applications are taking ownership of most of the compositing and synchronization themselves, leading to the above-described overhead.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 20:10 UTC (Fri) by Wol (subscriber, #4433) [Link] (42 responses)

> the question is whether Vulkan allows one to design a better windowing system

I get the impression that Wayland doesn't care. Which makes sense if the system is properly layered - if Vulkan belongs in a different layer.

In other words, the correct reply is "that's not our problem". (Not that they don't care, but there are only 24 hours in the day ...)

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 20:20 UTC (Fri) by bjacob (guest, #58566) [Link] (41 responses)

My whole point is that it *should* care!

Any windowing system, like Wayland or X, has to somehow interface with the application.

Wayland goes the EGL way of offering a swapchain and little else.

I'm saying that offering a swapchain entry point, taking a finalized backbuffer, as the only point of contact with the windowing system, is what causes today's complex desktop apps to duplicate ever more of the OS compositor's work, with increasing overhead and downsides (see above).

I'm pointing out new concepts of the Vulkan era, such as command buffers, that could potentially form the basis of a more suitable point of contact between apps and windowing system.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 20:25 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link] (40 responses)

Why should it care? It only needs a surface (with an attached timestamp). You can use whatever method of obtaining it you can think of.

There are zero advantages in using command buffers to communicate.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 20:34 UTC (Fri) by bjacob (guest, #58566) [Link] (39 responses)

No point reiterating my above explanation on what current complex desktop apps are doing with their own internal compositing and command buffers, and how it would be desirable to reduce redundancy with the windowing system.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 21:06 UTC (Fri) by sbergman27 (guest, #10767) [Link] (8 responses)

Maybe rendering a 2D desktop in 3D was never the best idea? I've tried them all. Repeatedly. And MATE is the most sensible and stable. I administer about a hundred Linux business desktops. 3D and desktop "enhancements" have always turned out to be bad news, ultimately. (I just finished chunking Cinnamon 2.8.6 on my own personal desktop, in favor of MATE 1.10.) That said, 3D APIs are great when you need them. I love my FPS games. Use the right tool for the job. And 3D APIs are the wrong tools for a 2D desktop.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 21:29 UTC (Fri) by bjacob (guest, #58566) [Link]

OpenGL and Vulkan are not 3D APIs.

Well, OpenGL 1.x was a 3D API. Then GPUs grew up and became general-purpose low-level graphics engines.

OpenGL and Vulkan are just that, low-level graphics APIs.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 21:39 UTC (Fri) by pizza (subscriber, #46) [Link] (6 responses)

> 3D APIs are the wrong tools for a 2D desktop.

Except for the little problem of modern hardware not having any 2D acceleration engines. So unless you are going to use the CPU to repaint everything, a 3D API is going to be necessary under the hood.

And since you're already using a 3D API, why not just cut out the middleman?

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 11:01 UTC (Sat) by hitmark (guest, #34609) [Link] (5 responses)

> So unless you are going to use the CPU to repaint everything

And from personal experience, a modern CPU can do so swimmingly.

From elsewhere as best i can tell, the one thing X lacks to be "modern" is the ability to synchronize updates of its various "windows" (any square with something in it really).

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 12:53 UTC (Sat) by pizza (subscriber, #46) [Link] (3 responses)

> And from personal experience, a modern CPU can do so swimmingly.

You may have the luxury of sufficient CPU power to waste a large chunk of it by compositing and repainting two 4 million pixel images 60 times a second, but I have far better uses for mine.

Nevermind that a $25 RPi's GPU can paint circles around a high-end modern desktop CPU for such things, on a far, far lower power budget.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 17:34 UTC (Sat) by excors (subscriber, #95769) [Link] (2 responses)

Compositing with the GPU is pretty inefficient too, since it's a huge power-hungry sort-of-general-purpose processor - the RPi has dedicated hardware for 2D compositing (with format conversions, alpha blending, scaling, flip/transpose, etc), and if the composited output is going to a display device then it can send the output directly to the display without even writing to a framebuffer in memory. Most other mobile chips seem to have (completely different) implementations of a similar idea. So a 3D API isn't sufficient, you want a good abstraction for the final 2D composition step too. (Wayland can support that.)

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 22:22 UTC (Sun) by pbonzini (subscriber, #60935) [Link] (1 responses)

> the RPi has dedicated hardware for 2D compositing

Doesn't the RPi have multiple SIMD-VLIW processors and hardly any fixed-function pipeline?

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 23:38 UTC (Sun) by excors (subscriber, #95769) [Link]

Not really.

As far as I'm aware, the original vision of VideoCore was to do pretty much all multimedia processing in software on a special SIMD vector architecture with a 2D register file, tightly integrated with a normal scalar RISC-like processor. That gives you a lot more flexibility than fixed-function hardware, without the power and area cost of dedicated hardware blocks that are idle almost all the time.

But it soon turned out to be pretty bad for performance and power efficiency in reality, so later versions gave up on that idea and added loads of fixed-function hardware (though nobody bothered to update the public marketing text to explain that). Then the SIMD vector core was mainly just used for things that weren't worth dedicating hardware to (ancient low-resolution video codecs, low-frequency 2D image processing, etc), and to support requirements that were discovered far too late to go into the hardware (e.g. advanced image processing algorithms for the camera).

So the RPi's version of VideoCore still has the VPU with two scalar cores and one vector core; but a lot of its silicon area is dedicated hardware for 3D (quite similar to any other mobile GPU), H.264 decode/encode, camera/ISP, 2D compositing for display, etc, which are responsible for all the heavy processing, and you have to use them if you want good performance.

(I don't think VideoCore is unique in following this path - it seems quite common to hear chip vendors explain how their chip is great because they've got a really flexible DSP architecture for their ISP/codecs/GPU/whatever that lets them easily support new features and new standards; and then a year later to hear them explain how their next generation chip is great because they've moved the common use cases into dedicated hardware and it's way more power efficient.)

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 17:33 UTC (Sun) by luto (subscriber, #39314) [Link]

> And from personal experience, a modern CPU can do so swimmingly.

Depending on the application being composited, there's a great reason not to do this: if the application itself renders on the GPU, then you'd have to read the surface back into the CPU to composite on the CPU.

Once upon a time, this was really, really slow. Nowadays I'm not entirely sure, but I think it's still quite slow. You have to wait for the GPU to finish rendering and then ask the GPU to DMA back to system memory, do streaming MMIO reads (which are fortunately supported on modern CPUs), do manual cache synchronization (icky and not really supported by the x86 architecture, although i915 can do this and it mostly works), or hope you have cache coherent video memory.

Or you could composite on the GPU and you have none of these problems.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 21:24 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link] (10 responses)

No, it's not desirable. Wayland's design moves application-level rendering away from the display server. On purpose.

Applications know better how they want to render and sequence surfaces, and the only knowledge display server needs is the timestamp of the next frame.

OpenGL or Vulkan have nothing at all to do with that.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 21:38 UTC (Fri) by bjacob (guest, #58566) [Link] (9 responses)

The UNIX world is full of great principles on separation of concerns and on layering.
In some areas, these principles have aged well. Not in platform-level graphics.
Graphics is hard because both hardware and software have been evolving fast, and it's not easy for great architectural designs and layers to keep up.
Graphics is also hard because the performance requirements, both latency and throughput, are enormous.
For a while, people have sidestepped problems by running games fullscreen, essentially letting the application take over entirely. For a bunch of reasons, that's less and less practical. And at the same time, there's now a lot more apps than just games, that need high-performance low-latency graphics. So it's really hard.
I don't think that longstanding principles, such as the one that says that apps and windowing systems only ever exchange framebuffers, should stand in the way of really trying to fix these problems.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 22:03 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link] (8 responses)

> Graphics is also hard because the performance requirements, both latency and throughput, are enormous.
And so you're proposing that we improve the speed by introducing additional proxy level? Way to go.

Transporting stuff across process boundaries takes time. If you want to transfer 30-60 frames per second with perhaps the same number of input events then you can live with that overhead.

Now if you're willing to work on the level of command buffers, you'd have to do it an order of magnitude more frequently. Not going to work.

> So it's really hard.
And what makes you think that Linux graphics developers do not understand that?

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 22:15 UTC (Fri) by bjacob (guest, #58566) [Link] (7 responses)

There is no "transporting" - it's all in shmem. What takes time is syncing, where syncing is needed. That's why it's a hard compromise between throughput (less syncing) and latency (more syncing).

> you'd have to do it an order of magnitude more frequently. Not going to work.

Believe it or not, that's what a browser like Chrome does, when you run a web page that has animations (or a WebGL game) or simply when you're scrolling down a Web page.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 22:36 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link] (6 responses)

> There is no "transporting" - it's all in shmem.
:facepalm:

No, it's not "just shmem". If you want your display server to be resilient you have to use specialized buffer management to make sure that the application does not unmap that memory while the graphics card is busy drawing stuff.

Next, the modern shaders can access application memory directly. So you have to make sure that they have access to the right address space. Again, the memory faults should be delivered to the right process.

> Believe it or not, that's what a browser like Chrome does, when you run a web page that has animations (or a WebGL game) or simply when you're scrolling down a Web page.
No, they're not doing this. A typical modern game does about 5-10 rendering passes to get a single frame. Vulkan is not changing it.

This all happen in a single address space (in kernel and user mode), the display server only renders the final surface (possibly synchronizing it with VBlank).

You're proposing to move all of this into the server. Why?

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 22:52 UTC (Fri) by bjacob (guest, #58566) [Link] (5 responses)

memory mappings are reference-counted, like any file. So no one side can have an adverse effect on another by unmapping under its feet.

> You're proposing to move all of this into the server. Why?

I'm not proposing that. I'm suggesting to merge command buffers from what is currently the 'client' and what is currently the 'server', since neither of them really is the server as far as GPU commands are concerned (the GPU driver, which actually sends commands to the GPU, is the server).

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 1:40 UTC (Sat) by Cyberax (✭ supporter ✭, #52523) [Link] (4 responses)

> memory mappings are reference-counted, like any file.
No, they are not. You can munmap() data while it's in flight. And there is NO way to check for it since you can embed literal memory addresses inside shaders (it's not recommended, but possible).

> So no one side can have an adverse effect on another by unmapping under its feet.
It most definitely can. That's why memory sealing and gbm were invented.

> I'm not proposing that. I'm suggesting to merge command buffers from what is currently the 'client' and what is currently the 'server', since neither of them really is the server as far as GPU commands are concerned (the GPU driver, which actually sends commands to the GPU, is the server).
Yes, we all understand that. It's a stupid idea.

First, there's no single command buffer that renders a frame. All modern games use multiple passes and each pass might involve multiple command buffers. In your case ALL of them have to be transmitted to the server.

Second, Wayland can actually use an entirely different video card to display the rendered surfaces. It's pretty common to have a fast discrete card and a builtin Intel card, for example.

Third, the overhead of one additional Draw call per frame from the compositor is pretty much negligible.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 14:08 UTC (Sat) by bjacob (guest, #58566) [Link] (3 responses)

> No, they are not. You can munmap() data while it's in flight. And there is NO way to check for it since you can embed literal memory addresses inside shaders (it's not recommended, but possible).

You're now talking about the case of the same side doing the unmapping and the subsequent access.
That's not what we were talking about above. We were talking about security implications of what if one side unmaps and then the other sides subsequently accesses. _That_ case is what is prevented by the OS, by reference-counting. Obviously, the OS can't know about bugs existing inside each process, but it knows how many processes still have a file descriptor open, in particular, a memory mapping.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 14:14 UTC (Sat) by bjacob (guest, #58566) [Link] (1 responses)

And since you mention the case of shaders, it's an interesting one. The GPU kernel driver has its own handle on the memory mappings, it's a separate 'process' from the application, so it does prevent the OS's reference count from falling to zero no matter what the application does. That's actually the only way that GPU APIs could work, since unless the user calls glFinish() or otherwises syncs, there is no telling how late the GPU might actually access memory mappings - so without such a mechanism, GPU APIs would just randomly crash the driver.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 17:02 UTC (Sat) by excors (subscriber, #95769) [Link]

OpenCL's shared virtual memory (specifically fine-grained system SVM) doesn't work like that - code running on the GPU can access any arbitrary pointer in the host process's virtual address space, without telling the driver about it beforehand. Essentially the GPU has to use the process's page tables for address translation, and pass page faults back to the kernel driver on the CPU to cope with demand paging. If the kernel sees a GPU page fault for unmapped memory, it can just report the error to the userspace process.

Vulkan wants to unify graphics and compute, so I guess it'll end up with a similar feature. The application has to take a lot more responsibility for memory management (e.g. don't unmap memory while an async GPU operation might still be using it), because the kernel driver no longer has enough information to refcount that memory itself, but that's kind of the point of Vulkan.

Still, that doesn't sound like an obstacle to having a userspace server that combines client processes' command buffers in some smart way (for prioritisation or synchronisation or whatever) - I assume the kernel driver already needs to maintain a big queue of submitted command buffers each with an associated address space identifier, which is usually the address space of the process that called into the kernel, but in principle the userspace server could pass the appropriate client's address space identifier into the driver along with its command buffer, and it should behave exactly as if that client has submitted it directly.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 20:34 UTC (Sat) by Cyberax (✭ supporter ✭, #52523) [Link]

> You're now talking about the case of the same side doing the unmapping and the subsequent access.
Sure, if I'm running a malicious application that wants to steal the data from other process or crash the display server.

> We were talking about security implications of what if one side unmaps and then the other sides subsequently accesses. _That_ case is what is prevented by the OS, by reference-counting.
File descriptors have nothing to do with the problem.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 22:56 UTC (Fri) by FLHerne (guest, #105373) [Link] (18 responses)

Are you aware of the wl_subsurface protocol? Applications can pass a tree of surfaces to the compositor, to avoid doing the compositing themselves.

http://wayland.freedesktop.org/docs/html/apa.html#protoco...

I don't think passing command buffers around is a good idea - Wayland's intended to run on a huge range of devices, and if X is any example will be around for decades.
Tying it to Vulkan would be awful for hardware support and wreck any chance of deprecating X for another decade; a more general solution for arbitrary command formats would be a compatibility nightmare.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 23:00 UTC (Fri) by FLHerne (guest, #105373) [Link] (1 responses)

Oh, and security. WebGL is problematic enough, executing GPU instructions from arbitrary webpages *in the same context as your entire desktop* sounds like fun.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 23:06 UTC (Fri) by bjacob (guest, #58566) [Link]

For sure, the security implications will/would be interesting. That doesn't mean that one shouldn't try to make that work; also, one should ask the more basic question of what is a "context" and what the different "contexts" here would be and how that would tie into security. The current situation isn't great either; it's one thing to shield the OS from the app, but you would also want to shield apps from each other, shield browser tabs from each other... the latter point isn't very well covered at the moment. Even in a multi-process browser, depending on implementation details, you can have all tabs ending up running GPU commands from the same process.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 23:02 UTC (Fri) by bjacob (guest, #58566) [Link] (15 responses)

That might address some use cases. My background is in Web browsers and those have such genericity in their needs and in the types of content (e.g. videos, WebGL canvases...) and in the type of transformations that may be applied to them (e.g. CSS 3D transforms, filters...) that it's guaranteed that no such window system feature could be useful.

That reflects the basic problem at hand - for a while the idea that the window system would support the N most important use cases of applications, but ever since users spent most of their time in front of a Web browser, and Web pages became as graphically generic as they are now, it's basically impossible for the window system to help. So complexity has grown internally in apps (browsers) but the interfacing with the window system has become more and more of a bottleneck.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 3:20 UTC (Sat) by linuxrocks123 (guest, #34648) [Link] (14 responses)

That might address some use cases. My background is in Web browsers and those have such genericity in their needs and in the types of content (e.g. videos, WebGL canvases...) and in the type of transformations that may be applied to them (e.g. CSS 3D transforms, filters...) that it's guaranteed that no such window system feature could be useful.
Web browsers are not representative of most applications, so if your view into the world is through them, it's going to be distorted.
That reflects the basic problem at hand - for a while the idea that the window system would support the N most important use cases of applications, but ever since users spent most of their time in front of a Web browser, and Web pages became as graphically generic as they are now, it's basically impossible for the window system to help. So complexity has grown internally in apps (browsers) but the interfacing with the window system has become more and more of a bottleneck.
Complexity has grown in web browsers. You are assuming that the needs of web browsers in some way represent the needs of other applications. They don't. Web browsers are not games; web browsers are not video players. Rather, they incorporate game and video player APIs, which they generally implement in a poorly designed, insecure, bug-ridden, and non-performant manner.

Web browsers do not correctly use current Linux graphics APIs. Designing future Linux graphics APIs to the stated needs of web browsers is insanity.

One last thing: if most users do spend most of their time in front of browsers, it's an artifact of most users not being totally competent at efficiently using computers. Webmail is downright painful to use for me personally, and so many people probably prefer it because it's there and they don't know how to use anything else, or even that anything else exists. I imagine "traditional" mail clients are much more popular among LWN readers than the general public, though, because traditional mail clients are better.

I've heard stories about students using Google Docs on their smartphones to write papers because they were faster at touchscreen-typing than typing on keyboards. Obviously, these students were simply never taught touch typing. Web browsers being popular is in no way a vindication of the "One Program to Rule Them All" architecture philosophy these horribly-designed applications espouse.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 10:09 UTC (Sat) by Wol (subscriber, #4433) [Link] (2 responses)

> I've heard stories about students using Google Docs on their smartphones to write papers because they were faster at touchscreen-typing than typing on keyboards. Obviously, these students were simply never taught touch typing. Web browsers being popular is in no way a vindication of the "One Program to Rule Them All" architecture philosophy these horribly-designed applications espouse.

GUIs are crap for data entry. That doesn't stop the PHBs specifying a gui program for data entry. Browsers are crap for pretty much everything. That doesn't stop the PHBs specifying a browser for everything.

Fact is, however much we may moan and think that the lusers are being stupid, MOST computer TIME is spent in front of a browser. The really sad thing is that most lusers are probably more intelligent than that - it's the bosses that specify inappropriate tools, and the users that suffer :-(

(Oh, and as for touch-screen typing, the speed I've seen my kids doing two-thumb typing it's FAST. What about that five-button device years ago that people said was great for typists - the microwriter :-)

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 11:05 UTC (Sat) by hitmark (guest, #34609) [Link]

And the PHBs likely specified that because some big name corp announced they were moving that direction, and now the board wants to know if they share price will tank from the company looking old or not.

Or he simply got wined and dined by some greasy haired sales rep...

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 14:44 UTC (Sat) by rsidd (guest, #2582) [Link]

>Oh, and as for touch-screen typing, the speed I've seen my kids doing two-thumb typing it's FAST.

If your kids type on touchscreens in full sentences they're very much the exception.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 17:02 UTC (Mon) by nye (guest, #51576) [Link] (10 responses)

>One last thing: if most users do spend most of their time in front of browsers, it's an artifact of most users not being totally competent at efficiently using computers.

I assume you have some terribly interesting anecdata to support your personal bigotry? Most bigots do, after all.

>Webmail is downright painful to use for me personally, and so many people probably prefer it because it's there and they don't know how to use anything else, or even that anything else exists.

Wait, so there's a tool that you find difficult to use and others find easy, and you think *they* are the ones with the deficiency? That's an interesting interpretation.

>I imagine "traditional" mail clients are much more popular among LWN readers than the general public, though, because traditional mail clients are better.

Better at what, exactly?

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 11:28 UTC (Tue) by Wol (subscriber, #4433) [Link] (9 responses)

> >Webmail is downright painful to use for me personally, and so many people probably prefer it because it's there and they don't know how to use anything else, or even that anything else exists.

> Wait, so there's a tool that you find difficult to use and others find easy, and you think *they* are the ones with the deficiency? That's an interesting interpretation.

FACT. Webmail is crap for managing mail.

FACT. Most *people* find webmail perfectly okay for managing their mail. Just like with snail mail, they scan it as it arrives, ignore or throw the spam in the trash, read the stuff that's interesting, then forget all about it.

For the most typical usage of e-mail, webmail works fine. Last *insert time period here*'s email piles up at the back of the inbox, and they don't care.

> >I imagine "traditional" mail clients are much more popular among LWN readers than the general public, though, because traditional mail clients are better.

> Better at what, exactly?

At actually managing your mail, sorting and cataloging it, and making sure you can find it again. Those activities that 90% of mail users couldn't give a monkeys about.

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 11:45 UTC (Tue) by nye (guest, #51576) [Link] (8 responses)

>FACT. Webmail is crap for managing mail.

So your idea of substantiating a controversial argument on a topic you know nothing about is to prefix it with 'FACT'.

That's embarrassing even when small children do it.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 18:49 UTC (Tue) by Wol (subscriber, #4433) [Link] (7 responses)

Unfortunately, COMPUTERS are crap at being computers, the way most users use them.

In my experience, both at home and at work, the way most computers are used fits very nicely into the paradigm "if all you have is a hammer, every problem looks like a nail" (and I'm guilty of it myself, sometimes - I'll use a tool I know, rather than the proper tool for the job. My wife drives me mad, she'll happily use Word as a picture editor!).

Web mail satisfies 90% of users. Web mail is crap at managing email. Those 90% of users don't *manage* their email.

At the end of the day, we want people to use their computers "properly", as *we* define "properly". But the majority of users don't care, and we should learn to be more tolerant.

It's like the fuss over the browser elsewhere in this article. For 99% of uses, the browser is the wrong tool for the job. For 99% of uses, the browser is the tool preferred by the PHB and many lusers. We just have to live with it. I get the impression some people find that hard to accept.

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 19:23 UTC (Tue) by bronson (subscriber, #4806) [Link] (6 responses)

The vast number of people using gmail demonstrate that either you're wrong or you're advancing a no true Scotsman argument.

Gmail doesn't "manage" email? It does great bulk search, handles hundreds of thousands of messages, auto filters and categorizes server-side... Sadly, it manages email better than even the newest imap clients. Or are you using a more custom definition of "manage"?

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 23:03 UTC (Tue) by Wol (subscriber, #4433) [Link] (5 responses)

Seeing as I actively avoid cloud-based storage (and that includes gmail), I've not got much experience of it. What experience I do have tells me it sucks.

Oh - and while it may be easily fixable, gmail is broken when accessing it with Thunderbird - what's that "hidden" folder that confuses everything ... ?

I've got postfix configured at home so I can control everything myself - though my setup is broken at the moment thanks to MySQL breaking in an upgrade :-(

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Jan 27, 2016 18:52 UTC (Wed) by bronson (subscriber, #4806) [Link] (4 responses)

I'm sure gmail-over-imap will go the way of gchat-over-xmpp: unloved, buggy, and eventually killed off. Not surprised it didn't work well.

I'm also trying to avoid the siren song of the "free" service provider. For a 2016 resolution I've been moving some of my communication from google properties to mail-in-a-box but it's not going well. Managing contacts is really difficult, sent messages may or may not end up in the Sent Mail folder, search is hit-or-miss, performance is much slower, and it takes a ton of time to set up and maintain. And each client needs lots of custom configuration. gmail may suck but custom-hosted-imap-smtp sucks too!

Agree, don't try gmail. It's a nasty habit and damned hard to kick.

Hutterer: Is Wayland ready yet?

Posted Jan 27, 2016 19:00 UTC (Wed) by sfeam (subscriber, #2841) [Link] (3 responses)

I use gmail-via-imap as my primary non-work Email. I have not seen any problems. The issue mentioned in the grandparent post sounds like a Thunderbird bug rather than anything intrinsic to gmail or imap.

Hutterer: Is Wayland ready yet?

Posted Jan 27, 2016 19:57 UTC (Wed) by spaetz (guest, #32870) [Link] (2 responses)

Former OfflineImap contributor here. Gmail's imap backend is a bastardized version of imap that tries to map gmail tags with imap folders. It leads to tons of problems (eg same message with same Message-Id popping up in multiple folders), when deleting a message in a folder and it still has other tags it will not really be deleted but will show up again in the AllMail folder and other weird behavior like this. Gmails tag system might be nice, but mapping tags to folders makes it definitely not a nice Imp server (unless you never use the tags).

Hutterer: Is Wayland ready yet?

Posted Jan 27, 2016 21:37 UTC (Wed) by sfeam (subscriber, #2841) [Link]

Huh. OK, I'll keep that in mind. Probably I have never used tags, since I am accessing the mail through an imap front end. I guess the lesson here is not "don't use gmail through imap", but "don't mix access modes to the same data".

Hutterer: Is Wayland ready yet?

Posted Feb 3, 2016 21:40 UTC (Wed) by mathstuf (subscriber, #69389) [Link]

You can hide the "All Mail" "label" from IMAP. That's what I do. (I also hide Drafts and Sent Mail as well since I store drafts locally and Fcc into the inbox directly.)

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 20:23 UTC (Fri) by sbergman27 (guest, #10767) [Link] (66 responses)

Honestly, the question I keep coming back to is "Is Wayland needed?". Wayland perpetually feels like a solution in search of a problem. Most of the problems it was designed to address have already been solved in Xorg. (i.e. don't whine to me about screen tearing, etc.) And if it is needed, the most critical question is whether Wayland's X server ready yet. X is the way forward. It's foolish to try to change boats at this stage of the game.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 21:43 UTC (Fri) by dw (guest, #12017) [Link] (3 responses)

I'm mostly a disinterested bystander when it comes to graphics, however Daniel Stone's 2013 talk at LCA really convinced me of just how terrible X11 has become. This part in particular really drives home just how much compatibility crap going on in 'core' X11 means that trivial tasks like starting a web browser have become inordinately inefficient. Really that entire talk is worth listening to.

Of course XCB cures some of the inefficiency from Xlib, and we could always extend X11 even further to provide new ops for collapsing those roundtrips, but that's just more patches on top of a rotting old incomprehensible scheme. As another comment here points out, the pace of innovation in graphics is such that even Wayland's architectural underpinnings are in a state of decline: it's entirely possible that by the time traditionalists have bowed out and something like Wayland is in common use, it simply won't be competitive with wherever the state of the art in graphics has moved next decade (e.g. Vulkan).

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 0:04 UTC (Sat) by sbergman27 (guest, #10767) [Link] (2 responses)

I've seen Daniel's talk. I was unimpressed. Like the Wayland FAQ, it seemed mostly defensive. And anyone who has ever studied debate or journalism knows how easy it is to carefully cherry-pick your opponents weaknesses and blow them up into what seem like "the major issues confronting us" who are not well versed in the issues. Tasks like starting up a web browser are inefficient? Well, Chrome starts up in about 1/4 second on both my desktop and (Android) phone. If FF is dog slow to start, that's not X's fault. FF is slow about everything, for reasons which have nothing to do with X. Why should I care about Wayland? On the other hand, I quite well remember the pain of the libc to glibc transition back in the Red Hat 5.x days. I guess it was worth the pain. But pain there was. A Wayland transition would involve much pain. And loss of some features we currently expect. And this time, I just don't see the compelling reason. Especially with Xorg getting better every day, and its authors actually *caring* about backwards compatibility. Green Fields are fun. But ultimately, I have to work in the real world.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 10:13 UTC (Sat) by Wol (subscriber, #4433) [Link] (1 responses)

> Especially with Xorg getting better every day, and its authors actually *caring* about backwards compatibility.

Except, as I understand it, it is those SAME Xorg authors who are the driving force behind Wayland! If the *authors* of Xorg have basically abandoned it in favour of Wayland (and yes, I know they're continuing to develop it - they're keeping it up-to-date, porting ideas from/to Wayland, and generally keeping it ticking over. But the sooner Wayland displaces it, the happier they'll be), then Xorg is a dead end.

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 11:08 UTC (Sat) by hitmark (guest, #34609) [Link]

Best i can tell, the primary instigation didn't come from desktop X. It came from using X on the likes of the Nokia 770/N800/N810.

Frankly a whole lot of what is going on in the Linux desktop sphere these days seems to originate from people involved with those devices. Most often directly employed at Nokia, or as a subcontractor (I seem to recall Collabora was heavily involved for example).

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 22:00 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link] (12 responses)

Wayland is getting used in lots of embedded devices.

It's also interesting to note, that with the new KMS/DRM infrastructure it's now pretty easy to create new "Waylands". It's essentially what Ubuntu, Google and lots of other companies are doing.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 23:25 UTC (Fri) by sbergman27 (guest, #10767) [Link] (11 responses)

"Wayland is getting used in lots of embedded devices."

Really? Like what? The only Linux display server that really matters in the embedded space is SurfaceFlinger. Unless you think you can convince Google to move to Wayland. The next most relevant might be Mir, though I really don't see Canonical doing more than a niche business. The Linux desktop, in restrospect, and much to my sorrow, was always DOA, having been stuck at 1% for as long as I've been watching and promoting it, which is 19 years. The one place I have ever found that I can really sell the idea of the Linux Desktop is centralized business desktops running from a terminal server like NX. And there, Wayland and 3D desktops are nonstarters. Servers certainly don't need Wayland. Color me completely unimpressed. Before we ever even get to "Oh, but Wayland can "fill in the blank with some esoteric tech feature", we have to get past the fact that whatever it can or can't do... it doesn't really matter. Maybe it will find some little niche in the embedded space, and we can seek those devices out, buy them, and feel somehow triumphant. But that's hardly anything to get excited about.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 1:45 UTC (Sat) by Cyberax (✭ supporter ✭, #52523) [Link] (6 responses)

Like Tizen devices. Chromebooks use Ozone which is pretty much a NIH-ed Wayland and it's possible that they might switch to it.

BTW, servers are actually making good use of technologies implemented for Wayland - for the GPGPU stuff.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 2:46 UTC (Sat) by rahvin (guest, #16953) [Link] (1 responses)

IIRC Google has already said they are going to move to Wayland for all their products. It's just how long it's going to take at this point.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 1:03 UTC (Sun) by sbergman27 (guest, #10767) [Link]

Link, please.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 19:19 UTC (Sat) by raven667 (subscriber, #5198) [Link]

Maybe they're Tizen based but I thought one of the major IVI vendors has been shipping Wayland based media players for a while now.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 21:37 UTC (Sat) by sbergman27 (guest, #10767) [Link]

I must say, I'm not impressed. Tizen? How many Tizen devices are out there, again? Practically none? Or is it literally none? Chrome OS used Freon, last I heard. If Google went to the trouble to do another display manager, as they did with SurfaceFlinger for Android, they are not about to switch to Wayland, any more than they are likely to switch to it for Android. As long as all this special purpose embedded stuff stays where it belongs, I'm fine with it. I'm quite happy to see developers play around wherever they like. But start talking about replacing our perfectly functional and performant desktops with it... and that's where I start to get "Pulseaudio" angry about needless, years-long setbacks in functionality, performance, and reliability. And face it, outside of desktops, It's really just Android (and *maybe* Chrome OS) that matter for Linux. Do you really think Tizen is going anywhere?

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 23:05 UTC (Sat) by anselm (subscriber, #2796) [Link]

For the record, Sailfish OS uses Wayland, too.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 15:58 UTC (Mon) by javispedro (guest, #83660) [Link]

Note that most mobile Tizen devices one can buy use Xorg (mobile/smartwatch profile). Dunno about IVI, but despite my interest I never saw one of those in the wild.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 14:37 UTC (Sat) by Sho (guest, #8956) [Link]

> Really? Like what?

LG's Smart TVs come to mind: https://www.youtube.com/watch?v=N-DGijemc7M

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 18:31 UTC (Sat) by krake (guest, #55996) [Link] (2 responses)

> The only Linux display server that really matters in the embedded space is SurfaceFlinger

Actually I highly doubt that unless you define "embedded" to mean "mobile".

A lot of the embedded projects I've come across use either linuxfb or EGLFS because they don't need any windows, they run one application only.
For devices that actually need multiple windows there is a transition from X to Wayland, often because the vendors get easy to use building blocks like Qt's Wayland compositor library to create custom window management facilities specific to the device's function.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 21:46 UTC (Sat) by sbergman27 (guest, #10767) [Link] (1 responses)

Mobile is embedded. And it dwarfs the rest of the embedded market hardware-capable of using either X or Wayland. Most of the embedded market doesn't even have a display. Most of the Linux devices in my house only communicate via ssh. The only 3 which have displays are my Desktop and Laptop, which both run splendidly on X, and my phone, which runs fine on SurfaceFlinger, but which would likely do about about as well running Xorg.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 9:06 UTC (Sun) by krake (guest, #55996) [Link]

While one could technically see mobile as a subvariant of embedded, the usage is different enough to consider them separate.

In the embedded space the device often has just one application using the screen, hence the wide use of direct access like linuxfb, EGLFS, and similar on other platforms than Linux (e.g. QNX)

When it comes to Embedded Linux with a multi window requirement, when traditionally one would use X or some vendor specific windowing system like QWS when using Qt, there is now considerably uptake of Wayland.

There are probably devices that run Android instead and thus SurfaceFlinger, but that is more likely in the home consumer product space where device vendors might even want to have user installable apps.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 22:10 UTC (Fri) by rahvin (guest, #16953) [Link] (19 responses)

Wayland was designed and built by mostly the same people that have been building and supporting xorg. It was designed to solve the problem of 20 years of cruft and stapled on fixes to that cruft. The xwindow codebase was a nightmare and needed to be replaced if they were going to support the next 20 years of advancements.

IMO Wayland is just a simplification of the x-window system into something that matches how the windowing systems are using x-windows today. Because it's throwing off the 20 years of legacy code in X-Windows,it is maintainable, expandable and ready for the future while taking to heart all the lessons of the x-window system. There are a few fundamental changes to how the system works but those changes were carefully considered and implemented by the people that have been managing x-windows, there is quite frankly a lot of institutional knowledge there about the behind the scenes working.

We need to allow time for the window managers to implement their wayland engines before we start criticizing what Wayland is trying to do. From everything I've read the people behind KDE, Gnome and others like what Wayland has done (in particular simplifying the system) but it requires them to rewrite portions of their codebase and is going to take time to not only implement but to debug their implementations.

Frankly I'll trust that the people behind Wayland knew what they were doing until there is actual hard evidence otherwise. There is just way to much experience behind Wayland to not give it the benefit of the doubt.

Hutterer: Is Wayland ready yet?

Posted Jan 22, 2016 23:40 UTC (Fri) by sbergman27 (guest, #10767) [Link] (18 responses)

See my reply to Cyberex. I think what you mean to say is that some of the people working on Wayland have also contributed to Xorg. Not surprising that there would be an intersection there since they are both OSS projects involving a display server. And both are primarily targeted at unix-like systems. What percentage of recently active Xorg devs are actively involved in Wayland, I wonder? A small percentage. At any rate, Google is not about to adopt Wayland. Canonical is not about to adopt Wayland. And it's a complete nonstarter for the Terminal Server Business Desktop case, unless you only have one location, and don't need users to get good performance over a WAN. Wayland is a waste of time and resources.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 1:20 UTC (Sat) by barryascott (subscriber, #80640) [Link] (2 responses)

I think what you mean to say is that some of the people working on Wayland have also contributed to Xorg.

He means that the wayland people are the same poeple that design and maintain x org.

Not simply contribute a patch now and again.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 2:16 UTC (Sat) by rahvin (guest, #16953) [Link]

That is exactly what I mean.

Though there are a few exceptions the same people behind Xorg are the same people behind Wayland. There is even a post on it I can't find by one of the top Xorg/Wayland people about why they created Wayland and it ties down to the amount of work to fix a broken code base versus starting from scratch. They did a full analysis on how much effort it would have taken to fix Xorg before they embarked on creating Wayland and it wasn't even a competition. IIRC it would have taken 5 years just to remove Xorg code no one was using anymore without breaking anything.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 21:54 UTC (Sat) by sbergman27 (guest, #10767) [Link]

What I mean is "What percentage of Xorg folks are working on Wayland?". Here is the original quote from from rahvin:

"Wayland was designed and built by mostly the same people that have been building and supporting xorg."

Very disingenuous. And worded to deceive. Do you really think that most of the same people involved with Xorg are pushing Wayland? I don't. It's a small minority. It's a very different statement than the truth, which is that some of the people involved in Wayland are working, or have worked, on Xorg. No surprise, given the small size of the OSS graphics community.

-Steve

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 10:16 UTC (Sat) by Wol (subscriber, #4433) [Link] (3 responses)

> See my reply to Cyberax (sic). I think what you mean to say is that some of the people working on Wayland have also contributed to Xorg.

You mean, like the lead contributor (can't remember his name)? But the "Linus of Xorg" is one of the MAIN people behind Wayland.

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 16:42 UTC (Sat) by pflugstad (subscriber, #224) [Link]

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 22:09 UTC (Sat) by sbergman27 (guest, #10767) [Link] (1 responses)

"Wayland was designed and built by mostly the same people that have been building and supporting xorg."

More deceptive language about Wayland devs, I see. Keith is OK with Wayland. But he's not the active Wayland contributor and Wayland cheerleader you'd like to portray him as. His focus remains upon the more mature and capable Xorg. It's certainly possible that much of his code might have ended up in Wayland. Xorg is MIT licensed, after all. And Wayland devs have appropriated much of the recent Xorg work on those terms.

Keith's views largely overlap my own. And here are his views:

https://youtu.be/dZI4pAvK_RY

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 5:30 UTC (Sun) by Cyberax (✭ supporter ✭, #52523) [Link]

Please, see here: https://lwn.net/Articles/413335/

X-org developers (Keith Packard included) say that X-org is pretty much a dead end. It's a very _long_ dead end that will be supported for many more years, but it's still dead.

This one is amusing: http://www.phoronix.com/scan.php?page=article&item=x_...

As for Wayland - it's not only interesting in itself, but also in the way it's implemented. All the complicated parts of the graphics stack are now in the kernel (KMS+DRM) or in libraries (libinput) - refactoring this functionality from X took a LONG time and a lot of of effort. So Wayland itself is _tiny_ - it's barely several thousands lines of C code, and competing servers (Ozone, Mir) are in the same ballpark.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 10:55 UTC (Sat) by Del- (guest, #72641) [Link] (10 responses)

> some of the people working on Wayland have also contributed to Xorg

Like noted already, it is well known that the wayland developers and xorg developers are mainly the same group. If you have a contrary view, then please document it.

> Google is not about to adopt Wayland.

Is this your personal view, or do you have any information to support it?

> And it's a complete nonstarter for the Terminal Server Business Desktop case,

Why? This is a use case where X has underdelivered for decades, and a use case where I really hope Wayland can help us get rid of the proprietary offerings by enabling competitive open source solutions. Then again permissive licensing of display servers may be the main cause of the tragic state.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 22:53 UTC (Sat) by sbergman27 (guest, #10767) [Link] (2 responses)

No. It has not been demonstrated that the two sets are the same. There is a non-empty intersection, I would agree. But if you want to demonstrate that they are the same group, the burden of proof rests with you. Wayland is headed by Kristian Høgsberg (Not an Xorg contributor.) who also makes the vast majority of contributions, all by himself. (710 out of 939 just a few years ago.) The total number of contributions to Wayland declining rather sharply over the years. Here are the number of contributions per year, and top 5 contribution participants of 2014. Knock yourself out. But I don't see that you are going to find a large overlap.

http://www.phoronix.net/image.php?id=0x2014&image=way...

http://www.phoronix.net/image.php?id=0x2014&image=way...

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 13:55 UTC (Sun) by ms_43 (subscriber, #99293) [Link]

> It has not been demonstrated that the two sets are the same.

Why do you think such an absurdly high requirement is conductive to providing any insight?

> Wayland is headed by Kristian Høgsberg (Not an Xorg contributor.)

https://www.openhub.net/p/x/contributors/19232863560029

It would appear that he made 745 commits to Xorg repositories, which certainly makes him a contributor, no?

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 22:55 UTC (Sun) by airlied (subscriber, #9104) [Link]

Kristian was an X.org contributor for years. He designed and implemented DRI2.

Peter Hutterer is the input person for both wayland and X.

Work on something in X.org is for Xwayland benefit, glamor etc.

I think the problem is you think there are more X developers than there are, there is probably only really 10 people who've done major contributions in 5 years, and most of them have done work directly or indirectly on wayland support.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 23:03 UTC (Sat) by sbergman27 (guest, #10767) [Link] (6 responses)

You've obviously never used NX. NX is the highest performance remote desktop solution out there. Beats RDP and anything Citrix has to offer hands down. My hundred or so business desktop users couldn't live without it. All based upon X and X protocols. Wayland doesn't even have a way to do remote, aside from the pathetic VNC protocol which you can bolt on top of it. It's sad that so many in the Linux world have come from the Windows world, with all its 1 user, 1 machine ideology. Unix is a multiuser OS. Stop thinking about it like it's Windows 95.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 1:27 UTC (Sun) by sdalley (subscriber, #18550) [Link]

> Wayland doesn't even have a way to do remote

Incorrect. XWayland is a full rootless Xserver which can do precisely as much, or as little, with the X protocol as any other X server, including X remoting.

The question of Wayland remote capability is completely orthogonal to this.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 9:47 UTC (Sun) by Del- (guest, #72641) [Link] (1 responses)

> NX is the highest performance remote desktop solution out

I have been using nx regularly since its introduction. The library was initially open, but last years development has all been proprietary. It is useless for 3D. I am now using rgs, which at least supports 3D, but has a so crappy interface that it makes me want to scream, not to mention it is expensive. This is after decades of the current xserver. *Anything* Wayland can do to rectify this is welcome. However, I fear this sorry state of affairs is more a consequence of permissive licensing than technical challenge. Moreover, it seems like the solution will be coming through KVM, virtualizing the GPU properly. Not ideal, since it means firing up a full OS for each remote connection. Adding on the security concerns and code quality of X, I find your support for the current xserver strange.

Indeed, I checked through the ten most active developers on xorg and Wayland. There seems to be very little overlap. Somebody has repeated that statement one too many times.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 10:36 UTC (Sun) by sytoka (guest, #38525) [Link]

> The library was initially open, but last years development has all been proprietary.

Maybe the main problem is that NX protocol never integrate the core of Xorg (and OpenSSH -X option).

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 17:21 UTC (Mon) by nye (guest, #51576) [Link] (1 responses)

How did you manage to get NX to work better than RDP? Any specific server setup/client requirements/caveats?

NB: AFAIK there are no real RDP servers for X11, at least not FOSS ones. The only RDP servers I've ever been able to find for X11 are simple ones that ignore almost everything about RDP and resort to shoving massive bitmaps down a pipe, VNC-style.
If that's your point of reference, then you haven't seen what RDP can do, but if you have tried with real RDP servers and got NX to work better, then I'd be pretty interested in hearing what you had to do to make it do so, and if it can be done with entirely FOSS.

I will grant that I've not tried NX in a few years; if it's improved dramatically recently, then it's me that has the outdated point of reference - and I'd kind of be interested in hearing that too.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 18:52 UTC (Tue) by Del- (guest, #72641) [Link]

> How did you manage to get NX to work better than RDP? Any specific server setup/client requirements/caveats?

Just use the packages from nomacine, excellent performance for desktop use, and all safe and encrypted out of the box. Add on shadow mode and a couple of other nice features, and it blows rdp out of the water. The only thing I can think of that rdp does better is video, but come on, neither of them gives satisfactory video viewing anyway, and both lack 3D.

You can check out freenx and neatx for fully open implementations of nx.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 11:39 UTC (Tue) by Wol (subscriber, #4433) [Link]

> Wayland doesn't even have a way to do remote, aside from the pathetic VNC protocol which you can bolt on top of it.

As I understood it (and I *checked* *up* on it ages ago), Wayland (the protocol, not Weston the implementation) is perfectly capable of doing X-like remote. It was designed in right from the start.

Nobody (who's prepared to do the work) seems to think it's that important at the moment, so Weston the implementation can't do it.

(And the impression I get about all these buffers being passed around, is that there is no problem passing buffers over the network, when someone gets around to doing it. So any app can create its window in Wayland, and it gets passed across to a ?compositor? running on a *different* machine, to display it.)

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 5:44 UTC (Sat) by jf.j.e.martin (guest, #106509) [Link] (11 responses)

The people behind xdg-app say they need it if we want a secure (securer?) graphical application container.
If it is true, this fact alone make Wayland relevant for me.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 11:11 UTC (Sat) by hitmark (guest, #34609) [Link] (10 responses)

Secure from who?

The more i see coming out of Linux *sec world, the more i feel like i am looking at a variant of Trusted Computing, where the OS has to be defended from its very users.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 12:23 UTC (Sat) by cortana (subscriber, #24596) [Link]

Secure from other applications running on the same system.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 12:32 UTC (Sat) by DOT (subscriber, #58786) [Link] (8 responses)

In X, the 'users' that an application wants to protect itself from, are *other applications*. You can have all the security features in the world, but if any X11 application is compromised, all X11 applications are compromised.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 21:13 UTC (Sat) by kreijack (guest, #43513) [Link] (7 responses)

> In X, the 'users' that an application wants to protect itself from, are *other applications*.
> You can have all the security features in the world, but if any X11 application is compromised,
> all X11 applications are compromised.

True, but this is a real problem ?
This was true in the last 30 years: and which problem caused ?

I think that the real problem is the "xdg-app/play store/app store" model vs the "linux distribution" model. Only the first ones need a strong separation between the applications.

Frankly speaking I prefer a model like X (with all its technical limits) which allows gimp to pick a color of a foreign window, or allows a simple application to take a screen-shot to put it in a presentation.

In wayland this is not allowed for security reasons.

This is like a person who runs a browser in a chroot environment but he became unable to push a file in its web email client: ok the security, but there is also the usability.

Hutterer: Is Wayland ready yet?

Posted Jan 23, 2016 21:28 UTC (Sat) by MattJD (subscriber, #91390) [Link]

While I do miss having those potential pieces of functionality you point out, the trade off we get is the inability to write key loggers that just connect to X and monitor everything (among other attacks, but that is the big one). It's one of these painful security questions: Do we allow any application to do anything and rely on the user to secure their machine, or limit what they can do but allow the user to be less worried about what they install?

I personally fall more into the first camp for my devices, but I like digging into low level things and playing. For the rest of my family, they don't (they have other good hobbies). They don't have time to try and protect themselves from such attacks, and rather someone else do it for them.

Who that someone should be is a tricky question, but at least with Linux/Wayland, we can always dig in and replace it with whatever we wish. On systems like iPhones and most Androids, we don't have that capability built in, forcing us to trust a particular person.

And this applies to many aspects of security. Most users don't the time nor the energy to vet applications, they want someone else to do it for them. If we want truly secure systems for most people, we can't rely on them making the right decision. I don't like it anymore then you seem to. But I don't think we have a choice if we want to make computing secure and easy for people to use.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 11:57 UTC (Sun) by DOT (subscriber, #58786) [Link] (5 responses)

The proposed solution to interaction between a contained app and its environment, is to have privileged dialogs that give the required data to the application on user request.

Fictional example: the color grabber button in GIMP would pop up the privileged application GNOME Color Grabber, which would allow the user to click somewhere and it would return the picked color to the contained GIMP.

Another: clicking on the "open file" button in LibreOffice would pop up the privileged application GNOME File Chooser, which would let the user navigate to a file and select it. The OS would then make only that file available to the contained LibreOffice.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 12:20 UTC (Sun) by mbunkus (subscriber, #87248) [Link] (1 responses)

> Another: clicking on the "open file" button in LibreOffice would pop up the privileged application GNOME File Chooser, which would let the user navigate to a file and select it. The OS would then make only that file available to the contained LibreOffice.

One of the drawbacks of explicit acknowledgement is file types that reference other external files. LibreOffice is such an example: you can embed images into the file or only a reference to a storage location. Other examples may be playlists (e.g. a Blu-ray MPLS playlist file referencing several M2TS and other files on the disc), build systems (Makefiles referencing a plethora of files), basically any application where you open a file that's not much more than a directory to other files.

I'm sure designers of containers such as Xdg-App are aware of such issues. I'm curious what kind of solutions they come up with because I do believe this kind of separation to be worthwhile.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 1:15 UTC (Mon) by DOT (subscriber, #58786) [Link]

That's one of the hard problems, yes. For the music library feature, I could see a solution in the form of a Directory Chooser, so the application gets access to a bigger part of the file system. It is very common for music to reside in a dedicated directory tree such as ~/Music. The same solution could be used for an IDE, or any project-based application.

In the case of a document that just happens to point to other documents, you might want to define a location where the application can store all documents and their dependencies. It's a bit less ideal: you'd give LibreOffice access to all files in ~/Documents. Maybe you could get away with only giving read-only access by default and getting OS-level confirmation for editing capabilities. That kind of makes sense, since you're 'opening' a linked document.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 18:53 UTC (Sun) by kreijack (guest, #43513) [Link] (2 responses)

> Fictional example: the color grabber button in GIMP would pop up the privileged application GNOME Color Grabber, which
> would allow the user to click somewhere and it would return the picked color to the contained GIMP.

Who decides that the "application GNOME Color Grabber," may be a privileged application ? Or on the other side who decides that the "virus XYZ" must be not a privileged application ?

This resemble the Android security model: theoretically each user can control which privileges has each application. But in the real word, most applications require a lot of privileges only to show advertisements.

Hutterer: Is Wayland ready yet?

Posted Jan 24, 2016 20:49 UTC (Sun) by anselm (subscriber, #2796) [Link]

Who decides that the "application GNOME Color Grabber," may be a privileged application ? Or on the other side who decides that the "virus XYZ" must be not a privileged application ?

My guess would be that this will be handled like, say, Set-UID programs are handled now: by relying on the distribution maintainers to do the Right Thing. We would expect a system to come with a set of privileged applications that cover the obvious use cases, and third-party programs would avail themselves of these as required. If a program that was not part of the distribution wanted to install its own privileged application, the local administrator would presumably be in charge of allowing or disallowing that.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 1:34 UTC (Mon) by DOT (subscriber, #58786) [Link]

"This resemble the Android security model: theoretically each user can control which privileges has each application. But in the real word, most applications require a lot of privileges only to show advertisements."

Indeed, that's a huge risk. Note that Android has had the Intent system since the beginning, but that has gone largely unused. Apps like to needlessly grab a whole lot of permissions. I think this happened for two reasons: Google allowed those apps in the store instead of telling them to use intents, and users had no way of denying permissions. Note that web browsers do a little better in this regard: fullscreen, webcam, large data storage, file upload are all capabilities that must be explicitly allowed by the user on a case by case basis.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 16:24 UTC (Mon) by javispedro (guest, #83660) [Link] (16 responses)

I keep thinking of do not rewrite software rule when reading about Wayland.

Xorg might be a gigantic monolithic mess with many papercuts, but the most common reaction one gets after transitioning to Wayland is "meh, does this actually improve anything?" only to revert to Xorg after finding out it has new papercuts on top of the existing Xorg ones.

I find that scenario to be the not unlike other examples of failed mid-sized software rewrites. Time will tell.

Virtually the only scenario where I see any improvement is if you weren't using any display server, or using it in curious ways (i.e. single fullscreen window), in which case you'll appreciate the relatively small footprint of Wayland.

From a design point of view, I find Wayland an order of magnitude better, as expected from a rewrite. Although I disagree about putting functionality back into the kernel. And also don't like that a lot of previously X11 functionality is left "shell implementation defined" -- there's a huge risk the different shells become incompatible, as many Wayland implementations already are.

But it's not clear if any of this will really have a measurable positive impact on user+developer experience over Xorg's.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 16:41 UTC (Mon) by rahulsundaram (subscriber, #21946) [Link] (8 responses)

> From a design point of view, I find Wayland an order of magnitude better, as expected > from a rewrite. Although I disagree about putting functionality back into the kernel

Functionality was already in the kernel by the time Wayland showed up.

>there's a huge risk the different shells become incompatible, as many Wayland implementations already are.

Examples please. What is incompatible?

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 0:15 UTC (Tue) by javispedro (guest, #83660) [Link] (3 responses)

> Functionality was already in the kernel by the time Wayland showed up.

Yes, but I hardly find that a valid justification for the design.

> Examples please. What is incompatible?

Extreme example: When I tried to get Xwayland running on Jolla, which uses Qt Wayland, I found out that all the input events (keyboard and touch) were using Qt specific interfaces and thus they would not be captured by "weston" clients such as Xwayland.

To put this in perspective: I had one Wayland compositor and one Wayland client and _they didn't even use the same protocol for input events_.

This specific example is now only 'slightly' fixed (QtWayland still sends some Qt-specific stuff, such as qtkey), albeit the general case now works.

However, with various compositors evolving simultaneously and a weak "reference" one/standards process, new issues like that one are inevitable. For example: currently, two major compositors use client side decorations (Mutter and QtWayland), while at least one major compositor uses server side decorations (KWin). Remarkably, Qt applications do not use the standard Qt Wayland library when running under KWin, they use a KDE specific one!

Screensaver inhibiting? Shell-specific! Touch gestures? Shell-specific! Startup notification? ... one gets the idea.

The risk here is much worse than "not being able to run a KDE program under Gnome". And I don't even want to get into docks or other types of "fringe" functionality in EWMH. Docks? Struts? Every compositor does it its way, if it does it at all.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 0:46 UTC (Tue) by rahulsundaram (subscriber, #21946) [Link] (2 responses)

>Yes, but I hardly find that a valid justification for the design.

It is a valid observation to point out that your objections to the design applies to xorg as it currently exists as well. There is nothing Wayland specific about it.

Similarly for a lot of what you highlight, there is no real standard at the xorg level either. The standards for those exists at a higher level around freedesktop.org and the pattern there is implement shell specific changes and pull out common changes into a cross shell extension when there is some consensus.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 1:06 UTC (Tue) by javispedro (guest, #83660) [Link] (1 responses)

And still, "Xorg is as bad!" is not a valid justification for the design. Not when attempting to justify a rewrite of it, anyway.

> Similarly for a lot of what you highlight, there is no real standard at the xorg level either.

Not at the Xorg level. But in the rewrite there's no standard at _any level_. At some point, most probably next decade, the "standard" will have reached feature parity with what we have now, and the Wikipedia page listing "failed rewrites" will have another bullet point.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 1:35 UTC (Tue) by rahulsundaram (subscriber, #21946) [Link]

>And still, "Xorg is as bad!" is not a valid justification for the design.

Good thing that noone else has actually said that then.

>But in the rewrite there's no standard at _any level_

The core protocol as well as several extensions are implemented by multiple desktop shells.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 10:22 UTC (Tue) by lsl (subscriber, #86508) [Link] (3 responses)

> Examples please. What is incompatible?

Capturing screenshots, for example?

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 18:01 UTC (Tue) by rahulsundaram (subscriber, #21946) [Link] (2 responses)

> Capturing screenshots, for example?

I logged into a GNOME Wayland session in Rawhide and screenshots seems to work since the compositor handles it directly. I am probably missing something. What is incompatible?

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 18:16 UTC (Tue) by HelloWorld (guest, #56129) [Link]

It's about how to take a screenshot programmatically. Application like Spectacle (the successor to KSnapshot) need to communicate with the compositor in order to do their job. According to lsl there is no protocol to do that which works across multiple compositors.

Hutterer: Is Wayland ready yet?

Posted Jan 26, 2016 23:47 UTC (Tue) by raven667 (subscriber, #5198) [Link]

I think the point being made is that he doesn't believe the Wayland or IPC call between an interested application and the compositor window manager have been standardized for functions like screen shot or color eyedropper or middle-click select-paste or sandboxed file-open, so there is a compatibility matrix between applications and window managers that doesn't exist for functions in X that the application can inspect by itself without the possibility of security controls blocking access to another applications window.

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 20:10 UTC (Mon) by dfsmith (guest, #20302) [Link] (4 responses)

> I keep thinking of do not rewrite software rule when reading about Wayland.

I feel somewhat compelled to point out that Joel Spolsky has a vested interest in keeping legacy software complicated. I'm not saying he's wrong—just that I would add several caveats and exceptions to the phrase "do not rewrite software".

Hutterer: Is Wayland ready yet?

Posted Jan 25, 2016 22:43 UTC (Mon) by flewellyn (subscriber, #5047) [Link] (3 responses)

Can you specify why you believe he has such a vested interest? I don't know much about him.

Never rewrite software

Posted Jan 25, 2016 23:25 UTC (Mon) by dfsmith (guest, #20302) [Link] (2 responses)

Commercial project management software is not needed as much by small teams doing rewrites. It's somewhat vital for bigger teams improving large existing applications. Spolsky's companies (Fog Creek, Trello and to some extent Stack Exchange) sell project management tools and support. That's a good thing; but may not be aligned with your mission.

Never rewrite software

Posted Jan 26, 2016 0:44 UTC (Tue) by javispedro (guest, #83660) [Link] (1 responses)

It's an interesting argument, albeit I shall note that the text was written well before Fog Creek was founded, and that it is known jwz did indeed came to the same conclusion after the Mozilla experience described by Joel.

Never rewrite software

Posted Jan 26, 2016 5:44 UTC (Tue) by rsidd (guest, #2582) [Link]

As for JWZ -- it took a while but Firefox is a vast improvement on Netscape Navigator. Meanwhile, most of the world uses Chrome/Safari which date their origins to KDE's khtml, written from scratch around the same time and used by Apple as a base for webkit. The new engine in Microsoft Edge was written from scratch too. Sometimes old codebases need to be junked.

Hutterer: Is Wayland ready yet?

Posted Jan 28, 2016 12:56 UTC (Thu) by Wol (subscriber, #4433) [Link] (1 responses)

> I keep thinking of do not rewrite software rule when reading about Wayland.

Except, if you actually go back and read Joel, and then look forward at what Wayland is doing, they're not rewriting X.

Joel says "don't throw away and replace the old code, it contains a lot of knowledge and bugfixes". Wayland is throwing away the *functionality*, so just doesn't need the code full stop. (That's not throwing away as in it will no longer be possible, it just won't be part of the display system any more.)

Joel says "don't leave the old code to stagnate while you rewrite it from scratch". Which is why Xorg is continuing to be developed in parallel with Wayland, and users are free to run either (or both). And actually, it wouldn't surprise me if (in the not very distant future) it will soon be the case - for newer hardware - that only Wayland supports the hardware and if you want to run X, you need to run it over Wayland. And why not - all the X stuff will continue to run fine, Xorg itself will run fine but only support Wayland as its hardware interface, and Wayland will just pass the buck to the kernel. Everybody's happy except the old die-hards who want to run X on bare metal ...

Cheers,
Wol

Hutterer: Is Wayland ready yet?

Posted Feb 10, 2016 9:23 UTC (Wed) by nix (subscriber, #2304) [Link]

And actually, it wouldn't surprise me if (in the not very distant future) it will soon be the case - for newer hardware - that only Wayland supports the hardware and if you want to run X, you need to run it over Wayland.
I doubt that. The hardware support for video output isn't in X any more: it's in Mesa and the kernel DRM layer. The hardware support for input has recently been unified between X and Wayland too.

Fedora user perspective

Posted Jan 23, 2016 11:31 UTC (Sat) by bojan (subscriber, #14302) [Link]

Tried it under F-23 and it wasn't quite ready yet, for me personally. There were things that behaved differently, like window positioning under mutter, which I expected to be the same as with mutter running on X. There were some other annoying things that needed solving at that point, like workspace indicator extension not understanding the mouse wheel. So, I gave up on it for now.

It would also be great if I could finally ditch xrdp and just RDP into Gnome directly, which is apparently something that weston is supposed to support, but mutter kinda doesn't directly or something.

Hoping F-24 will be better in this regard.

Hutterer: Is Wayland ready yet?

Posted Feb 4, 2016 1:30 UTC (Thu) by marcH (subscriber, #57642) [Link]

"Is IPv6 ready yet?" sounds like a good analogy.

Using it at home and on my smartphone everyday. Years and years away from being able to use it at work.

Funny enough, week-ends and holidays are very clearly showing up here: https://www.google.com/intl/en/ipv6/statistics.html


Copyright © 2016, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds