LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-28-2024, 01:06 AM   #286
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144

Quote:
Originally Posted by Pithium View Post
But with Wayland, the official reference display server (called a "compositor") isn't seeing any major development.
It's not intended to be anything other than a basic desktop environment, providing a working implementation of a Wayland compositor ie a display server using the Wayland protocol.

It also includes a library called libweston (a Wayland compositor library) which provides an API allowing users build their own custom full-featured environments on top of
Weston's core.

Quote:
So every Desktop Environment ends up implementing their own wayland compositor.
Well of course. Wayland is a protocol. KDE and Gnome desktop environments are Wayland compositors in their own rights.

Last edited by ferrari; 04-28-2024 at 02:49 AM.
 
2 members found this post helpful.
Old 04-28-2024, 09:40 AM   #287
John Lumby
Member
 
Registered: Oct 2008
Posts: 74

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by ZhaoLin1457 View Post
Unfortunately, Wayland/Plasma5 sessions, just like Plasma6 or other sessions under a Wayland compositor, require at least OpenGL 2.0 support to function properly.
But your GMA500 graphics only support OpenGL 1.4, so your computer does not fulfill the hardware requirements for Plasma5 sessions under Wayland.
Quote:
Originally Posted by wpeckham View Post
There is no "Wayland Drivers" difference from X.ORG. Where Wayland needs a driver, they use the SAME EXACT DRIVER as X.Org.
This thread has yielded some very interesting observations. Recognizing that my own experience is with an old graphics card, and that I really don't care whether "wayland" works on it or not :
But I do care about understanding the hardware and software requirements for wayland-the-protocol and ditto for any commonly-use wayland-compositor.
And I have not been able to track down any definitive statement about either.

Here is a fact : with a very recent (31 March 2024) build of Xorg, including its xf86-video-intel driver, all graphics functions including hardware acceleration and GLX/mesa work just fine on my old graphics card.

But somehow, to me, that fact is inconsistent with the statements I've quoted that Wayland uses the very same drivers as Xorg and yet Wayland does not support this old card. To me, if some high-level piece of software uses a hardware driver which works, then the high-level piece of software should work with that hardware shouldn't it?

As I said, I couldn't care less about wayland on this computer, but I'd like to understand what dependencies it does have.

Cheers, John
 
1 members found this post helpful.
Old 04-28-2024, 11:17 AM   #288
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,531

Rep: Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371
Quote:
Originally Posted by John Lumby View Post
This thread has yielded some very interesting observations. Recognizing that my own experience is with an old graphics card, and that I really don't care whether "wayland" works on it or not :
But I do care about understanding the hardware and software requirements for wayland-the-protocol and ditto for any commonly-use wayland-compositor.
And I have not been able to track down any definitive statement about either.

Here is a fact : with a very recent (31 March 2024) build of Xorg, including its xf86-video-intel driver, all graphics functions including hardware acceleration and GLX/mesa work just fine on my old graphics card.

But somehow, to me, that fact is inconsistent with the statements I've quoted that Wayland uses the very same drivers as Xorg and yet Wayland does not support this old card. To me, if some high-level piece of software uses a hardware driver which works, then the high-level piece of software should work with that hardware shouldn't it?

As I said, I couldn't care less about wayland on this computer, but I'd like to understand what dependencies it does have.

Cheers, John
Okay, let me to try to explain why the Wayland implementations usually needs a certain minimal OpenGL support... Excuse the wall of text, BUT you asked for.

From what I have understand from the Wayland evangelists, Wayland works in the server/clients way. That's right, we have a Wayland server implemented by your DE of choice (i.e. kwin_wayland for Plasma5 or Mutter for GNOME4) and one or more Wayland clients (your graphical programs) which of course needs to connect to the server. Via a socket, BTW.

The Wayland Design itself does not talk about OpenGL, because for the Wayland server your screen is composed from one or more areas (windows), where each window is an area allocated to a program to draw its business and when it received focus, to receive the mouse or keyboard events. BUT, those screen areas (windows) may overlap, some windows may be hidden, and the Wayland server has the duty to "compose" the final screen (the desktop) presented to user, from these various windows with various states and dimensions.

