From nobody Sat Jun 15 06:14:01 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 4W1Qp50qsZz5NPVW for ; Sat, 15 Jun 2024 06:14:05 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W1Qp46wCRz4TDK; Sat, 15 Jun 2024 06:14:04 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718432045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vo5tzROGbrbgp6dhv0c8ebfqO+MjyRkIAYLsNEcJOMw=; b=fy7MPTgOux2YUVfLS1UFHkH29eCZE4o2wrMEG+U6dko3GReeAAFvY+514XzpiKeu56v3m8 0HEb6S4iIrQYAfkKQFx9Eu0jVAjeI8J0yEExpSzbjd9kReHgekFdWwN7DwzgAWpU2dOhle tQiN9ocHm7Qa80M03zWlUHEBydh4MHB8sLoWZ9QURF940ee7WiJ+gMdCgzvNg3aX2+53cg Pw1SkEmkzq2Wl8EwKxxkmkOSEo3LeUuD5NmzpOtMoE1sEER1DrHWaBehgRS0+XDaibP7i1 j4oixIg+HVyY4Ax5orELQGgwHa/LFccQ7mvxTAkbGC3igROpdZUa9oNFaM0Hzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718432045; a=rsa-sha256; cv=none; b=nHPOwKG6a2iENtD4L7xzExjslIslvLvug2mwahPpOUDsheab4yxmmw0E80YwJUg/+c4t9B KVvxf8XNNbEMw5c8psrNkrxlDCzbwP4h8NQMbKbfhUY+f9vWdqDlNzmRXCP3nwsTV9AHVA emuac2WvvIHGEpXbneLjgBE/FwSgV+EvU3K8Y64Yn/HMUAhaQ45effHgX0ONKT1FrF1pBJ Vk2QP2GhkZZvdf1R6dHUNSyX3L3bCKIwOK575R/ButkLx5c37J8av28BnPOcYfNofSyy90 vEVrJEzJLRFjsYGr/cGDmneI6fYSM5/H1XkmcLCuGAsG8YdAtuHW4sIJjk8qBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718432045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vo5tzROGbrbgp6dhv0c8ebfqO+MjyRkIAYLsNEcJOMw=; b=fLJSPk3axdpwzWwz/kO/KilI27kHe9tgAK2A4yFqzascXLlfuuQRq8dt42EgljGDT/7NQw bNx+uLWxLqJ7NYGOSoDfqSknHeTGgHLEfSNuyBk9AaQDDGbSKRzBDnAkrV/O4WUAgP1fZj PyWOKwMAljmajplvkDZgGNAS0fnk3wrLBBrNaBlXTSMdXbQxqVXIt4ZlSQFsE2mKNAUFsI s9qnrVYIK/whuOXNg5d82QN1FDK9mQLao7MMGW5n7q1LcCsiYd+GQw61zbqKFaYu5spBd2 e4tNffd5tl+IcNe0M7R6E8RCRTZOxR+bmNs2A763jWutRMFo/oyQKlqf2qv67w== Received: by freefall.freebsd.org (Postfix, from userid 1354) id C1F1F14122; Sat, 15 Jun 2024 06:14:04 +0000 (UTC) From: Jan Beich To: Beamer Cc: freebsd-desktop@freebsd.org Subject: Re: Question: setting up Plasma Wayland session In-Reply-To: <20240614115051.419ebb53@beampad> (Beamer's message of "Fri, 14 Jun 2024 11:52:18 +0200") References: <79be2602-86e5-4d10-9c21-9ca7d8371bda@gmail.com> <20240614115051.419ebb53@beampad> Date: Sat, 15 Jun 2024 08:14:01 +0200 Message-ID: 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 Content-Type: text/plain Beamer writes: > On Fri, 14 Jun 2024 00:02:34 +0200 > Jan Beich wrote: > >> Evgeniy Khramtsov <2khramtsov@gmail.com> writes: >> >> > Hi. >> > >> > Does anyone run Plasma Wayland session (not nested via e.g. sway)? >> > >> > Are there any how-tos and/or out-of-tree patches to start it? >> >> Better ask on kde@ maillist. I'm not aware of anyone (except CheriBSD >> folks) working on Plasma/Wayland but also don't participate in any >> semi-private discussions at various meetings, conferences, etc. >> >> The first Wayland DE on FreeBSD would probably be one of the minor ones >> like LXQT, XFCE, MATE, Budgie or maybe even Cosmic. The major DEs need >> as "major" time investment but GPL projects make BSD vendors shy away. >> And there aren't many permissively-licensed DEs: Enlightment, Lumina, >> nwg-shell. Of those nwg-shell is probably the easiest to port but >> may still entail more work than any of the minor DEs under GPL. >> > > Something like this might work: > > dbus-run-session startplasma-wayland Did you confirm it does work on FreeBSD? I can't afford downtime to activate BEs in order to test/debug standalone Plasma/Wayland. Jailed under Wayfire Plasma 5 works fine but Plasma 6 crashes (bug 279753). > I'm not sure if the startplasma-wayland command works correctly. Check the KDE docs, you might need to modify some comands: > https://community.kde.org/KWin/Wayland#Start_a_Plasma_session_on_Wayland On FreeBSD the above needs ck-launch-session prepended in order to create XDG_RUNTIME_DIR and delegate /dev/dri/* and /dev/input/* access. Plasma upstream doesn't support libseat[1][2][3], so cannot use more simple/robust pam_xdg + seatd. Over the years numerious users have reported that starting Plasma/Wayland results in black screen with/without KDE logo. Plasma 5.21 did work (confirmed myself) when adridg@ fixed upstream bugs but quickly regressed after. Fixing bug 265505 was probably not enough or new regressions appeared. Recent reports on FreeBSD Forums and Discord suggest Plasma/Wayland is still broken. However, some of those can be attributed to SDDM bugs or misconfiguration. Determining the actual state is kde@ responsibility. [1] libseat is used by wlroots, Smithay, Weston to abstract away logind vs. consolekit2 vs. seatd dependency. Without libseat Wayland support is usually non-trivial to port on FreeBSD, so GNOME/Wayland (bug 271836) and Enlightment/Wayland (bug 251988) are stalled indefinitely. [2] CheriBSD added libseat support to KWin in their ports/ tree. That may be more stable than relying on consolekit2 to behave like logind or Plasma/Wayland not to expose consolekit2 bugs which don't affect Plasma/X11. [3] According to https://invent.kde.org/plasma/kwin/-/merge_requests/648 upstream doesn't like libseat and prefers to deal with consolekit2 directly like https://invent.kde.org/plasma/kwin/-/merge_requests/936