LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-18-2024, 11:55 AM   #271
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,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697

Wayland is easier to write for than X.ORg, but it does need a lot of documentation effort to make that clear. Also, Wayland is still improving, which means changing. For compositor development that is mostly not an issue, but once in a while....
 
Old 04-22-2024, 03:37 PM   #272
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,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
I was doing some testing and wanted to fire up fluxbox today, and I thoughtlessly did that the same way I would back when I was using XFree86: fire up Xnest and run a new X session within my current one. Only after testing did I realize I had started and ended in WAYLAND! I had run an X session under a Wayland session and it all just worked! I mean HOLY COW!

IF I was worried at all before, I am not now. The desktop guys got this, and are getting it right!
 
Old 04-23-2024, 09:08 AM   #273
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Rep: Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323
Quote:
Originally Posted by wpeckham View Post
I was doing some testing and wanted to fire up fluxbox today, and I thoughtlessly did that the same way I would back when I was using XFree86: fire up Xnest and run a new X session within my current one. Only after testing did I realize I had started and ended in WAYLAND! I had run an X session under a Wayland session and it all just worked! I mean HOLY COW!

IF I was worried at all before, I am not now. The desktop guys got this, and are getting it right!
I did similar with mate, and it all worked. XFCE is on 4.18 right now. They're going to Wayland on 4.20, but will retain compatibility (after some discussion).

Is changing over as simple as changing the /usr/bin/X symlink to wayland?
 
Old 04-23-2024, 10:05 AM   #274
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,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by business_kid View Post
I did similar with mate, and it all worked. XFCE is on 4.18 right now. They're going to Wayland on 4.20, but will retain compatibility (after some discussion).

Is changing over as simple as changing the /usr/bin/X symlink to wayland?
I am not using SLACK or anything slackware like for my testing.
Running Manjaro Plasma I use a logon manager that has room for me to enter my name and password, and a radio button that selects the desktop (I started with Plasma and added Fluxbox). When I installed all of the Wayland packages it changed the prompts to PLASMA (X.ORG), FLUXBOX (X.ORG), PLASMA (WAYLAND) allowing me to select the one I want at login.

I specifically wanted something that allowed that choice because I did not TRUST Wayland. I was right, it was several updates later before it got so solid I could use it for my daily work,

What we need is someone running slackware daily who has converted to Wayland or can select Wayland or X.Org at login so they can tell you how to get there.

Note: Manjaro runs, like ARCH, pretty cutting edge versions of things. Slackware is more conservative. Better if we find someone who is running VERY recent versions so their experience is predictive in setting your expectations.
 
Old 04-23-2024, 11:34 AM   #275
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Rep: Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323
In Slackware, wayland & plasma(=kde) are linked. People are used to me moaning at kde
stuck-in-kde-me-of-all-people-4175736285/
 
Old 04-23-2024, 05:03 PM   #276
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,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by business_kid View Post
In Slackware, wayland & plasma(=kde) are linked. People are used to me moaning at kde
stuck-in-kde-me-of-all-people-4175736285/
Hmmm. Then do you have an extra platform where you can do an new install for testing and playing?
I have one I could lend you, if we lived close enough together. Alas, we live FAR apart!
 
Old 04-24-2024, 04:00 AM   #277
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Rep: Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323
I have a laptop which I retired. It's running Slackware-Current from the end of last year. I also have disk slices with Devuan and the Windows I was burdened with in buying this pc. I figured someone might want it someday. I have some techno-phobic friends & acquaintances.

All window managers seem to be readying themselves for wayland. Mate, for instance can handle wayland with everything except Mate-desktop. Slackware has wayland in KDE - everything else uses Xorg. They offer KDE & XFCE. XFCE will be wayland compatible soon, but I'm sure they won't drop Xorg.
 
Old 04-24-2024, 11:11 AM   #278
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,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by business_kid View Post
I have a laptop which I retired. It's running Slackware-Current from the end of last year. I also have disk slices with Devuan and the Windows I was burdened with in buying this pc. I figured someone might want it someday. I have some techno-phobic friends & acquaintances.

All window managers seem to be readying themselves for wayland. Mate, for instance can handle wayland with everything except Mate-desktop. Slackware has wayland in KDE - everything else uses Xorg. They offer KDE & XFCE. XFCE will be wayland compatible soon, but I'm sure they won't drop Xorg.
Wayland (latest code) deals with NVIDIA better. IT also solves the issue of the compositor corrupting the display, sometimes freezing X.org or making it unusable until a refresh. Coding for Wayland is far easier to do correctly than coding for X.Org. If those things are not important for you then there is no reason to jump on Wayland if your preferred desktop is not ready.