Like I have said already, the The Wayland Design itself does not talk at all about OpenGL and neither require it. There are Wayland servers capable to use for this composition job just a dumb and not accelerated Linux framebuffer, or even a memory area, which is later encoded in a network stream - like a VNC or RDP connection. And as example of Wayland server which is capable to use a dumb Linux framebuffer, memory areas (for VNC or RDP connections) or even the area of a window on a X11 server, we have the Weston reference compositor.

HOWEVER, contrary to a X11 server, for a Wayland server the Wayland Design does not provide drawing tools (for points, lines or rectangles) or even a method to calculate the position, intersection or overlapping of various Wayland windows present in a Wayland screen. The Wayland server needs to allocate a memory area for window drawing for every Wayland client, to manage these memory areas and most importantly, to "compose" everything on the desktop screen - basically pixel with pixel. Yep, you can do this and the Weston (alternatively) do this, but the end result is terrible slow, even slower than a screen presented by a X11 server using the VESA driver.

BUT, there is a method which permits super-fast management of the overlapping screen areas and also for super-fast drawing of them in a final user interface screen - it's the hardware accelerated OpenGL(ES) which provides all these features for the Wayland server, if it is properly used.

So, for responsiveness reasons, any civilized Wayland server (be it the one from Plasma5, the one from GNOME4 or even Weston) will transform the screen presented to user in a full screen 3D game, where everything is drawn using extensively the OpenGL(ES) hardware accelerated APIs. However, the OpenGL(ES) usage takes a tool, by requiring a certain minimal OpenGL(ES) version, which happens to be OpenGL 2.1 - just like for the Glamor acceleration from X11.

BUT, this does NOT mean that Wayland Design itself requires OpenGL 2.1 , only that the currently major Wayland servers implementations requires it for a reasonable responsiveness. How the Wayland is about Freedom, I believe that a wise programmer can write a blazing fast Wayland server in Assembler - which Wayland server does not require OpenGL for doing its usual tasks. Or even, some wise company can make a PCI Wayland accelerator card - along with the associated Wayland server, which can be even with greater performances than the OpenGL based solutions. Just like there are PCI express cards for hardware video decoding.

That being said, the Wayland servers are usually named "Wayland compositors" because their main task is to "compose" the various screen areas which represents the windows allocated to Wayland client applications.

And NOPE, they does NOT use the same drivers like X11. Usually they use directly the KMS or dumb Linux framebuffers (or even memory areas) for drawing the screen and libinput to grab the mouse and keyboard data.

Last edited by LuckyCyborg; 04-28-2024 at 12:39 PM.
 
9 members found this post helpful.
Old 04-28-2024, 01:25 PM   #289
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Quote:
Originally Posted by LuckyCyborg View Post
And NOPE, they does NOT use the same drivers like X11. Usually they use directly the KMS or dumb Linux framebuffers (or even memory areas) for drawing the screen and libinput to grab the mouse and keyboard data.
I think the misunderstanding comes from confusing the kernel graphics drivers and the Xorg (userspace) drivers. Only the former is relevant to Wayland compositors.

Last edited by ferrari; 04-28-2024 at 02:52 PM.
 
2 members found this post helpful.
Old 04-29-2024, 08:12 AM   #290
John Lumby
Member
 
Registered: Oct 2008
Posts: 74

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by ferrari View Post
I think the misunderstanding comes from confusing the kernel graphics drivers and the Xorg (userspace) drivers. Only the former is relevant to Wayland compositors.
Thanks for pointing that out -- but my question remains the same, where, just for the purposes of considering "what does wayland depend on?", we can consider *all* of those drivers (plus a third group, the glamor/EGL/mesa libraries) to be one large bundle of low-level code in direct communication with the graphics card.
And I am still wondering why :
the Xorg server works perfectly well when using this bundle to operate my card
any attempt to run a wayland compositor with this exact same bundle does not work

Cheers, John
 
