KDE 6 + Wayland : it works or not ?

Mario Marietto marietto2008 at gmail.com
Tue Jul 23 15:29:58 BST 2024


Hello to everyone.

I’m trying to run KDE 6 + Wayland on FreeBSD 14.1.

Using the parameters below :

#!/bin/sh

#export QT_DEBUG_PLUGINS=1
#export WAYLAND_DEBUG=1

export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_RUNTIME_DIR=/var/run/user/"$(id -u)"
export QT_WAYLAND_SHELL_INTEGRATION=xdg-shell
export XDG_SESSION_TYPE=xdg-shell
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_QPA_PLATFORM=minimal
export WLR_NO_HARDWARE_CURSORS=1
export LIBSEAT_BACKEND=consolekit2

ck-launch-session dbus-run-session startplasma-wayland 2> startplasma.log

I get this output :

org.kde.startup: not a reply org.freedesktop.locale1
QDBusMessage(type=Error, service="", error
name="org.freedesktop.DBus.Error.ServiceUnknown", error message="The
name org.freedesktop.locale1 was not provided by any .service files",
signature="s", contents=("The name org.freedesktop.locale1 was not
provided by any .service files") )
dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service
name='org.kde.KSplash' requested by ':1.0' (uid=1001 pid=1024 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated
service 'org.kde.KSplash'
Initializing  "/usr/local/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fonts.so"

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service
name='org.freedesktop.portal.Desktop' requested by ':1.5' (uid=1001
pid=1029 comm="")

kf.kirigami.platform: Failed to find a Kirigami platform plugin for style ""

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service
name='org.freedesktop.portal.Documents' requested by ':1.6' (uid=1001
pid=1037 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service
name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.7'
(uid=1001 pid=1039 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated
service 'org.freedesktop.impl.portal.PermissionStore'

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated
service 'org.freedesktop.portal.Documents'

fuse: unknown option(s): `-o auto_unmount'
error: fuse init failed: Can't create fuse session

(/usr/local/libexec/xdg-desktop-portal:1037):
xdg-desktop-portal-WARNING **: 15:03:41.378: Failed to load
RealtimeKit property:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.RealtimeKit1 was not provided by any .service files

(/usr/local/libexec/xdg-desktop-portal:1037):
xdg-desktop-portal-WARNING **: 15:03:41.378: Failed to load
RealtimeKit property:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.RealtimeKit1 was not provided by any .service files

(/usr/local/libexec/xdg-desktop-portal:1037):
xdg-desktop-portal-WARNING **: 15:03:41.379: Failed to load
RealtimeKit property:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.RealtimeKit1 was not provided by any .service files

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service
name='org.freedesktop.impl.portal.desktop.kde' requested by ':1.6'
(uid=1001 pid=1037 comm="")

No backend specified, automatically choosing drm

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated
service 'org.freedesktop.impl.portal.desktop.kde'

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service
name='org.gtk.vfs.Daemon' requested by ':1.6' (uid=1001 pid=1037
comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated
service 'org.gtk.vfs.Daemon'

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service
name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.6' (uid=1001
pid=1037 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated
service 'org.gtk.vfs.UDisks2VolumeMonitor'

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service
name='org.gtk.vfs.MTPVolumeMonitor' requested by ':1.6' (uid=1001
pid=1037 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated
service 'org.gtk.vfs.MTPVolumeMonitor'

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service
name='org.gtk.vfs.GPhoto2VolumeMonitor' requested by ':1.6' (uid=1001
pid=1037 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated
service 'org.gtk.vfs.GPhoto2VolumeMonitor'

(/usr/local/libexec/xdg-desktop-portal:1037):
xdg-desktop-portal-WARNING **: 15:03:41.496: Failed connect to
PipeWire: Couldn't connect to PipeWire

(/usr/local/libexec/xdg-desktop-portal:1037):
xdg-desktop-portal-WARNING **: 15:03:41.501: Choosing kwallet.portal
for org.freedesktop.impl.portal.Secret via the deprecated UseIn key

(/usr/local/libexec/xdg-desktop-portal:1037):
xdg-desktop-portal-WARNING **: 15:03:41.501: The preferred method to
match portal implementations to desktop environments is to use the
portals.conf(5) configuration file

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated
service 'org.freedesktop.portal.Desktop'

Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context

No backend specified, automatically choosing drm

Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
org.kde.startup: "kdeinit5_shutdown" QList() exited with code 255
Initializing  "/usr/local/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_style.so"
startplasma-wayland: Shutting down...
startplasmacompositor: Shutting down...
startplasmacompositor: Done.

A connection to the bus can't be made

/usr/local/bin/xrdb: Connection refused
/usr/local/bin/xrdb: Can't open display ':0'
/usr/local/bin/xsetroot:  unable to open display ':0'

Initializing  "/usr/local/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_mouse.so"
kcm_mouse: Not able to select appropriate backend.

Maybe they can be fixed using the proper parameters. Can someone help me ?
thanks.


On /etc/rc.conf I have added : dbus_enable="YES" and DBUS is running.

Infact keeping intact all those parameters and changing only this line :

ck-launch-session dbus-run-session startplasma-wayland


with this :

ck-launch-session dbus-run-session wayfire


wayland + wayfire start like a charme. So,Wayland is ready to go. Logic
wants that the problems that we see are related to X11 and / or KDE6


On Mon, Jul 22, 2024 at 7:17 PM Mario Marietto <marietto2008 at gmail.com>
wrote:

> Hello.
>
> I've fixed the compilation error. Now I would like to fix the error inside
> your script. I've added tmpfs,but I get it anyway.
>
> [image: Istantanea_2024-07-22_19-16-07.png]
> [image: Istantanea_2024-07-22_19-16-41.png]
>
> On Mon, Jul 22, 2024 at 5:36 PM Mario Marietto <marietto2008 at gmail.com>
> wrote:
>
>> I'm not sure if poudriere will fix that bug (that I saw every time I have
>> restarted the compilation using an earlier version of the vm). I suspect
>> that learning poudriere can't help me and it is a waste of time.
>>
>> On Mon, Jul 22, 2024 at 3:16 PM Tobias C. Berner <tcberner at gmail.com>
>> wrote:
>>
>>> It builds for both wayland and x11.
>>>
>>> Mfg Tobias
>>>
>>> ---------- Forwarded message ---------
>>> Von: Mario Marietto <marietto2008 at gmail.com>
>>> Date: Mo., 22. Juli 2024, 14:53
>>> Subject: Re: KDE 6 + Wayland : it works or not ?
>>> To: Tobias C. Berner <tcberner at gmail.com>
>>> Cc: <kde-freebsd at kde.org>
>>>
>>>
>>> ---> It's x11/kde (
>>> https://github.com/freebsd/freebsd-ports-kde/tree/kde-it_goes_to_6/x11/kde6
>>> <https://github.com/freebsd/freebsd-ports-kde/tree/kde-it_goes_to_6/x11/kde>
>>>
>>> I suspect that x11/kde6 will compile kde6 for x11,not for wayland. Are
>>> you sure that it includes the necessary wayland packages ? I want to run
>>> kde 6 on wayland,not on x11.
>>>
>>> On Mon, Jul 22, 2024 at 2:24 PM Tobias C. Berner <tcberner at gmail.com>
>>> wrote:
>>>
>>>> Moin moin
>>>>
>>>> Please use poudriere. I will not look into other compilation failures.
>>>>
>>>> mfg Tobias
>>>>
>>>> On Mon, 22 Jul 2024 at 14:17, Mario Marietto <marietto2008 at gmail.com>
>>>> wrote:
>>>>
>>>>> [image: Istantanea_2024-07-22_14-16-04.png]
>>>>>
>>>>> On Mon, Jul 22, 2024 at 2:11 PM Tobias C. Berner <tcberner at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Moin moin
>>>>>>
>>>>>> The issue is that the kf5-packages you have installed come from main
>>>>>> and not from the new ports tree.
>>>>>> You can pkg-delete them first, and then have them reinstalled from
>>>>>> the new ports tree. There they are
>>>>>> configured to be co-installable with the kf6-variants.
>>>>>>
>>>>>>
>>>>>> Here's a good start to using poudriere:
>>>>>> https://docs.freebsd.org/en/books/handbook/ports/#ports-poudriere
>>>>>>
>>>>>>
>>>>>> mfg Tobias
>>>>>>
>>>>>> On Mon, 22 Jul 2024 at 14:07, Mario Marietto <marietto2008 at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> ----> or cd into it and run make...
>>>>>>>
>>>>>>> that's wrong :
>>>>>>>
>>>>>>> [image: Istantanea_2024-07-22_14-05-17.png]
>>>>>>>
>>>>>>> /never used poudriere/ ; I don't know how to use it.
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jul 22, 2024 at 1:44 PM Mario Marietto <
>>>>>>> marietto2008 at gmail.com> wrote:
>>>>>>>
>>>>>>>> What's the kde 6 meta port that I should make as the first one ?
>>>>>>>> I've compiled the plasma6-plasma port,but when it finished,it didn't start
>>>>>>>> the compilation of the dependencies. I can't compile any port.
>>>>>>>>
>>>>>>>> On Mon, Jul 22, 2024 at 11:34 AM Tobias C. Berner <
>>>>>>>> tcberner at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Moin omin
>>>>>>>>>
>>>>>>>>> Add it as a poudriere ports tree and build the package..., or cd
>>>>>>>>> into it and run make...
>>>>>>>>>
>>>>>>>>> As to your error with my script, well, I assume you don't have a
>>>>>>>>> /memory - tmpfs :)
>>>>>>>>>  always read and adapt scripts to your situation, don't blindly
>>>>>>>>> run them...
>>>>>>>>>
>>>>>>>>> mfg Tobias
>>>>>>>>>
>>>>>>>>> On Mon, 22 Jul 2024 at 09:40, Mario Marietto <
>>>>>>>>> marietto2008 at gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hello.
>>>>>>>>>>
>>>>>>>>>> I've downloaded the ports tree. What should I do now ? How can I
>>>>>>>>>> install kde 6 starting from the ports tree that you gave to me ?
>>>>>>>>>>
>>>>>>>>>> On Sun, Jul 21, 2024 at 8:38 PM Tobias C. Berner <
>>>>>>>>>> tcberner at gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Moin moin
>>>>>>>>>>>
>>>>>>>>>>> No I'm not contradicting myself, it was probably just not
>>>>>>>>>>> clearly stated... :) -- as I said, they conflict, as they install the same
>>>>>>>>>>> desktop in different versions...
>>>>>>>>>>> So, don't install plasma5 if you want to use plasma6 -- the only
>>>>>>>>>>> port that might be needed of plasma5-plasma-integration.
>>>>>>>>>>> If you want to try to use plasma6 and try to get wayland up,
>>>>>>>>>>> make sure to remove plasma5* and just install the plasma6-plasma
>>>>>>>>>>> package.
>>>>>>>>>>>
>>>>>>>>>>> I really recommend to use this tree instead of main:
>>>>>>>>>>>
>>>>>>>>>>> https://github.com/freebsd/freebsd-ports-kde/tree/kde-it_goes_to_6
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> You can then create a shell-script ala
>>>>>>>>>>>
>>>>>>>>>>> ###
>>>>>>>>>>> #!/bin/sh
>>>>>>>>>>> export QT_DEBUG_PLUGINS=1
>>>>>>>>>>> # export QT_WAYLAND_SHELL_INTEGRATION=xdg-shell
>>>>>>>>>>> export WAYLAND_DEBUG=1
>>>>>>>>>>> # export XDG_SESSION_TYPE=wayland
>>>>>>>>>>>
>>>>>>>>>>> ck-launch-session dbus-run-session truss
>>>>>>>>>>> /usr/local/bin/startplasma-wayland >& /memory/startplasma.log
>>>>>>>>>>> ####
>>>>>>>>>>>
>>>>>>>>>>> to try to run plasma... you likely get an output like
>>>>>>>>>>>
>>>>>>>>>>> ###
>>>>>>>>>>>
>>>>>>>>>>> [...]
>>>>>>>>>>> qt.core.library: "/usr/local/lib/qt6/plugins/platforms/libqwayland-generic.so" loaded library
>>>>>>>>>>> Failed to create wl_display (No such file or directory)
>>>>>>>>>>> qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
>>>>>>>>>>> qt.core.library: "/usr/local/lib/qt6/plugins/platforms/libqxcb.so" loaded library
>>>>>>>>>>> qt.qpa.xcb: could not connect to display :0
>>>>>>>>>>> qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
>>>>>>>>>>> [...]
>>>>>>>>>>>
>>>>>>>>>>> ###
>>>>>>>>>>> before it fails :/
>>>>>>>>>>>
>>>>>>>>>>> mfg Tobias
>>>>>>>>>>>
>>>>>>>>>>> On Sun, 21 Jul 2024 at 14:05, Mario Marietto <
>>>>>>>>>>> marietto2008 at gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> ---> You should not install any plasma5 components that are not
>>>>>>>>>>>> pulled in by plasma6 -- they conflict, as they are both the KDE Desktop...
>>>>>>>>>>>> and therefore share files and services :) -- so stick to one version.
>>>>>>>>>>>>
>>>>>>>>>>>> We can't stick to one version if plasma5 and plasma6 components
>>>>>>>>>>>> conflict. You are contradicting yourself.
>>>>>>>>>>>>
>>>>>>>>>>>> If there are no conflicts, the output by :
>>>>>>>>>>>>
>>>>>>>>>>>> diff -u -p -N /usr/ports/x11-wm/plasma5-kwin/pkg-plist
>>>>>>>>>>>> /usr/ports/x11-wm/plasma6-kwin/pkg-plist
>>>>>>>>>>>>
>>>>>>>>>>>> should not have lines started with a single space. Single space
>>>>>>>>>>>> of unified diffs on top of lines means it's common with 2 files compared.
>>>>>>>>>>>>
>>>>>>>>>>>> There are many common lines such as:
>>>>>>>>>>>>
>>>>>>>>>>>> @@ -1,49 +1,275 @@ bin/kwin_x11
>>>>>>>>>>>> bin/kwin_wayland
>>>>>>>>>>>> bin/kwin_wayland_wrapper
>>>>>>>>>>>> bin/kwin_x11
>>>>>>>>>>>> -include/kwin_export.h
>>>>>>>>>>>> -include/kwinanimationeffect.h
>>>>>>>>>>>>
>>>>>>>>>>>> The "-" at the top of lines means it appears on the first file
>>>>>>>>>>>> but not on the second.
>>>>>>>>>>>>
>>>>>>>>>>>> Edit: Quote functionality does not do its work as intended. [image:
>>>>>>>>>>>> :(]There should be a single space before bin/kwin_wayland,
>>>>>>>>>>>> bin/kwin_wayland_wrapper and bin/kwin_x11 in the quoted
>>>>>>>>>>>> example above.
>>>>>>>>>>>>
>>>>>>>>>>>> On Sat, Jul 20, 2024 at 11:10 PM Mario Marietto <
>>>>>>>>>>>> marietto2008 at gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Can you write a small tutorial for us ? I've been working on
>>>>>>>>>>>>> this for months.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Sat, Jul 20, 2024 at 10:56 PM Tobias C. Berner <
>>>>>>>>>>>>> tcberner at gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Moin moin
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> You should not install any plasma5 components that are not
>>>>>>>>>>>>>> pulled in
>>>>>>>>>>>>>> by plasma6 -- they conflict, as they are both the KDE
>>>>>>>>>>>>>> Desktop... and
>>>>>>>>>>>>>> therefore share files and services :) -- so stick to one
>>>>>>>>>>>>>> version.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I have not yet got the plasma6-wayland session working on my
>>>>>>>>>>>>>> end
>>>>>>>>>>>>>> though -- I can start the plasma-desktop inside a running
>>>>>>>>>>>>>> wayland
>>>>>>>>>>>>>> compositor, but I cannot bring up kwin as compositor.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> mfg Tobias
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Sat, 20 Jul 2024 at 22:36, Mario Marietto <
>>>>>>>>>>>>>> marietto2008 at gmail.com> wrote:
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> > Hello.
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> > Here at forums.freebsd.org we are trying to install KDE 6
>>>>>>>>>>>>>> with Wayland,but we are failing. The thread is here :
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> https://forums.freebsd.org/threads/trying-to-run-kde-6-plasma-with-wayland.93951/
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> > Do you have some kind of suggestion to give to us ?
>>>>>>>>>>>>>> > The main problem seems to be that there is a conflict
>>>>>>>>>>>>>> between plasma5-kwin and plasma6-kwin ; some kde5 and kde6 packages are
>>>>>>>>>>>>>> mixed and  this creates some issues.
>>>>>>>>>>>>>> > What should we do ?
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> > thanks.
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> > --
>>>>>>>>>>>>>> > Mario.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Mario.
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Mario.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Mario.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Mario.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Mario.
>>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Mario.
>>>>>
>>>>
>>>
>>> --
>>> Mario.
>>>
>>
>>
>> --
>> Mario.
>>
>
>
> --
> Mario.
>


-- 
Mario.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20240723/f0c485d0/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Istantanea_2024-07-22_14-05-17.png
Type: image/png
Size: 49227 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20240723/f0c485d0/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Istantanea_2024-07-22_14-16-04.png
Type: image/png
Size: 68345 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20240723/f0c485d0/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Istantanea_2024-07-22_19-16-07.png
Type: image/png
Size: 3565 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20240723/f0c485d0/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Istantanea_2024-07-22_19-16-41.png
Type: image/png
Size: 1610 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20240723/f0c485d0/attachment-0007.png>


More information about the kde-freebsd mailing list