LinuxQuestions.org
Visit Jeremy's Blog.
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 01-16-2021, 02:00 PM   #1
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
Problem with KSystemLog on Plasma(Wayland) - 64 current


From the menu, the box for authentication disappears when OK is clicked, but the GUI does not appear. Trying to open from the terminal as root results in this message:
Code:
root@slackpad1:~# ksystemlog
No protocol specified
qt.qpa.xcb: could not connect to display :1
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted
Haven't tried any other KWhatevers that require root. No problem on Plasma without Wayland.
 
Old 01-16-2021, 02:25 PM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Maybe these thread posts provide assistance:
https://www.linuxquestions.org/quest...ml#post6206168
https://www.linuxquestions.org/quest...ml#post6206891

Hope that helps!

Last edited by Chuck56; 01-16-2021 at 02:28 PM. Reason: added original post link
 
Old 01-16-2021, 03:33 PM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302

Original Poster
Blog Entries: 61

Rep: Reputation: Disabled
No, the only difference that made was to make the desktop loading slower.
Thanks, anyway.

Last edited by brianL; 01-16-2021 at 03:49 PM.
 
Old 01-16-2021, 07:05 PM   #4
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,617

Rep: Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491
Quote:
Originally Posted by brianL View Post
From the menu, the box for authentication disappears when OK is clicked, but the GUI does not appear. Trying to open from the terminal as root results in this message:
Code:
root@slackpad1:~# ksystemlog
No protocol specified
qt.qpa.xcb: could not connect to display :1
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted
Haven't tried any other KWhatevers that require root. No problem on Plasma without Wayland.
Well, because of the Nazi security on Wayland, there are no ways yet to run a program as another user on a Wayland/Plasma5 session, for example: ksystemlog as root.

However, there's a workaround, brought to us by openSUSE: to add on KWin the XAuthority support to XWayland via a patch.

You will find this patch on KWin src.rpm from there: https://download.opensuse.org/source....5-1.1.src.rpm

The name of wanted patch is: 0001-Use-Xauthority-for-Xwayland.patch

To use it you should build your own KWin package, which starts with copying the "kde" build system from -current to somewhere else and to add into a file: patch/kwin.patch
Code:
# Use Xauthority for Xwayland authorization
cat $CWD/patch/kwin/0001-Use-Xauthority-for-Xwayland.patch | patch -p1 --verbose || { touch ${SLACK_KDE_BUILD_DIR}/${PKGNAME}.failed ; continue ; }
Of course, the 0001-Use-Xauthority-for-Xwayland.patch should be put on a folder named: patch/kwin
Finally, from the base directory you execute the following command:
Code:
./kde.SlackBuild plasma:kwin
When the KWin package finishes to build, it will upgraded automatically, so all you have is to enjoy your XAuthority on Wayland, after a reboot - as you see in the attached screenshot.

PS. I know about this patch since long time - since Plasma5 was still on KTown, and I really hopped always to be added to our Plasma5 build, because it adds a very useful "missing feature" to Wayland/Plasma5.

PS2. If you wonder what bussines have KWin with the running graphical programs as another users - it have, as strange as it looks, because on the Wayland/Plasma5 this KWin is not only the windows manager but also the display server.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20210117_031841.jpg
Views:	22
Size:	245.2 KB
ID:	35291  

Last edited by LuckyCyborg; 01-16-2021 at 08:32 PM.
 
1 members found this post helpful.
Old 01-17-2021, 05:26 AM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302

Original Poster
Blog Entries: 61

Rep: Reputation: Disabled
Thanks, LuckyCyborg. What, if any, are the advantages of Wayland? I haven't noticed any differences in performance or appearance between Plasma(Wayland) and Plasma. Don't think I'll go to the trouble of patching & rebuilding KWin. It's certainly crazy security if I can't run it as an "ordinary" user OR root. WhoTF can run it?
 
Old 01-17-2021, 07:00 AM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,617

Rep: Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491
Quote:
Originally Posted by brianL View Post
Thanks, LuckyCyborg. What, if any, are the advantages of Wayland? I haven't noticed any differences in performance or appearance between Plasma(Wayland) and Plasma. Don't think I'll go to the trouble of patching & rebuilding KWin. It's certainly crazy security if I can't run it as an "ordinary" user OR root. WhoTF can run it?
Well, from what I read and understand, the X11 and/or X.org server is a mammoth stuffed with spaghetti code and having more bugs than a stray dog. In the end, the developers of this ancient technology trowed the towel, pointed that the thing is unmaintainable and they started to develop the Next Generation of Display Server for Linux: Wayland.

