Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 2024 23:34:55 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        x11@freebsd.org, KDE FreeBSD <kde-freebsd@kde.org>
Subject:   Problems with wayland and kde 6
Message-ID:  <CA%2B1FSigx6bLyNh0Z3Gf497cuLU1S6REOQxR9w%2B2LboKcX4Hebg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000000000000f408a3061df0f0b9
Content-Type: text/plain; charset="UTF-8"

Hello.

We (at https://forums.freebsd.org) are trying to configure and run KDE 6
with Wayland on FreeBSD 14.1-RELEASE p2. After a lot of research and trial
and error I've found that the parameters below are able to launch correctly
Wayland + Wayfire and KDE 6 on Xorg,but NOT Wayland + KDE 6. In the log it
is clearly reported that pipewire is involved in the boot failure. The
parameters are the following :

#!/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 LIBSEAT_BACKEND=consolekit2

export QT_WAYLAND_SHELL_INTEGRATION=xdg-shell
export XDG_SESSION_TYPE=xdg-shell

export QT_QPA_PLATFORMTHEME=qt5ct

#export __GLX_VENDOR_LIBRARY_NAME=nvidia
#export CLUTTER_BACKEND=wayland
#export SDL_VIDEODRIVER=wayland
#export LIBGL_DRI3_ENABLE=1
#export XKB_DEFAULT_RULES=evdev

export QT_QPA_PLATFORM=minimal

#export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
#export BEMENU_BACKEND=wayland
#export WLR_DRM_NO_ATOMIC=1
#export XCURSOR_THEME=whiteglass

export WLR_NO_HARDWARE_CURSORS=1

#mkdir -p /var/run/user/"$(id -u)"
#echo 1
#chown -R "${USER}":wheel /var/run/user/"$(id -u)"
#echo 2
#chmod 700 /var/run/user/"$(id -u)"
#echo 3

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

#ck-launch-session dbus-run-session wayfire

This is the log file. Are you the *Maintainer* of Wayland,right ? good. Can
you give us some suggestions to fix the pipewire problem that you see below
? I want to exclude some reasons that could produce some errors that don't
make KDE 6 to start.


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[1142]: [session uid=1001 pid=1142] Activating service
name='org.kde.KSplash' requested by ':1.0' (uid=1001 pid=1143 comm="")
dbus-daemon[1142]: [session uid=1001 pid=1142] Successfully activated
service 'org.kde.KSplash'
Initializing
 "/usr/local/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
dbus-daemon[1142]: [session uid=1001 pid=1142] Activating service
name='org.freedesktop.portal.Desktop' requested by ':1.5' (uid=1001
pid=1148 comm="")
dbus-daemon[1142]: [session uid=1001 pid=1142] Activating service
name='org.freedesktop.portal.Documents' requested by ':1.6' (uid=1001
pid=1156 comm="")
dbus-daemon[1142]: [session uid=1001 pid=1142] Activating service
name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.7'
(uid=1001 pid=1158 comm="")
dbus-daemon[1142]: [session uid=1001 pid=1142] Successfully activated
service 'org.freedesktop.impl.portal.PermissionStore'
dbus-daemon[1142]: [session uid=1001 pid=1142] Successfully activated
service 'org.freedesktop.portal.Documents'
fuse: unknown option(s): `-o auto_unmount'
error: fuse init failed: Can't create fuse session
kf.kirigami.platform: Failed to find a Kirigami platform plugin for style ""

(/usr/local/libexec/xdg-desktop-portal:1156): xdg-desktop-portal-WARNING
**: 23:07:33.365: 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:1156): xdg-desktop-portal-WARNING
**: 23:07:33.365: 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:1156): xdg-desktop-portal-WARNING
**: 23:07:33.366: 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[1142]: [session uid=1001 pid=1142] Activating service
name='org.freedesktop.impl.portal.desktop.kde' requested by ':1.6'
(uid=1001 pid=1156 comm="")
No backend specified, automatically choosing drm
dbus-daemon[1142]: [session uid=1001 pid=1142] Successfully activated
service 'org.freedesktop.impl.portal.desktop.kde'
dbus-daemon[1142]: [session uid=1001 pid=1142] Activating service
name='org.gtk.vfs.Daemon' requested by ':1.6' (uid=1001 pid=1156 comm="")
dbus-daemon[1142]: [session uid=1001 pid=1142] Successfully activated
service 'org.gtk.vfs.Daemon'
dbus-daemon[1142]: [session uid=1001 pid=1142] Activating service
name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.6' (uid=1001
pid=1156 comm="")
dbus-daemon[1142]: [session uid=1001 pid=1142] Successfully activated
service 'org.gtk.vfs.UDisks2VolumeMonitor'
dbus-daemon[1142]: [session uid=1001 pid=1142] Activating service
name='org.gtk.vfs.MTPVolumeMonitor' requested by ':1.6' (uid=1001 pid=1156
comm="")
dbus-daemon[1142]: [session uid=1001 pid=1142] Successfully activated
service 'org.gtk.vfs.MTPVolumeMonitor'
dbus-daemon[1142]: [session uid=1001 pid=1142] Activating service
name='org.gtk.vfs.GPhoto2VolumeMonitor' requested by ':1.6' (uid=1001
pid=1156 comm="")
dbus-daemon[1142]: [session uid=1001 pid=1142] Successfully activated
service 'org.gtk.vfs.GPhoto2VolumeMonitor'

(/usr/local/libexec/xdg-desktop-portal:1156): xdg-desktop-portal-WARNING
**: 23:07:33.463: Failed connect to PipeWire: Couldn't connect to PipeWire

(/usr/local/libexec/xdg-desktop-portal:1156): xdg-desktop-portal-WARNING
**: 23:07:33.468: Choosing kwallet.portal for
org.freedesktop.impl.portal.Secret via the deprecated UseIn key

(/usr/local/libexec/xdg-desktop-portal:1156): xdg-desktop-portal-WARNING
**: 23:07:33.468: The preferred method to match portal implementations to
desktop environments is to use the portals.conf(5) configuration file
dbus-daemon[1142]: [session uid=1001 pid=1142] 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.


-- 
Mario.

--000000000000f408a3061df0f0b9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello.</div><div><br></div><div>We (at <a href=3D"htt=
ps://forums.freebsd.org" target=3D"_blank">https://forums.freebsd.org</a>)
 are trying to configure and run KDE 6 with Wayland on FreeBSD=20
14.1-RELEASE p2. After a lot of research and trial and error I&#39;ve found=
=20
that the parameters below are able to launch correctly Wayland + Wayfire
 and KDE 6 on Xorg,but NOT Wayland + KDE 6. In the log it is clearly=20
reported that pipewire is involved in the boot failure. The parameters=20
are the following :</div><div><br></div><div>#!/bin/sh<br><br>#export QT_DE=
BUG_PLUGINS=3D1<br>#export WAYLAND_DEBUG=3D1<br><br>export XDG_CONFIG_HOME=
=3D&quot;$HOME/.config&quot;<br>export XDG_CACHE_HOME=3D&quot;$HOME/.cache&=
quot;<br>export XDG_DATA_HOME=3D&quot;$HOME/.local/share&quot;<br>export XD=
G_RUNTIME_DIR=3D/var/run/user/&quot;$(id -u)&quot;<br>export LIBSEAT_BACKEN=
D=3Dconsolekit2<br><br>export QT_WAYLAND_SHELL_INTEGRATION=3Dxdg-shell<br>e=
xport XDG_SESSION_TYPE=3Dxdg-shell<br><br>export QT_QPA_PLATFORMTHEME=3Dqt5=
ct<br><br>#export __GLX_VENDOR_LIBRARY_NAME=3Dnvidia<br>#export CLUTTER_BAC=
KEND=3Dwayland<br>#export SDL_VIDEODRIVER=3Dwayland<br>#export LIBGL_DRI3_E=
NABLE=3D1<br>#export XKB_DEFAULT_RULES=3Devdev<br><br>export QT_QPA_PLATFOR=
M=3Dminimal<br><br>#export QT_WAYLAND_DISABLE_WINDOWDECORATION=3D1<br>#expo=
rt BEMENU_BACKEND=3Dwayland<br>#export WLR_DRM_NO_ATOMIC=3D1<br>#export XCU=
RSOR_THEME=3Dwhiteglass<br><br>export WLR_NO_HARDWARE_CURSORS=3D1<br><br>#m=
kdir -p /var/run/user/&quot;$(id -u)&quot;<br>#echo 1<br>#chown -R &quot;${=
USER}&quot;:wheel /var/run/user/&quot;$(id -u)&quot;<br>#echo 2<br>#chmod 7=
00 /var/run/user/&quot;$(id -u)&quot;<br>#echo 3<br><br>ck-launch-session d=
bus-run-session startplasma-wayland 2&gt; startplasma.log<br><br>#ck-launch=
-session dbus-run-session wayfire</div><div><br></div><div>This is the log =
file. Are you the <b>Maintainer</b>
 of Wayland,right ? good. Can you give us some suggestions to fix the=20
pipewire problem that you see below ? I want to exclude some reasons that c=
ould produce some errors that don&#39;t make KDE 6 to start. <br></div><div=
><br></div><div><br></div><div>org.kde.startup: not a reply org.freedesktop=
.locale1 QDBusMessage(type=3DError, service=3D&quot;&quot;, error name=3D&q=
uot;org.freedesktop.DBus.Error.ServiceUnknown&quot;,
 error message=3D&quot;The name org.freedesktop.locale1 was not provided by=
 any
 .service files&quot;, signature=3D&quot;s&quot;, contents=3D(&quot;The nam=
e=20
org.freedesktop.locale1 was not provided by any .service files&quot;) )<br>=
dbus-daemon[1142]:
 [session uid=3D1001 pid=3D1142] Activating service name=3D&#39;org.kde.KSp=
lash&#39;=20
requested by &#39;:1.0&#39; (uid=3D1001 pid=3D1143 comm=3D&quot;&quot;)<br>=
dbus-daemon[1142]: [session uid=3D1001 pid=3D1142] Successfully activated s=
ervice &#39;org.kde.KSplash&#39;<br>Initializing =C2=A0&quot;/usr/local/lib=
/qt6/plugins/plasma/kcms/systemsettings/kcm_fonts.so&quot;<br>dbus-daemon[1=
142]: [session uid=3D1001 pid=3D1142] Activating service name=3D&#39;org.fr=
eedesktop.portal.Desktop&#39; requested by &#39;:1.5&#39; (uid=3D1001 pid=
=3D1148 comm=3D&quot;&quot;)<br>dbus-daemon[1142]: [session uid=3D1001 pid=
=3D1142] Activating service name=3D&#39;org.freedesktop.portal.Documents&#3=
9; requested by &#39;:1.6&#39; (uid=3D1001 pid=3D1156 comm=3D&quot;&quot;)<=
br>dbus-daemon[1142]: [session uid=3D1001 pid=3D1142] Activating service na=
me=3D&#39;org.freedesktop.impl.portal.PermissionStore&#39; requested by &#3=
9;:1.7&#39; (uid=3D1001 pid=3D1158 comm=3D&quot;&quot;)<br>dbus-daemon[1142=
]: [session uid=3D1001 pid=3D1142] Successfully activated service &#39;org.=
freedesktop.impl.portal.PermissionStore&#39;<br>dbus-daemon[1142]: [session=
 uid=3D1001 pid=3D1142] Successfully activated service &#39;org.freedesktop=
.portal.Documents&#39;<br>fuse: unknown option(s): `-o auto_unmount&#39;<br=
>error: fuse init failed: Can&#39;t create fuse session<br>kf.kirigami.plat=
form: Failed to find a Kirigami platform plugin for style &quot;&quot;<br><=
br>(/usr/local/libexec/xdg-desktop-portal:1156):
 xdg-desktop-portal-WARNING **: 23:07:33.365: Failed to load RealtimeKit
 property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name =
org.freedesktop.RealtimeKit1 was not provided by any .service files<br><br>=
(/usr/local/libexec/xdg-desktop-portal:1156):
 xdg-desktop-portal-WARNING **: 23:07:33.365: Failed to load RealtimeKit
 property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name =
org.freedesktop.RealtimeKit1 was not provided by any .service files<br><br>=
(/usr/local/libexec/xdg-desktop-portal:1156):
 xdg-desktop-portal-WARNING **: 23:07:33.366: Failed to load RealtimeKit
 property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name =
org.freedesktop.RealtimeKit1 was not provided by any .service files<br>dbus=
-daemon[1142]: [session uid=3D1001 pid=3D1142] Activating service name=3D&#=
39;org.freedesktop.impl.portal.desktop.kde&#39; requested by &#39;:1.6&#39;=
 (uid=3D1001 pid=3D1156 comm=3D&quot;&quot;)<br>No backend specified, autom=
atically choosing drm<br>dbus-daemon[1142]: [session uid=3D1001 pid=3D1142]=
 Successfully activated service &#39;org.freedesktop.impl.portal.desktop.kd=
e&#39;<br>dbus-daemon[1142]:
 [session uid=3D1001 pid=3D1142] Activating service=20
name=3D&#39;org.gtk.vfs.Daemon&#39; requested by &#39;:1.6&#39; (uid=3D1001=
 pid=3D1156=20
comm=3D&quot;&quot;)<br>dbus-daemon[1142]: [session uid=3D1001 pid=3D1142] =
Successfully activated service &#39;org.gtk.vfs.Daemon&#39;<br>dbus-daemon[=
1142]: [session uid=3D1001 pid=3D1142] Activating service name=3D&#39;org.g=
tk.vfs.UDisks2VolumeMonitor&#39; requested by &#39;:1.6&#39; (uid=3D1001 pi=
d=3D1156 comm=3D&quot;&quot;)<br>dbus-daemon[1142]: [session uid=3D1001 pid=
=3D1142] Successfully activated service &#39;org.gtk.vfs.UDisks2VolumeMonit=
or&#39;<br>dbus-daemon[1142]: [session uid=3D1001 pid=3D1142] Activating se=
rvice name=3D&#39;org.gtk.vfs.MTPVolumeMonitor&#39; requested by &#39;:1.6&=
#39; (uid=3D1001 pid=3D1156 comm=3D&quot;&quot;)<br>dbus-daemon[1142]: [ses=
sion uid=3D1001 pid=3D1142] Successfully activated service &#39;org.gtk.vfs=
.MTPVolumeMonitor&#39;<br>dbus-daemon[1142]: [session uid=3D1001 pid=3D1142=
] Activating service name=3D&#39;org.gtk.vfs.GPhoto2VolumeMonitor&#39; requ=
ested by &#39;:1.6&#39; (uid=3D1001 pid=3D1156 comm=3D&quot;&quot;)<br>dbus=
-daemon[1142]: [session uid=3D1001 pid=3D1142] Successfully activated servi=
ce &#39;org.gtk.vfs.GPhoto2VolumeMonitor&#39;<br><br>(/usr/local/libexec/xd=
g-desktop-portal:1156): xdg-desktop-portal-WARNING **: 23:07:33.463: Failed=
 connect to PipeWire: Couldn&#39;t connect to PipeWire<br><br>(/usr/local/l=