I would expect that it will not take the XFCE very long to do the conversion, those are nice guys and they have good help. It is perfectly reasonable to wait for that.
If you have an extra drive you can swap into that spare laptop and load with Slackware, Wayland (WITH XWayland mind), and Plasma I think you will find it interesting. If not, there is no rush unless you love to experiment (as I do). They will both be around when your favorite desktop is ready.
 
Old 04-25-2024, 08:27 AM   #279
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Rep: Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323
Thanks. I'll go to Wayland when it's easy. Maybe a year's time? I did have one Nvidia card in a 32bit box, and rebuilding the drivers every time I changed kernel was a real PITA. I didn't like the fact that they had no respect for Open Source at all. It would cost them very little to throw the guys doing nouveau a few commits, or a few headers. Instead, they treated them like enemies or competitors.

For the laptop, I foolishly accepted an Intel HD4000 IGPU, but got a 17.3" screen, which was important at the time. Doing the sums, it was 5W of GPU . AMD was at their nadir(2012), with uncompetitive and overpriced CPUS and still sucky GPUs on massive fabrication - 40nm or something. I was reluctantly driven to Intel. Now I'm on AMD all round again. So Nvidia doesn't worry me.
 
Old 04-25-2024, 07:42 PM   #280
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 317

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
All window managers seem to be readying themselves for wayland.
You seem to be missing a qualifier before window managers, e.g mainstream or actively maintained. Window managers with no apparent movement towards wayland: stumpwm, twm, fvwm and I suppose a great many others.

Perhaps of help to people porting (rewriting really, right?) their own wm efforts is this online book by Drew DeVault, author of sway: https://wayland-book.com/

I also discovered (maybe others all know this) that libegl can be best thought of as an opengl library that doesn't require Xorg. I don't know why I puzzled so over what this dependency is but it seemed not so mysterious to me reading it put this way here: https://github.com/malcolmstill/cl-egl

So how does it work? The compositor (and clients?) call opengl routines to render raster buffers that it combines and sends down to the DRI kernel drivers?

Once I'm done re-reading Oliver Jones's Introduction to the X Window System and have tweaked my twm fork in more satisfying ways I'll have to start reading Drew's wayland book. Maybe he'll have finished it by then and maybe wayland will be closer to ready.
 
2 members found this post helpful.
Old Today, 05:47 AM   #281
gattocarlo
Member
 
Registered: Jan 2020
Posts: 63

Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
Wayland is easier to write for than X.ORg, but it does need a lot of documentation effort to make that clear. Also, Wayland is still improving, which means changing. For compositor development that is mostly not an issue, but once in a while....
You might be right on the first point you made, and you definitely are on the second. Still, by looking at the number of dead projects floating around I seriously doubt that writing a WL compositor is easier than writing a Xorg WM: this about Way Cooler[1]; read what the wlstem developer wrote[2]; wltrunk seems to be dead[3]; waymonad definitely is.

I've spent the last weekend trying to write some code, using the wlhs haskell binding, with absolutely no results.

This is what the main developer writes about the wlhs haskell bindings: "I’m surely tempted to write the relevant C code and include it directly in the low-level bindings, because otherwise it looks like they’re completely unusable."

It doesn't look like, it is. Even though they have been spending more than three months, still the code is unusable, and I doubt it will be in the near future.

Anyway Sunday evening I gave up: I closed all my browsers tabs with all the documentation I could find, closed by emacs buffers and, in despair, I started googling "Why writing a Wayland compositor is so difficult?"

And than an epiphany... I found many references to a project I never heard about before...

Quote:
Originally Posted by Jan K. View Post
Arcan! We will always have Arcan! https://www.phoronix.com/news/Arcan-0.6.3-Released
Yes, I found Arcan. I immediately installed it (there is even a sbopkg build script) along with durden and... I was blown away...

So Monday I decided to start writing the Haskell bindings to its shared memory interface and in a couple of days I was able to code a client for it. I also started sharing my code...[5]

Arcan comes with a Wayland (and Xwayland) bridge (which is supposed to be crash resilient [6], something really useful judging from my experience of running kwin_wayland in qemu), the API is very well documented and writing code (Lua or C -- and hence Haskell) for it really straightforward.

So, yes, there are alternatives and I do not despair I will be able to code my way into this brave new world. Still I think that decisions on crucial digital infrastructures are political in nature: we are build the space into which we are living an increasing amount of our social experiences. I'm not suggesting that this is done on purpose, but it is a matter of fact that only big organizations will be able to produce usable desktop environments, something we have already seen with web browsers, and this is not going to be without consequences. The whole FOSS stuff was meant as a liberating tool for ordinary people. My impression, instead, is that we are moving towards monopolies of digital assets. Maybe this is inevitable, but the possibility of reading the code you are using -- who reads code apart from some lunatics like me? -- doesn't have anything to do with freedom.