Old 04-29-2024, 12:26 PM   #291
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,679

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Originally Posted by John Lumby View Post
Thanks for pointing that out -- but my question remains the same, where, just for the purposes of considering "what does wayland depend on?", we can consider *all* of those drivers (plus a third group, the glamor/EGL/mesa libraries) to be one large bundle of low-level code in direct communication with the graphics card.
And I am still wondering why :
the Xorg server works perfectly well when using this bundle to operate my card
any attempt to run a wayland compositor with this exact same bundle does not work

Cheers, John
Using what desktop? What compositor? What are you running on TOP of X.org or Wayland?
 
Old 04-29-2024, 03:17 PM   #292
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Quote:
Originally Posted by John Lumby View Post
any attempt to run a wayland compositor with this exact same bundle does not work
There are debugging methods available to help pinpoint the underlying problem, and you'd need to share compositor and graphics hardware details to begin with. Best to start a dedicated thread requesting assistance if you're serious about getting such help.
 
Old 05-07-2024, 11:14 PM   #293
Pixxt
Member
 
Registered: May 2008
Distribution: Slackware, Debian,
Posts: 288

Rep: Reputation: 186Reputation: 186
Interesting comment from Drew Devault on GNOME being a big blocker for Wayland improvements, taken from about three years ago.

Quote:
As a Wayland developer who has had to deal with fighting GNOME tooth and nail over every standard, GNOME can eat sh*t. What else are we supposed to do but stop supporting them when they refuse to play ball with standards? They're bullies, plain and simple, and take a Microsoft-esque approach to Linux politics - except they just skip "embrace" and "extend" and just go straight to "extinguish". We've spent literal years fighting with GNOME over every standard. They don't just decline to implement standards, they actively work against the establishment of standards at all. Get fu**ed, GNOME.

By the way, you're welcome that mpv has Wayland support at all. No less than 3 times have I had to confront wm4 about removing Wayland support in general on the basis that GNOME sucks.

https://old.reddit.com/r/linux/comme...om_running_on/

https://old.reddit.com/r/linux/comme...ng_on/fxfax76/
 
Old 05-08-2024, 07:13 AM   #294
mrsam
LQ Newbie
 
Registered: Jan 2024
Distribution: Fedora, Ubuntu, Slackware
Posts: 4

Rep: Reputation: 2
Quote:
Originally Posted by Pixxt View Post
Interesting comment from Drew Devault on GNOME being a big blocker for Wayland improvements, taken from about three years ago.


(snippety)
This is rich. Look in the mirror. You'll be shocked to learn that this wouldn't be a problem with X11. The protocol-based nature of X11 allows new features and extensions added to an X server without sacrificing backwards compatibility. "Here's hardware-accelerated blending and composition, and here's how to do it, you don't feel like using it, that's ok, everyone else who wants to, can".
 
1 members found this post helpful.
Old 05-08-2024, 07:40 AM   #295
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,615
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
Quote:
Originally Posted by mrsam View Post
The protocol-based nature of X11 allows new features and extensions added to an X server without sacrificing backwards compatibility.
Curious. I thought wayland was primarily a protocol, then secondarily a library derived from this protocol, and only thirdly a server for calls using this library.
 
Old 05-08-2024, 10:47 AM   #296
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,679

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Originally Posted by mrsam View Post
This is rich. Look in the mirror. You'll be shocked to learn that this wouldn't be a problem with X11. The protocol-based nature of X11 allows new features and extensions added to an X server without sacrificing backwards compatibility. "Here's hardware-accelerated blending and composition, and here's how to do it, you don't feel like using it, that's ok, everyone else who wants to, can".
I get exactly where Drew is coming from. I abandoned GNOME LONG ago, and part of the reason was that they kept breaking the standards instead of USING the standards. I ran Windowmaker and fluxbox for a LONG time before KDE trimmed down their overhead and got small and fast enough to satisfy me. The KDE team USE the standards, as (I assume) do most other teams. X.Org is a huge mess BECAUSE it includes so many shims and special cases to adjust for those who could not or would not follow the plan. IT is a work of art, but also a nasty hot mess! We needed something trimmer, cleaner, and more pure. Wayland is as close to that as I have seen in a long while.
As for Gnome, X.Org is not going away any time soon. IF they want Wayland to be adjusted to them instead of them coding for Wayland, I am fine if they stay on X.Org until they figure this out.
Or they could spin off one of the projects and code their own display server optimized for Gnome desktops: call it X.Gnome!
 