ibexec/xdg-desktop-portal:1156): xdg-desktop-portal-WARNING **: 23:07:33.46=
8: Choosing kwallet.portal for org.freedesktop.impl.portal.Secret via the d=
eprecated UseIn key<br><br>(/usr/local/libexec/xdg-desktop-portal:1156):
 xdg-desktop-portal-WARNING **: 23:07:33.468: The preferred method to=20
match portal implementations to desktop environments is to use the=20
portals.conf(5) configuration file<br>dbus-daemon[1142]: [session uid=3D100=
1 pid=3D1142] Successfully activated service &#39;org.freedesktop.portal.De=
sktop&#39;</div><div><br></div><div>Unable to determine system time zone: p=
lease check your system configuration.<br>kwin_screencast: Failed to connec=
t PipeWire context<br>No backend specified, automatically choosing drm<br>U=
nable to determine system time zone: please check your system configuration=
.<br>kwin_screencast: Failed to connect PipeWire context<br>No backend spec=
ified, automatically choosing drm<br>Unable to determine system time zone: =
please check your system configuration.<br>kwin_screencast: Failed to conne=
ct PipeWire context<br>No backend specified, automatically choosing drm<br>=
Unable to determine system time zone: please check your system configuratio=
n.<br>kwin_screencast: Failed to connect PipeWire context<br>No backend spe=
cified, automatically choosing drm<br>Unable to determine system time zone:=
 please check your system configuration.<br>kwin_screencast: Failed to conn=