Also, looks like the X.org server is about to be abandoned by RedHat (which maintains it) in favor of Wayland.

First of all, I believe that we should adapt. What you heard about XFree86 in the least times? And how compatible will be a XFree86 server with the modern Linux?

Yes, XFree86 gone on the path of Dodo bird after the businesses stopped to throw money at it. This is about to happen also to Xorg and IF we will not adapt to Wayland, in few years probably we will become an ancient Linux.

What are the advantages of Wayland, after all, in my humble opinion of regular user?

They say that it is much smaller, just some core features, then the desktop environments are free to implement what features they want. For example (as it is the subject of this thread) they believe that XAuthority is not a Wayland core business, but of the Wayland compositors, which essentially are the real display servers.

So, on Plasma5 the display server is KWin, while in Gnome3 is Mutter. For those who wants lightweight solutions, there's Sway.

Every one has its own set of features, they are uber-integrated on their desktop environment, and they have the freedom to implement what features they likes.

So, in my humble opinion, the first advantage of Wayland is its versatility. Everybody have the freedom to implement their display server as they like. Be it the KDE's Plasma5 or RedHat's Gnome3, or whatever.

The second advantage of Wayland looks being the security. Every window is just stand-alone, eventually talking via the display server for information. To imagine how secure is Wayland, to note that they had to screencast the windows via an Audio/Video server - PipeWire, to get working a rather puny feature of Plasma5: the taskbar thumbnails.

BUT, there's also an big disadvantage, which you just hit: every desktop environment feature previously offered by Xorg should be eventually recreated by every interested Wayland compositor.

The Wayland has no idea how to run a graphical application as another user, like is yours KSystemLog - and IF there is a Wayland feature which permits this, it should be implemented by the Wayland compositor as it likes, via an Wayland extension.

So, the sad truth is that the KDE developers hired to develop Plasma5 does not thought that running graphical programs as another user is a useful feature to be implemented. Personally I blame them to still having wet dreams about smartphones with KDE Plasma - as if they will ever succeed where the almighty Microsoft failed.

Fortunately, we have a solution: a patch made and maintained by openSUSE.

But there are some other missing features for which we have no solution yet - even the Wayland/Gnome3 have them: the proper restoring of windows sessions and proper restoring the windows position.

And at the end of day, is not the Wayland fault, but the KDE fault.

Last edited by LuckyCyborg; 01-17-2021 at 07:08 AM.
 
2 members found this post helpful.
Old 01-17-2021, 07:11 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302

Original Poster
Blog Entries: 61

Rep: Reputation: Disabled
One thing I prefer about the non-Wayland Plasma is the inclusion of a Gamma control option in the Display and Monitor settings. Lowering it improves the rather washed-out look of Thinkpad screens (which is what I'm running current on: T410 & X200).
 
1 members found this post helpful.
Old 01-17-2021, 07:20 AM   #8
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,617

Rep: Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491
Quote:
Originally Posted by brianL View Post
One thing I prefer about the non-Wayland Plasma is the inclusion of a Gamma control option in the Display and Monitor settings. Lowering it improves the rather washed-out look of Thinkpad screens (which is what I'm running current on: T410 & X200).
That works in Wayland/Gnome3 as I tested myself on Ubuntu.

BTW, you can believe that even Sway has this particular feature on Wayland since some fraking FOUR years?

https://www.reddit.com/r/linux/comme..._adds_support/

Yet, it still have To Be Implemented on Wayland/Plasma5 ...

Last edited by LuckyCyborg; 01-17-2021 at 07:23 AM.
 
1 members found this post helpful.
Old 01-17-2021, 07:40 AM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302

Original Poster
Blog Entries: 61

Rep: Reputation: Disabled
So it's up to the KDE Plasma developers to sort it out. When I did a websearch on the problem I found loads of results - same basic problem, different applications, different distros, etc.
 
  


Reply



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
Plasma wayland on current gmgf Slackware 60 06-27-2020 06:23 AM
Does gnome-flashback session use wayland? Do all gtk3 apps use wayland? rubankumars Linux - Desktop 1 08-08-2017 04:13 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
Hotkey Event not catch if I do not open KSystemLog first (Samsung N150P) emercier Linux - Kernel 0 03-04-2011 12:44 PM
Future !X ? Wayland : X - what is wayland? serafean Linux - General 5 03-04-2011 11:09 AM

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

All times are GMT -5. The time now is 02:36 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