Old 05-08-2024, 05:00 PM   #297
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
Quote:
Originally Posted by hazel View Post
Curious. I thought wayland was primarily a protocol, then secondarily a library derived from this protocol, and only thirdly a server for calls using this library.
Curious. I thought protocols were intended to be implemented by 3rd party projects, and that there will be differences in how different projects implement the protocol.

If wayland truly is a protocol, why does it matter how GNOME implements it? That is their choice. From the rant that was linked it sounds like the wayland team gets mad when people don't implement their protocol/API exactly the way they envisioned it. So one project walking up to another project, telling them what to do, then getting upset and crying on social media when nobody listens?

<sarcasm> I am shocked. What kind of monster would refuse to implement the wayland protocol EXACTLY as intended? </sarcasm>
 
Old 05-08-2024, 05:05 PM   #298
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
Quote:
Originally Posted by wpeckham View Post
...
We needed something trimmer, cleaner, and more pure. Wayland is as close to that as I have seen in a long while.
...
Hey 2008 called, it's for you... They want their talking points back.
 
Old 05-08-2024, 06:58 PM   #299
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,531

Rep: Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371
Quote:
Originally Posted by Pithium View Post
Curious. I thought protocols were intended to be implemented by 3rd party projects, and that there will be differences in how different projects implement the protocol.

If wayland truly is a protocol, why does it matter how GNOME implements it? That is their choice.
Curious is only that you cannot make the difference between a protocol (as specification, interface or method of communication) and its implementation.

Yes, does NOT matter how GNOME implements the Wayland protocols (there are many) as long they accurately implement them.

Just like does not matter how you implement a HTTP web-server (be it in C/C++, Rust or even Bash) as long it accurately implements the HTTP protocol which it has advertised, and it responds accurately to the HTTP requests issued by an web-browser.

However, apparently for you the HTTP protocol and the Apache web-server or Firefox are the same thing.

Quote:
Originally Posted by Pithium View Post
<sarcasm> I am shocked. What kind of monster would refuse to implement the wayland protocol EXACTLY as intended? </sarcasm>
You, Sir, with this "sarcasm" you won the Internet for this year, if not century.

Last edited by LuckyCyborg; 05-08-2024 at 07:25 PM.
 
1 members found this post helpful.
Old 05-08-2024, 07:16 PM   #300
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,679

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Originally Posted by Pithium View Post
Curious. I thought protocols were intended to be implemented by 3rd party projects, and that there will be differences in how different projects implement the protocol.

If wayland truly is a protocol, why does it matter how GNOME implements it? That is their choice. From the rant that was linked it sounds like the wayland team gets mad when people don't implement their protocol/API exactly the way they envisioned it. So one project walking up to another project, telling them what to do, then getting upset and crying on social media when nobody listens?

<sarcasm> I am shocked. What kind of monster would refuse to implement the Wayland protocol EXACTLY as intended? </sarcasm>
Although you may or may not realize it, you have hit upon exactly the point. The GNOME team (or SOME of them to be more precise) want the desktop team to adjust Wayland the protocol to what THEY want to code instead of Gnome coding for Wayland. In particular if it would violate their standards, why would the desktop team want to change the protocol that other WM teams have already coded to and that works just fine?

I wouldn't!
 
  


Reply

Tags
kde, xorg



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Save development time and effort with Ruby LXer Syndicated Linux News 0 04-07-2016 08:21 AM
LXer: Mutter Wayland 3.11.2 Now Syncs Keymap from X.Org to Wayland LXer Syndicated Linux News 0 12-04-2013 02:15 AM
Problem: xorg 1.7.7 on Mandriva 2010.2 / ATI X600: X11 crashing or slowing down grover Linux - Software 10 06-16-2011 01:46 AM
Future !X ? Wayland : X - what is wayland? serafean Linux - General 5 03-04-2011 11:09 AM
LXer: Is Linux Kernel Development Slowing Down? LXer Syndicated Linux News 0 12-02-2010 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration