Date: Thu, 18 Jul 2024 01:18:29 +0200 From: Mario Marietto <marietto2008@gmail.com> To: Jan Beich <jbeich@freebsd.org> Cc: freebsd-desktop@freebsd.org, FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: Trying to run KDE 6 Plasma with Wayland.... Message-ID: <CA%2B1FSijE=gPVn1-z-EZHG7n7395vyoyXmddXFYJAmeEteTk4zQ@mail.gmail.com> In-Reply-To: <frst-xgf6-wny@FreeBSD.org> References: <CA%2B1FSiiDuzMjnJj5gHwxTTBq%2Bo1ypw9Rw4Z%2BnZ9%2BXU7MJ0X5RQ@mail.gmail.com> <frst-xgf6-wny@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000003f980f061d79b0e5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Jan. I'm trying to install KDE Plasma 6 with Wayland on a fresh vm based on FreeBSD 14.1,following your instructions,but some point is not clear for me. When you say : > =3D=3D> sysrc seatd_enable=3D"YES" > Plasma cannot use seatd without https://github.com/CTSRD-CHERI/cheribsd-ports/commit/02e468a397ad So,I need to make you some questions : 1) Should I make the installation of plasma5-kwin from ports even if I want to install KDE Plasma 6 ? 2) How should I apply the patches ? Can you tell me if the procedure that I want to follow is correct ? I've downloaded these two files : a) https://github.com/CTSRD-CHERI/cheribsd-ports/blob/main/x11-wm/plasma5-kwin= /Makefile b) https://github.com/CTSRD-CHERI/cheribsd-ports/blob/main/x11-wm/plasma5-kwin= /files/cheribsd.patch Should I copy the Makefile file to : /usr/ports/x11-wm/plasma5-kwin ? Should I copy the cheribsd.patch file to : /usr/ports/x11-wm/plasma5-kwin/files ? and after that,should I do : # cd /usr/ports/x11-wm/plasma5-kwin # mv Makefile Makefile_ # cp '/home/marietto/Desktop/cheribsd.patch' . # cd /usr/ports/x11-wm/plasma5-kwin/files # cp '/home/marietto/Desktop/Makefile' . # cd /usr/ports/x11-wm/plasma5-kwin # make make: "/usr/ports/x11-wm/plasma5-kwin/Makefile" line 74: Malformed conditional (!${ABI:Mpurecap}) make: Fatal errors encountered -- cannot continue make: stopped in /usr/ports/x11-wm/plasma5-kwin Something is not correct. On Mon, Jul 1, 2024 at 5:47=E2=80=AFPM Jan Beich <jbeich@freebsd.org> wrote= : > Mario Marietto <marietto2008@gmail.com> writes: > > > =3D=3D> pkg install plasma6-plasma kde6-devel > > Drop kde6-devel. It's obsolete and pulls other KDE stuff besides Plasma > like KDE Gear (aka applications) that can be used even on GNOME, XFCE, et= c. > > > =3D=3D> pkg install --glob "plasma6-*" > > =3D=3D> pkg install --glob "kf6-*" > > Unnecessary: already pulled by plasma6-plasma. > > > =3D=3D> sysrc seatd_enable=3D"YES" > > Plasma cannot use seatd without > https://github.com/CTSRD-CHERI/cheribsd-ports/commit/02e468a397ad > > > =3D=3D> sysrc -f /etc/rc.conf kld_list+=3D"nvidia-modeset nvidia- > > drm linux linux64 i915kms ext2fs mac_priority" > > nvidia-drm already loads nvidia-modeset. Moreover, loading > nvidia-modeset before nvidia-drm may not work. > > According to > https://www.freshports.org/graphics/nvidia-drm-61-kmod#message > you also need "sysctl hw.nvidiadrm.modeset=3D1" > > > export MOZ_ENABLE_WAYLAND=3D1 > > export __NV_PRIME_RENDER_OFFLOAD=3D1 > > export __GLX_VENDOR_LIBRARY_NAME=3Dnvidia > > export XDG_SESSION_TYPE=3Dwayland > > export XDG_RUNTIME_DIR=3D/tmp/$USER/.xdg > > export CLUTTER_BACKEND=3Dwayland > > export SDL_VIDEODRIVER=3Dwayland > > export LIBGL_DRI3_ENABLE=3D1 > > export XKB_DEFAULT_RULES=3Devdev > > export QT_QPA_PLATFORM=3Dwayland-egl > > export QT_WAYLAND_DISABLE_WINDOWDECORATION=3D1 > > export BEMENU_BACKEND=3Dwayland > > export WLR_DRM_NO_ATOMIC=3D1 > > export XCURSOR_THEME=3Dwhiteglass > > #export QT_QPA_PLATFORMTHEME=3Dqt5ct > > export WLR_NO_HARDWARE_CURSORS=3D1 > > Looks like a cargo cult. Not only many of these are default but some may > even break Xwayland support in apps that don't support Wayland natively > yet such as emulators/wine* > > > [ -d $XDG_RUNTIME_DIR ] || mkdir -m 700 -p $XDG_RUNTIME_DIR > > Manually setting and creating XDG_RUNTIME_DIR is obsolete on FreeBSD >=3D= 14 > via pam_xdg(8). > > Besides, Plasma uses ConsoleKit2 which overrides XDG_RUNTIME_DIR and (if > the value is same) destroys existing contents. GUI apps started before > Plasma with different XDG_RUNTIME_DIR wouldn't be accessible from within > Plasma and may cause other issues. > > > exec dbus-launch --sh-syntax --exit-with-session startplasma- > > Plasma requires ConsoleKit2 session, so prepend ck-launch-session > like > https://cgit.freebsd.org/ports/tree/x11/plasma5-plasma-workspace/files/st= artplasma-wayland.sh > > > but I get the following errors : > > > > https://ibb.co/VNmW9Wn > > https://ibb.co/Hhd5y0Z > > https://ibb.co/XL1xtLH > > Do you have /dev/dri/card0 ? If not debug drm-kmod or nvidia-drm-kmod. > After that check if Wayfire works before going on Plasma journey. DEs > like Plasma are a pinnacle of complexity, so even experienced users can > easily drown in pilot errors. > > Plasma/Wayland 6.1.1 works fine for me but I've only tested under Sway. > If standalone Plasma/Wayland fails it's likely due to ConsoleKit2 again. > > --=20 Mario. --0000000000003f980f061d79b0e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello Jan. <br></div><div><br></div><div>I'm tryi= ng to install KDE Plasma 6 with Wayland on a fresh vm based on FreeBSD 14.1= ,following your instructions,but some point is not clear for me. When you s= ay :<br></div><div><br></div><div>> =3D=3D> sysrc seatd_enable=3D&quo= t;YES"<br> > <span>Plasma</span> <span>cannot</span> <span>use</span> <span>seatd</= span> <span>without</span> <a href=3D"https://github.com/CTSRD-CHERI/cherib= sd-ports/commit/02e468a397ad" rel=3D"noreferrer" target=3D"_blank">https://= github.com/CTSRD-CHERI/cheribsd-ports/commit/02e468a397ad</a><span><br></sp= an></div><div><br></div><div>So,I need to make you some questions :</div><d= iv><br></div><div>1) Should I make the installation of plasma5-kwin from po= rts even if I want to install KDE Plasma 6 ?</div><div>2) How should I appl= y the patches ? Can you tell me if the procedure that I want to follow is c= orrect ? <br></div><div><br></div><div>I've downloaded these two files = :</div><div><br></div><div>a) <a href=3D"https://github.com/CTSRD-CHERI/che= ribsd-ports/blob/main/x11-wm/plasma5-kwin/Makefile" target=3D"_blank">https= ://github.com/CTSRD-CHERI/cheribsd-ports/blob/main/x11-wm/plasma5-kwin/Make= file</a></div><div>b) <a href=3D"https://github.com/CTSRD-CHERI/cheribsd-po= rts/blob/main/x11-wm/plasma5-kwin/files/cheribsd.patch" target=3D"_blank">h= ttps://github.com/CTSRD-CHERI/cheribsd-ports/blob/main/x11-wm/plasma5-kwin/= files/cheribsd.patch</a></div><div><br></div><div>Should I copy the Makefil= e file to : /usr/ports/x11-wm/plasma5-kwin ?<br></div><div>Should I copy th= e cheribsd.patch file to : /usr/ports/x11-wm/plasma5-kwin/files ?<br></div>= <div><br></div><div>and after that,should I do :<br></div><div><br></div><d= iv># cd /usr/ports/x11-wm/plasma5-kwin</div><div># mv Makefile Makefile_</d= iv><div># cp '/home/marietto/Desktop/cheribsd.patch' .</div><div># = cd /usr/ports/x11-wm/plasma5-kwin/files</div><div># cp '/home/marietto/= Desktop/Makefile' .</div><div># cd /usr/ports/x11-wm/plasma5-kwin</div>= <div># make</div><div><br></div><div>make: "/usr/ports/x11-wm/plasma5-= kwin/Makefile" line 74: Malformed conditional (!${ABI:Mpurecap})<br>ma= ke: Fatal errors encountered -- cannot continue<br></div><div>make: stopped= in /usr/ports/x11-wm/plasma5-kwin</div><div><br></div><div>Something is no= t correct.<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" c= lass=3D"gmail_attr">On Mon, Jul 1, 2024 at 5:47=E2=80=AFPM Jan Beich <<a= href=3D"mailto:jbeich@freebsd.org" target=3D"_blank">jbeich@freebsd.org</a= >> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Mar= io Marietto <<a href=3D"mailto:marietto2008@gmail.com" target=3D"_blank"= >marietto2008@gmail.com</a>> writes:<br> <br> > =3D=3D> pkg install plasma6-plasma kde6-devel<br> <br> Drop kde6-devel. It's obsolete and pulls other KDE stuff besides Plasma= <br> like KDE Gear (aka applications) that can be used even on GNOME, XFCE, etc.= <br> <br> > =3D=3D> pkg install --glob "plasma6-*"<br> > =3D=3D> pkg install --glob "kf6-*"<br> <br> Unnecessary: already pulled by plasma6-plasma.<br> <br> > =3D=3D> sysrc seatd_enable=3D"YES"<br> <br> Plasma cannot use seatd without <a href=3D"https://github.com/CTSRD-CHERI/c= heribsd-ports/commit/02e468a397ad" rel=3D"noreferrer" target=3D"_blank">htt= ps://github.com/CTSRD-CHERI/cheribsd-ports/commit/02e468a397ad</a><br> <br> > =3D=3D> sysrc -f /etc/rc.conf kld_list+=3D"nvidia-modeset nvid= ia-<br> > drm linux linux64 i915kms ext2fs mac_priority"<br> <br> nvidia-drm already loads nvidia-modeset. Moreover, loading<br> nvidia-modeset before nvidia-drm may not work.<br> <br> According to <a href=3D"https://www.freshports.org/graphics/nvidia-drm-61-k= mod#message" rel=3D"noreferrer" target=3D"_blank">https://www.freshports.or= g/graphics/nvidia-drm-61-kmod#message</a><br> you also need "sysctl hw.nvidiadrm.modeset=3D1"<br> <br> > export MOZ_ENABLE_WAYLAND=3D1<br> > export __NV_PRIME_RENDER_OFFLOAD=3D1<br> > export __GLX_VENDOR_LIBRARY_NAME=3Dnvidia<br> > export XDG_SESSION_TYPE=3Dwayland<br> > export XDG_RUNTIME_DIR=3D/tmp/$USER/.xdg<br> > export CLUTTER_BACKEND=3Dwayland<br> > export SDL_VIDEODRIVER=3Dwayland<br> > export LIBGL_DRI3_ENABLE=3D1<br> > export XKB_DEFAULT_RULES=3Devdev<br> > export QT_QPA_PLATFORM=3Dwayland-egl<br> > export QT_WAYLAND_DISABLE_WINDOWDECORATION=3D1<br> > export BEMENU_BACKEND=3Dwayland<br> > export WLR_DRM_NO_ATOMIC=3D1<br> > export XCURSOR_THEME=3Dwhiteglass<br> > #export QT_QPA_PLATFORMTHEME=3Dqt5ct<br> > export WLR_NO_HARDWARE_CURSORS=3D1<br> <br> Looks like a cargo cult. Not only many of these are default but some may<br= > even break Xwayland support in apps that don't support Wayland natively= <br> yet such as emulators/wine*<br> <br> > [ -d $XDG_RUNTIME_DIR ] || mkdir -m 700 -p $XDG_RUNTIME_DIR<br> <br> Manually setting and creating XDG_RUNTIME_DIR is obsolete on FreeBSD >= =3D 14<br> via pam_xdg(8).<br> <br> Besides, Plasma uses ConsoleKit2 which overrides XDG_RUNTIME_DIR and (if<br= > the value is same) destroys existing contents. GUI apps started before<br> Plasma with different XDG_RUNTIME_DIR wouldn't be accessible from withi= n<br> Plasma and may cause other issues.<br> <br> > exec dbus-launch --sh-syntax --exit-with-session startplasma-<br> <br> Plasma requires ConsoleKit2 session, so prepend ck-launch-session<br> like <a href=3D"https://cgit.freebsd.org/ports/tree/x11/plasma5-plasma-work= space/files/startplasma-wayland.sh" rel=3D"noreferrer" target=3D"_blank">ht= tps://cgit.freebsd.org/ports/tree/x11/plasma5-plasma-workspace/files/startp= lasma-wayland.sh</a><br> <br> > but I get the following errors :<br> ><br> > <a href=3D"https://ibb.co/VNmW9Wn" rel=3D"noreferrer" target=3D"_blank= ">https://ibb.co/VNmW9Wn</a><br> > <a href=3D"https://ibb.co/Hhd5y0Z" rel=3D"noreferrer" target=3D"_blank= ">https://ibb.co/Hhd5y0Z</a><br> > <a href=3D"https://ibb.co/XL1xtLH" rel=3D"noreferrer" target=3D"_blank= ">https://ibb.co/XL1xtLH</a><br> <br> Do you have /dev/dri/card0 ? If not debug drm-kmod or nvidia-drm-kmod.<br> After that check if Wayfire works before going on Plasma journey. DEs<br> like Plasma are a pinnacle of complexity, so even experienced users can<br> easily drown in pilot errors.<br> <br> Plasma/Wayland 6.1.1 works fine for me but I've only tested under Sway.= <br> If standalone Plasma/Wayland fails it's likely due to ConsoleKit2 again= .<br> <br> </blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d= iv> --0000000000003f980f061d79b0e5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSijE=gPVn1-z-EZHG7n7395vyoyXmddXFYJAmeEteTk4zQ>