sorry for such a long rant...

--- notes
[1] Way Cooler Postmortem
http://way-cooler.org/blog/2020/01/0...st-mortem.html

[2] wlstem
https://www.reddit.com/r/linux/comme...h_harder_than/

[3]wltrunk
https://git.sr.ht/~bl4ckb0ne/wltrunk

[4] https://discourse.haskell.org/t/hask...ndings/8426/55

[5] https://codeberg.org/andrea_rossato/hs-arcan-shmif

[6] https://arcan-fe.com/2017/12/24/cras...d-compositing/
 
1 members found this post helpful.
Old Today, 05:47 AM   #282
gattocarlo
Member
 
Registered: Jan 2020
Posts: 63

Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
Wayland is easier to write for than X.ORg, but it does need a lot of documentation effort to make that clear. Also, Wayland is still improving, which means changing. For compositor development that is mostly not an issue, but once in a while....
You might be right on the first point you made, and you definitely are on the second. Still, by looking at the number of dead projects floating around I seriously doubt that writing a WL compositor is easier than writing a Xorg WM: this about Way Cooler[1]; read what the wlstem developer wrote[2]; wltrunk seems to be dead[3]; waymonad definitely is.

I've spent the last weekend trying to write some code, using the wlhs haskell binding, with absolutely no results.

This is what the main developer writes about the wlhs haskell bindings: "I’m surely tempted to write the relevant C code and include it directly in the low-level bindings, because otherwise it looks like they’re completely unusable."

It doesn't look like, it is. Even though they have been spending more than three months, still the code is unusable, and I doubt it will be in the near future.

Anyway Sunday evening I gave up: I closed all my browsers tabs with all the documentation I could find, closed by emacs buffers and, in despair, I started googling "Why writing a Wayland compositor is so difficult?"

And than an epiphany... I found many references to a project I never heard about before...

Quote:
Originally Posted by Jan K. View Post
Arcan! We will always have Arcan! https://www.phoronix.com/news/Arcan-0.6.3-Released
Yes, I found Arcan. I immediately installed it (there is even a sbopkg build script) along with durden and... I was blown away...

So Monday I decided to start writing the Haskell bindings to its shared memory interface and in a couple of days I was able to code a client for it. I also started sharing my code...[5]

Arcan comes with a Wayland (and Xwayland) bridge (which is supposed to be crash resilient [6], something really useful judging from my experience of running kwin_wayland in qemu), the API is very well documented and writing code (Lua or C -- and hence Haskell) for it really straightforward.

So, yes, there are alternatives and I do not despair I will be able to code my way into this brave new world. Still I think that decisions on crucial digital infrastructures are political in nature: we are build the space into which we are living an increasing amount of our social experiences. I'm not suggesting that this is done on purpose, but it is a matter of fact that only big organizations will be able to produce usable desktop environments, something we have already seen with web browsers, and this is not going to be without consequences. The whole FOSS stuff was meant as a liberating tool for ordinary people. My impression, instead, is that we are moving towards monopolies of digital assets. Maybe this is inevitable, but the possibility of reading the code you are using -- who reads code apart from some lunatics like me? -- doesn't have anything to do with freedom.

sorry for such a long rant...

--- notes
[1] Way Cooler Postmortem
http://way-cooler.org/blog/2020/01/0...st-mortem.html

[2] wlstem
https://www.reddit.com/r/linux/comme...h_harder_than/

[3]wltrunk
https://git.sr.ht/~bl4ckb0ne/wltrunk

[4] https://discourse.haskell.org/t/hask...ndings/8426/55

[5] https://codeberg.org/andrea_rossato/hs-arcan-shmif

[6] https://arcan-fe.com/2017/12/24/cras...d-compositing/
 
1 members found this post helpful.
Old Today, 09:35 AM   #283
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Rep: Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323Reputation: 2323
I heard a lot of similar negative stuff about rust when devs started using that.

But recently enough, google surveys revealed that their rust devs were twice as productive as their C/C++ devs. I'm don't code, but had to do an Assembler program as part of a hardware project. The guys I tried to farm it out to ran away . So I went through the learning curve had a headache for a month, and wrote and tested the thing really in 2 weeks of part-time work. A subsequent test program went together inside an hour. Wayland might be a tough learning curve due to poor docs. Ever read the pppd info page? Or if you really want suffering read the pppd HOWTO.

What I'd also like to know is: what is the relationship (if any) between plasma & wayland?

Last edited by business_kid; Today at 09:40 AM.
 
  


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 02:18 PM.

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