this post was submitted on 19 Dec 2023
394 points (97.8% liked)

Linux

47228 readers
863 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] blackdeth 35 points 8 months ago (11 children)

I am new to Linux. What's the differences between Xorg and Wayland?

[–] [email protected] 50 points 8 months ago (1 children)

Both are display servers which is software that allows programs to write to the screen. X is older and was created back in 1984 at MIT and Wayland is a much newer protocol that is designed to work better on newer (post 90's) hardware.

The biggest difference is that Wayland basicly allows your desktop direct access to the screen and X has a server that runs and allows your desktop to connect to it. X was originally designed to run remotely as back in the day there was one big commuter that many people connected to.

If this is all very confusing you probably should just stick to your distros defaults. Most of the time you don't need to care.

[–] Rustmilian 25 points 8 months ago* (last edited 8 months ago) (1 children)

Wayland is a communication protocol that specifies the communication between a display server and its clients, designed to be a replacement for the X11 window system protocol and architecture.
I might be a little nitpicky here, but I feel it's an important distinction to make as there is no single common Wayland server like Xorg is for X11.
A display server using the Wayland protocol is called a Wayland compositor, as it additionally performs the task of a compositing window manager.
Xorg on the other hand is basically one fat display server designed like a house of cards that everyone uses.

[–] [email protected] 5 points 8 months ago

That's a good way to put it, thank you

[–] [email protected] 22 points 8 months ago

From a user perspective, Wayland is smoother and looks nicer.

[–] [email protected] 20 points 8 months ago* (last edited 8 months ago) (2 children)

xorg is a old implementation of x11, which is basically abandon-ware right now. No one is adding feature to it, testing it, or fixing security vulnerabilities. It also lack some common-sense security feature: for example every program can get every input (keyboard and cursor location) without root, so a key logger is trivial to implement in xorg.

Wayland is newer, with more features (reasonable multi-monitor support, one-to-one gestures, etc). But many application framework and hardware have poor support for it, because it is slightly newer (developed on 2008, so not that new any more). Notably, electron and nvidia are typically the worst offender, like everything on linux, but both has come a long way.

I have wayland on my laptop, since one-to-one gesture is a must for me, and I present quite often using that laptop. My desktop is on xorg, since I have a nvidia GPU and use quite a lot of electron app.

[–] avapa 6 points 8 months ago* (last edited 8 months ago)

AMD GPU + KDE Plasma with Wayland finally gets me close enough to the smoothness of Windows, especially the per-display settings for fractional scaling and high refresh rate were sorely lacking on Linux. It’s not perfect yet (and neither is Windows’ implementation) but it improved the Linux desktop experience a ton!

[–] elbarto777 6 points 8 months ago (1 children)

What's are one-to-one gestures?

[–] [email protected] 3 points 8 months ago (1 children)

It's like scrolling on your phone, where the content on your screen follows exactly your fingers movements. On Wayland you can do the same with a trackpad, like for example when scrolling, switching workspaces or invoking the activities overview. It feels much nicer, more immediate and more natural than on X.org, where gestures are just triggering a shortcut after a set distance.

[–] [email protected] 3 points 8 months ago* (last edited 8 months ago)

I would add, even my last Windows machine surface laptop 2 with latest windows 11 don't have this feature. it is so awkward, I just stopped using gesture all together.

So it is pretty great linux has that.

[–] [email protected] 9 points 8 months ago

Desktop Linux is in its never-ending process of replacing old displaying system with new one. The process is long and not really transparent, because the two displaying systems were designed in completely different times for different hardware and with different security concerns in mind, therefore the X11 clients (all the software that was ever made or ported to Linux) are very much incompatible with Wayland. For backwards compatibility there’s Xwayland, which provides full blown Xorg server running on top of Wayland compositor with all the things X11 app requires. Until now, Firefox, even though had its Wayland backend as WIP feature (possible to activate with environment variable MOZ_ENABLE_WAYLAND=1) it defaulted to Xwayland on Wayland sessions. It now uses native Wayland backend by default providing better efficiency, DPI scaling, touchpad gestures etc

[–] [email protected] 5 points 8 months ago

I'm not an erudite so feel free to correct me c:

Wayland is a new implementation on how your system draws windows and components in your computer (I'm not sure if it's responsible for the content) and it tries a different way to do it compared with xorg.

Xorg is the old implementation, and it has been patched to support most of the new features, and Wayland is trying to get the same features xorg has and some extras.

As a Linux user I have noted that sharing screen is more private in Wayland, also I think multi monitor refresh rate was a problem in xorg. One common issue with Wayland is the GPU compatibility, as far as I know Wayland runs better in AMD GPU I think is because of Mesa integration.

[–] [email protected] 4 points 8 months ago

I'm not an expert on the matter so have a Wikipedia link.

[–] blackdeth 3 points 8 months ago (1 children)

Thanks for all the responses. All of them have been so helpful. What I'm getting is that at this moment Wayland can be seen as a successor to Xorg?

[–] [email protected] 3 points 8 months ago* (last edited 8 months ago)

Yes, exactly, I think it is pretty clear that the linux community is moving towards wayland. Most distro and desktop environment are all in the process of slowly removing xorg.

[–] [email protected] 2 points 8 months ago

I wouldn't worry about it too much; there's not really anything you need to do as a user anyway.

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago)

[This comment has been deleted by an automated system]

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago)

Xorg = Massive screen tearing

Wayland = No screen tearing

Xorg = Nvidia friendly

Wayland = Fuck you nvidia!