From nobody Wed Jul 17 23:18:29 2024 X-Original-To: freebsd-desktop@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WPX2515x4z5Qc5m; Wed, 17 Jul 2024 23:19:09 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WPX236thxz4wrX; Wed, 17 Jul 2024 23:19:07 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=mwIJVirp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::1032 as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2c9e37bdd6fso153255a91.3; Wed, 17 Jul 2024 16:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721258346; x=1721863146; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OWRyTd0yKOC2bgDcvrgBNO2KT+KZIgN+h0Lh2F8ENgc=; b=mwIJVirp2j4EmcrWCzXnhKAC805jWmGP4TpyPIzcBMHD7GJg8kW/4SJQIoYn4KExHV dMoQnrJ17/hl1IabO2VHyAu583kd+R919E1HjY/cRRUvc+y9nh2NSQI6spXcX2MSQlhD 4QIg4Mdu8gOislWguX1FhvOO1lzq3ZgBJf7cBuMkEcweKVQ3EM22jR1j4F97H8Ba6nft wa4dP2aITLaAgs5bP2hXdMAvFXrqTGBdodC3NcUWJt1MVfOGIHDJB+oqVF8L8tf4zxR5 XSFHZ2pkk5lx58lTCbmOrE4e5HhF/pUwic0fuSSaYm4VLalYi4DZgXK1YzatiKKQVeGu v7cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721258346; x=1721863146; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OWRyTd0yKOC2bgDcvrgBNO2KT+KZIgN+h0Lh2F8ENgc=; b=of0BMdDJagcWS0tevYvC0JGNRugdyl2yrOm3/NkZOeLkvyFIvVq5DYgi1hU6uINnj/ O3KnYUG9r9ZqtJxloOyMMHBC9qMrDh14qTzQWyAfGrWw2UOz6zDBnwIKg178aPCeg5xd d4MBVXW7wGkuHzA8PD+8kfosSbYYFLlCqSSNsdAL2CyYuxzkWWAjscHOiMbyG+rf/THX 08B+PigFvNlZwNhpzgKYX/BeXicduzMRPVHjsEfDNaBrlpzyoxLE05mMzso7UxRNS1Qi iChxV8Scwise79mvx8BxNd0GZhPvnDRskgijs2krHnG9F0gA/Ln6/OY12zaaiSRSW0C3 1YBg== X-Forwarded-Encrypted: i=1; AJvYcCUQj6QIYiISRSHS3C/VZUpKxnaXLGtS3e9p4MHEOBEAglrPYlMFcCp2CFZLL6HqQZ/tLav273jdN157tIc2BoMbzU/Xs1zngskX+gm3kQ== X-Gm-Message-State: AOJu0YyqLGHI1ABukvURjpoEFCO72bm0aZZsHixidFeeKu24UU9wSPP5 mXbedG3EDoVYzK3cxP6FShU89qo4cuye/g6/xaJPHv83+HY8BO0h7Mkucl0kWVtKQChJFP4zdfq 5RLRiw50W+kxs6LBZT16SeAF7gwHb/WpS8Es= X-Google-Smtp-Source: AGHT+IFMseQgowkc9EydqADjJZ591w0vVIZhG0ag02qSAkWxktz6Legn+lH0CLMG3FLmunbO6OPans4okvIH16YANJs= X-Received: by 2002:a17:90a:b117:b0:2cb:4bed:ed35 with SMTP id 98e67ed59e1d1-2cb5294e698mr2691937a91.41.1721258345467; Wed, 17 Jul 2024 16:19:05 -0700 (PDT) List-Id: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Thu, 18 Jul 2024 01:18:29 +0200 Message-ID: Subject: Re: Trying to run KDE 6 Plasma with Wayland.... To: Jan Beich Cc: freebsd-desktop@freebsd.org, FreeBSD Mailing List Content-Type: multipart/alternative; boundary="0000000000003f980f061d79b0e5" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1032:from]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-desktop@freebsd.org,freebsd-questions@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4WPX236thxz4wrX --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 wrote= : > Mario Marietto 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
Hello Jan.

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 :

> =3D=3D> sysrc seatd_enable=3D&quo= t;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 po= rts even if I want to install KDE Plasma 6 ?
2) How should I appl= y the patches ? Can you tell me if the procedure that I want to follow is c= orrect ?

I've downloaded these two files = :


Should I copy the Makefil= e file to : /usr/ports/x11-wm/plasma5-kwin ?
Should I copy th= e 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})
ma= ke: Fatal errors encountered -- cannot continue
make: stopped= in /usr/ports/x11-wm/plasma5-kwin

Something is no= t correct.

On Mon, Jul 1, 2024 at 5:47=E2=80=AFPM Jan Beich <jbeich@freebsd.org> wrote:
Mar= io 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, etc.=

> =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 htt= ps://github.com/CTSRD-CHERI/cheribsd-ports/commit/02e468a397ad

> =3D=3D> sysrc -f /etc/rc.conf kld_list+=3D"nvidia-modeset nvid= ia-
> 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.or= g/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 withi= n
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 ht= tps://cgit.freebsd.org/ports/tree/x11/plasma5-plasma-workspace/files/startp= lasma-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= .



--
Mario.
--0000000000003f980f061d79b0e5--