ect PipeWire context<br>No backend specified, automatically choosing drm<br=
>Unable to determine system time zone: please check your system configurati=
on.<br>kwin_screencast: Failed to connect PipeWire context<br>No backend sp=
ecified, automatically choosing drm<br>Unable to determine system time zone=
: please check your system configuration.<br>kwin_screencast: Failed to con=
nect PipeWire context<br>No backend specified, automatically choosing drm<b=
r>Unable to determine system time zone: please check your system configurat=
ion.<br>kwin_screencast: Failed to connect PipeWire context<br>No backend s=
pecified, automatically choosing drm<br>Unable to determine system time zon=
e: please check your system configuration.<br>kwin_screencast: Failed to co=
nnect PipeWire context<br>No backend specified, automatically choosing drm<=
br>Unable to determine system time zone: please check your system configura=
tion.<br>kwin_screencast: Failed to connect PipeWire context<br>No backend =
specified, automatically choosing drm<br>Unable to determine system time zo=
ne: please check your system configuration.<br>kwin_screencast: Failed to c=
onnect PipeWire context</div><div><br></div><div>org.kde.startup: &quot;kde=
init5_shutdown&quot; QList() exited with code 255<br>Initializing =C2=A0&qu=
ot;/usr/local/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_style.so&quot;=
<br>startplasma-wayland: Shutting down...<br>startplasmacompositor: Shuttin=
g down...<br>startplasmacompositor: Done.<br>A connection to the bus can&#3=
9;t be made<br>/usr/local/bin/xrdb: Connection refused<br>/usr/local/bin/xr=
db: Can&#39;t open display &#39;:0&#39;<br>/usr/local/bin/xsetroot: =C2=A0u=
nable to open display &#39;:0&#39;<br>Initializing =C2=A0&quot;/usr/local/l=
ib/qt6/plugins/plasma/kcms/systemsettings/kcm_mouse.so&quot;<br>kcm_mouse: =
Not able to select appropriate backend.<font color=3D"#888888"><br></font><=
/div><br clear=3D"all"><br><span class=3D"gmail_signature_prefix">-- </span=
><br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_sig=
nature">Mario.<br></div></div>

--000000000000f408a3061df0f0b9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSigx6bLyNh0Z3Gf497cuLU1S6REOQxR9w%2B2LboKcX4Hebg>