News for hackers. Stuff that matters.
Re:An X11 apologist tries Wayland by adamzegelin on Sunday September 18, 2022 @06:11PM (#32891968)
You can also use Gimp via a RDP or VNC session, which will give much better performance on low-bandwidth connections, since those protocols do damage detection, only sending updates of what's changed, and (lossy) compression.

I'm not an expert, but my understanding is that the whole X11 is network transparent thing worked great when apps used the X11 drawing primitives. These days a significant number of X11 apps just render _everything_ (often including window decorations) "server-side" as bitmaps and then send them over the wire to the client to composite them. Essentially the X11 wire protocol has become a bitmap pipe.

Wayland does the "bitmap pipe" thing more efficiently than X11.

Re:An X11 apologist tries Wayland by amelius on Sunday September 18, 2022 @07:03PM (#32892309)
Very much this. Running the X11 protocol over the network is usually not a good idea anymore.

By the way, does anyone know of a VNC-like solution that can use MPEG compression?

Also, VNC could be better if it could increase the quality of parts of the screen once they stop updating. E.g. in TigerVNC setting a low bitrate doesn't improve the quality of text once the text stops changing.

Re:An X11 apologist tries Wayland by aidenn0 on Sunday September 18, 2022 @07:42PM (#32892521)
Nomachine's server and client are closed-source but work great.

For open-source solution for quickly remoting into an existing display, I use freerdp-shadow-cli which is way more stable than x11vnc and uses the RDP protocol instead.

Re:An X11 apologist tries Wayland by RealStickman_ on Monday September 19, 2022 @12:21AM (#32894248)
Nomachine used to be open source. X2Go is the open source continuation of that.
Re:An X11 apologist tries Wayland by aidenn0 on Monday September 19, 2022 @01:38AM (#32894650)
I think their current version is unrelated to what is now x2go
Re:An X11 apologist tries Wayland by izacus on Monday September 19, 2022 @03:54AM (#32895523)
XPRA uses H.264, PNG or JPEG compression. Chrome Remote Desktop will use VP9 these days.
Re:An X11 apologist tries Wayland by chpatrick on Sunday September 18, 2022 @07:22PM (#32892410)
Re:An X11 apologist tries Wayland by msla on Sunday September 18, 2022 @09:24PM (#32893227)
> Running the X11 protocol over the network is usually not a good idea anymore.

It works well, though, and I'm not really interested in hearing that my own experience with it working well is a lie or some trick. Wayland gives up some things, and pretending that those things have no value isn't going to convince those of us who know they do.

Also, those of us who use non-mainstream window managers (such as Window Maker) are not interested in hearing that we should switch to some UI which doesn't support our workflow just because it's more fashionable these days.

There's a debate to be had here, and it needs to be had on the basis of facts, not lies.

Re:An X11 apologist tries Wayland by gbin on Sunday September 18, 2022 @10:10PM (#32893496)
TBH This response is way too aggressive for the original comment.

The facts stated are simply that today it is more efficient to encode video for remote graphical sessions because the X11 applications already changed a long long time ago to adapt to the modern world of GPUs and accelerated compositing. BW, latency, efficiency, everything became better because a super computer with thousands of cores can do that and lighten the load on the CPUs.

It doesn't say it doesn't work... It doesn't prevent you neither from running X11 or even booting up a PDP-11 if this is your favorite workflow!

Re:An X11 apologist tries Wayland by d110af5ccf on Monday September 19, 2022 @12:01AM (#32894152)
The problem is that the Wayland fans have a tendency (at least I feel) to significantly misrepresent things in their favor. Statements like "oh that's actually more efficient on Wayland". No, Wayland is incapable of the sorts of optimizations X can do by design. It is only more efficient if the X app is doing things in a specific way that doesn't take advantage of huge parts of the X protocol. Granted, most modern apps do exactly that at this point. That doesn't make such statements any less of a misrepresentation though.

A much more reasonable claim would be that the network transparency afforded by the X protocol adds significant complexity which is no longer utilized by the majority of mainstream apps today. As such there's a reasonable case for dropping all that complexity from the core system and leaving it to peripheral libraries to handle on a case by case basis for the apps that want to make use of it.

And the idea of lossy compression while using an image editing program being a desirable thing (as suggested elsewhere in this comment chain) is laughable. It's already bad enough reading text that's gone through lossy compression. I would never want compression artifacts while manipulating an image.

My impression of Wayland so far is that I like the technicals but absolutely detest the people I encounter pushing it as a solution (it's quite similar to Rust in that regard I suppose). They would probably meet less resistance if they took more care not to misrepresent the overall state of things. I'll leave the link to KDE Wayland "showstoppers" for reference. Certainly that list is far shorter today than it used to be and many (not all) of the items are now solely on KDE's end. Nonetheless, fanboys have been claiming that Wayland is "production ready" the entire time. https://community.kde.org/Plasma/Wayland_Showstoppers

I'll switch to Wayland once it "just works" out of the box in terms of app integration on stable distributions including things like screen capture, fractional scaling factors, color management, all the stuff that works on X.

Re:An X11 apologist tries Wayland by cycomanic on Monday September 19, 2022 @12:54AM (#32894416)
Well the people who are pushing wayland are the same people that are maintaining xorg, so I would argue they know what they are talking about.

I have also not heard of any one who loudly proclaims xorg is much beter and should instead be maintained to step up to actually do that.

Re:An X11 apologist tries Wayland by michaelmrose on Monday September 19, 2022 @03:19AM (#32895296)
Look at this very statement it's completely inaccurate in a trivial fashion that ought not required analysis but here we are.

The people who actually develop x or wayland are a tiny number of people. The people expressing opinions on the internet on tech is 1000x larger. The implications that the proponents are correct in their analysis because they develop it is fatally flawed if for no other reason than the subject is obviously not solely the tiny number of actual devs. Furthermore the arguments even of devs needs to stand on their own feet.

Look at the prior comments where someone complains that random crashes result in the entire session going down.

Who cares what anyone says about the theoretical design decisions regarding manifestly unsuitable tools.

Re:An X11 apologist tries Wayland by customkitchen on Monday September 19, 2022 @07:37PM (#32905630)
You can make all the arguments you want but it won't do anything meaningful. If those 1000x people expressing opinions have the necessary domain expertise, and aren't just tossing out their feelings on what they think might be cool or might be nice in a perfect world, then they should start contributing to these projects and fixing the bugs.

I mean, I think it would be cool if my PC never crashed. Isn't it easy and fun to say things like that?

Re:An X11 apologist tries Wayland by michaelmrose on Saturday September 24, 2022 @03:40PM (#32965928)
PCs running either Windows 10 or Linux with appropriate quality software and hardware almost never crash now so wish virtually granted I guess.
Re:An X11 apologist tries Wayland by ongy on Monday September 19, 2022 @12:58PM (#32900904)
You are saying that as if the part of the X11 protocol that's reasonable to run over the network was the better API that application developers are simply too lazy to use.

While the reality is, that toolkits (and applications) used to use those APIs and were revamped to use the DRI APIs and general bitmap based windowing. The old APIs don't support double buffering, access to GPUs with modern APIs (both opengl[indirect sucks] and Vulkan). They don't provide modern font rendering, or any kind of graphical effect (distortions) that UI people might want to play with.

They would be significantly worse for anything displaying animations and one of the most common client libs (libx11) is serial and thus horribly latency sensitive.

The advantage of VNC isn't lossy compression. Which isn't forced by it either. But it handles networking better with bitmaps. And has improvements like acting as a screen/tmux style connectable session for graphical applications. Both VNC/RDB can also support showing the server's desktop if it has one, not just running other applications than currently open elsewhere.

The only advantage of old style X11 was that it's ubiquitous. But since it hasn't been used in ages since it doesn't work well with modern computers/UI frameworks that advantage is gone. And there's 0 reason to try and reimplement that in a new windowing protocol, when there's objectively better choices out there already. Local optimized windowing is a different beast than network capable.

Re:An X11 apologist tries Wayland by customkitchen on Monday September 19, 2022 @07:51PM (#32905757)
You might also want to note that the fantasy of being able to use the same protocol to drive the local display and also operate over a network, is long dead. It seems like a clever idea but it doesn't actually work. It ceased to be a thing entirely the moment wide area networks became popular. The local and remote cases are two completely different situations that need their own individual attention. Even when developing against X11 protocol you still have to consider this in modern times because the DRI extension is not available over the network.

Compare to a protocol like RDP which is extremely optimized for efficient and secure network operation, but is also way more complicated as a result, and it would be foolish to use it on a local display server.

Re:An X11 apologist tries Wayland by ziftface on Monday September 19, 2022 @09:20AM (#32897928)
It does just work for some workflows. I think that's really what it boils down to. It is production ready for some people, but it's clearly not for you yet. Maybe that will change.
Re:An X11 apologist tries Wayland by Amezarak on Monday September 19, 2022 @06:06AM (#32896332)
Yes, I see this come up again and again. Meanwhile, I use X11 over the network every day with Firefox, GIMP, various custom apps, and a zillion other things. And it works fine, and great, and VNC isn't an option for most of it for me.
Re:An X11 apologist tries Wayland by customkitchen on Monday September 19, 2022 @07:32PM (#32905593)
>and I'm not really interested in hearing that my own experience with it working well is a lie or some trick.

Your own experiences with it aren't a lie, but they're probably based around ignoring the last 20-30 years of advancements, and ignoring many actual statements from the X11 developers saying that it's bad for remoting.

>Wayland gives up some things

Well in the case of X11 fowarding, no it doesn't. That still works.

>Also, those of us who use non-mainstream window managers (such as Window Maker) are not interested in hearing that we should switch to some UI which doesn't support our workflow just because it's more fashionable these days.

By insisting on using these obscure, non-mainstream and under-maintained environments you are setting yourself up for an extraordinary amount of pain for very little benefit. The more time you spend avoiding the issue the harder it gets to figure out how to adapt your workflow to something else. I'm sure you understand that more deeply than anyone else here. So why keep up with the charade? It is not doing you any favors. At some point we have to let bad habits die.

Re:An X11 apologist tries Wayland by torginus on Monday September 19, 2022 @03:30AM (#32895379)
If you're not afraid of big brother, I can recommend Chrome Remote desktop. You just install a server on the shared machine, and you can access your stuff using a regular browser thanks to the wonders of WebRTC.
Re:An X11 apologist tries Wayland by j1elo on Monday September 19, 2022 @04:15AM (#32895637)
I recently had to uninstall Chrome Remote Desktop, because it was breaking my (Ubuntu) system's ability to handle some basic permissions, such as mounting USB disks.

It turns out that CRD is well known for breaking other seemingly random things, such as accessing your printer:

https://askubuntu.com/questions/1196248/automount-when-click...

Re:An X11 apologist tries Wayland by baq on Monday September 19, 2022 @03:37AM (#32895425)
> By the way, does anyone know of a VNC-like solution that can use MPEG compression?

try this: https://xpra.org/

Re:An X11 apologist tries Wayland by stuaxo on Monday September 19, 2022 @04:33AM (#32895769)
Not sure on the exact compression but I'm sure Nomachine/NX must use some video compressing n, I'm even able to watch video over it without it dying.
Re:An X11 apologist tries Wayland by aappleby on Sunday September 18, 2022 @10:52PM (#32893753)
Parsec, I think?
Re:An X11 apologist tries Wayland by satya71 on Sunday September 18, 2022 @09:31PM (#32893281)
I think TurboVNC had some extensions in that direction. But it’s been a while since I looked at it.
Re:An X11 apologist tries Wayland by mark254 on Monday September 19, 2022 @05:13AM (#32896038)
> By the way, does anyone know of a VNC-like solution that can use MPEG compression?

You want xpra.

Re:An X11 apologist tries Wayland by LtWorf on Monday September 19, 2022 @09:27AM (#32898003)
but doing ssh -X is scertainly easier than setting up vnc.
Re:An X11 apologist tries Wayland by POPOSYS on Monday September 19, 2022 @12:20AM (#32894239)
X2GO is the way to go!
Re:An X11 apologist tries Wayland by cbm-vic-20 on Monday September 19, 2022 @12:25AM (#32894268)
> my understanding is that the whole X11 is network transparent thing worked great when apps used the X11 drawing primitives.

It did. It was awesome to be able to run one of the expensive academic apps from any X terminal on campus. Network security was largely non-existent then, and you could run X apps not just across campus but across the Internet. I remember a really early web page that had a text field (for your host name) and a button that would start a particular app on their side and would display on your local X server. It wasn't very fast.

Anyway, all that died as Athena and Motif began to look dated as newer applications in the mid-90s started using more and more bitmaps.

Re:An X11 apologist tries Wayland by Rediscover on Monday September 19, 2022 @05:33AM (#32896148)
Completely off-topic, and I wish I could DM You without extra spam here, but great handle. Commodore Business Machines... Ever use a PET? Loved those things.
Re:An X11 apologist tries Wayland by moomin on Sunday September 18, 2022 @07:53PM (#32892610)
I was around back in the days that X-servers were still very much a thing, and even then many thought they were an expensive and inefficient way of doing things.

However, there were many who genuinely believed that networks would get arbitrarily faster and compute would not. Of course, the opposite happened, but in that alternative universe X’s design would have made sense.

Re:An X11 apologist tries Wayland by taeric on Sunday September 18, 2022 @10:33PM (#32893644)
This isn't quite right. Both have gotten arbitrarily faster. That some folks have gigabit fiber is proof of that. Graphics have just outpaced networking. Easily.
Re:An X11 apologist tries Wayland by cycomanic on Monday September 19, 2022 @12:51AM (#32894400)
The problem with X over the network is not bandwidth it is latency. The X11 protocol is very chatty so even very simple things will cause several roundtrips which makes X over the network so painful.
Re:An X11 apologist tries Wayland by destructionator on Monday September 19, 2022 @10:52AM (#32899148)
> The X11 protocol is very chatty so even very simple things will cause several roundtrips which makes X over the network so painful.

This simply isn't true. Some operations require roundtrips, drag and drop comes to mind, but very simple things absolutely don't. Events come one way, draw commands go the other.

Re:An X11 apologist tries Wayland by cycomanic on Monday September 19, 2022 @12:57PM (#32900898)
Well that's not what the xorg website says: https://www.x.org/wiki/Development/Documentation/Performance...

Essentially xlib is latency limited because its a synchronous protocol. Xcb can help if you redesign your applications for it, but we are talking about old applications (motif...)

Re:An X11 apologist tries Wayland by destructionator on Monday September 19, 2022 @03:25PM (#32902751)
You know xcb and xlib are just different client libraries for accessing the exact same wire protocol, right?

Moreover, notice the example they gave there is atom interning, which is a roundtrip on the wire (though you can batch them even in xlib...), and they say "most real applications will see less benefit than this" since that's the worst case - most applications do atom work at startup, not in the main use cycle, which is famously both async and buffered (it used to be a FAQ on xlib tutorials reminding people to run the event loop, and error handling is complicated a bit by it).

Re:An X11 apologist tries Wayland by taeric on Monday September 19, 2022 @12:53AM (#32894413)
Though, even there, networks are far faster than they used to be. Especially for the size is windows they used to push.
Re:An X11 apologist tries Wayland by Schroedingersat on Monday September 19, 2022 @03:26AM (#32895342)
Latency hasn't really improved. Dial up or isdn to nearby cities was 25-50ms. Same as I get with hfc or 5g. Cable was slightly better where it was available. International pings got much worse from australia in the 2010s but since improved roughly back to where they were.

Bandwidth has increased by 3 orders of magnitude though.

Re:An X11 apologist tries Wayland by icedchai on Monday September 19, 2022 @11:54AM (#32900038)
Dial up latency was never that low. ISDN, yes, but traditional dialup modems were pretty bad. The analog-to-digital conversion introduced a couple hundred milliseconds of latency.
Re:An X11 apologist tries Wayland by toast0 on Monday September 19, 2022 @06:59PM (#32905318)
I remember having latency under 100 ms within the metro area, but I could easily be misremembering, and I don't have a PPP account anymore to test. (And I'd have to visit my MIL who has a real POTS line with it's low latency)... But I did find a reference mentioning 150 ms round trips regionally, which I think was US west/east/central, so I think this 150ms is including some intercity latency as well.

https://web.archive.org/web/20160305000336/http://www.thefre...

Re:An X11 apologist tries Wayland by icedchai on Wednesday September 21, 2022 @10:45AM (#32925916)
Hmm. Wikipedia is claiming 150 ms latency on dialup: https://en.wikipedia.org/wiki/Dial-up_Internet_access

I remember higher, but it's been over 20 years now (we got broadband pretty early here), so who knows.

Re:An X11 apologist tries Wayland by Schroedingersat on Monday September 19, 2022 @03:22AM (#32895318)
Latency hasn't really improved. Dial up or isdn to nearby cities was 25-50ms. Same as I get with hfc or 5g.

Bandwidth has increased by 3 orders of magnitude though.

Re:An X11 apologist tries Wayland by hakfoo on Monday September 19, 2022 @12:19AM (#32894235)
I think one thing that sort of disappeared was the vision of thin clients everywhere. X11 is an obvious thin-client solution.

Thin client for home use seems like a winning proposition. Rather than giving the kids a Raspberry Pi 400 or garage-sale P4 when they want their own computer, you could hook up another X terminal to a large shared Ryzen box. The hardware gets more efficiently used, files can easily be shared and centrally backed up, and nobody ends up being the guy with the cast-off or otherwise inferior PC.

Re:An X11 apologist tries Wayland by moring on Monday September 19, 2022 @01:16AM (#32894531)
I think quite the opposite happened, just not on X11 level. The web browser is essentially a thin client nowadays. The fact that you have full client-side scripting is one thing that was IMHO a bit underdeveloped in classical thin-client systems because with that you can mask network latency much easier (though, admitted, I don't know a lot about how X11 handles this).
Re:An X11 apologist tries Wayland by moomin on Tuesday September 20, 2022 @07:44AM (#32910402)
Don't agree at all. The web browser is essentially a standardized computer on which to run your fat client systems like SPAs. The browser can run arbitrary computation locally.
Re:An X11 apologist tries Wayland by moomin on Tuesday September 20, 2022 @07:47AM (#32910419)
The problem being that X thin clients back then were more powerful than desktop PCs at the time. Even now they're more expensive than a Raspberry Pi, so it's more economically efficient to buy one of those.
Re:An X11 apologist tries Wayland by kaba0 on Monday September 19, 2022 @02:12AM (#32894835)
Also, network latency has a quite imminent physical limitation, the speed of light. Serial computations do also have a limit, and we are close to it with current technology, but parallel execution doesn’t really have any, and GPUs take massive advantage of that. We can continue to increase resolution /frame rate basically arbitrarily (of course with very diminishing returns after a point)
Re:An X11 apologist tries Wayland by pjmlp on Monday September 19, 2022 @02:07AM (#32894802)
There is some strange irony when watching people using quite expensive IBM X Windows thin client terminals to manage xterms, each being a different talk session.
Re:An X11 apologist tries Wayland by testermelon on Sunday September 18, 2022 @06:36PM (#32892133)
> These days a significant number of X11 apps just render _everything_ "server-side" as bitmaps and then send them over the wire to the client to composite them.

Inferring from the quotation, I take it you mean application server-side (instead of display server-side)? Just confirming.

Re:An X11 apologist tries Wayland by gunapologist99 on Monday September 19, 2022 @03:33PM (#32902847)
Exactly. If GP doesn't even know how X11 works, then the opinion probably shouldn't carry a lot of weight.

The "server" in X11 is the display that's sitting in front of you, not the application running on a remote workstation.

Re:An X11 apologist tries Wayland by retcore on Monday September 19, 2022 @05:15AM (#32896050)
>which will give much better performance on low-bandwidth connections,

Er, IRIX was pushing 12 bits and alpha channel around over X on twisted pairs c.a. 1993.

Re:An X11 apologist tries Wayland by destructionator on Monday September 19, 2022 @10:45AM (#32899034)
> since those protocols do damage detection, only sending updates of what's changed

So does X.

> and (lossy) compression.

This is legitimate though, the X protocol has no support for any kind of bitmap compression and it can sometimes be pretty painful. Though internets getting faster and faster too so it isn't necessarily a big deal especially since it does have bitmap caching and some display-side rendering capabilities, but it sure would be nice if you could send other formats on the wire.

Re:An X11 apologist tries Wayland by ciphol on Monday September 19, 2022 @04:50AM (#32895876)
Is there a user-transparent way to run Gimp over RDP/VNC, similar to "ssh -X" for X11?
Re:An X11 apologist tries Wayland by razemio on Monday September 19, 2022 @04:55AM (#32895911)
If I understand you correctly, yes. freexrdp has an option to render only a single window instead of the hole desktop. This works amazingly well and feels native. This is the trick WinApps uses.

You could either use WinApps or create your own script and add it to a desktop entry. Users can then open RDP Gimp like any other application without even noticing.

Re:An X11 apologist tries Wayland by cat_plus_plus on Sunday September 18, 2022 @11:27PM (#32893963)
Editing my photos over a layer of video compression artifacts doesn't sound fun. Web apps are a more reasonable replacement for X11, with browser client much more capable to do low latency local processing. The only problem is lack of easy support for local apps and LAN-distributed apps. Probably still easier to add than to support low input latency eventually consistant Canvas over X11 or VNC.
Re:An X11 apologist tries Wayland by kaba0 on Monday September 19, 2022 @02:14AM (#32894845)
There are lossy and lossless compression algorithms.
Re:An X11 apologist tries Wayland by ncmncm on Monday September 19, 2022 @02:16AM (#32894865)
The roles of client and server being force-swapped is another perhaps unfortunate development.
Re:An X11 apologist tries Wayland by msh on Monday September 19, 2022 @05:25AM (#32896108)
Why?

I think who should be client and who should be server is entirely context/application specific.

Sometimes I want to be able to connect to a server from any random client and continue the session.

Re:An X11 apologist tries Wayland by ncmncm on Monday September 19, 2022 @05:49AM (#32896237)
Because now you never know which is which without a separate explanation. Might just as well call them A and B.