ok
--
Sent from a phone, apologies for poor formatting.
On 22 May 2025 04:29:34 Rafael Sadowski <raf...@sizeofvoid.org> wrote:
On Wed May 21, 2025 at 05:08:10AM +0200, Rafael Sadowski wrote:
On Sun Dec 08, 2024 at 02:07:10AM +0000, Yifei Zhan wrote:
> I'm testing out Plasma 6 on a fresh installation and I think there are a
> few workarouds and notes worth adding to the pkg readme.
>
> - Move screen locking to its own section and mention xlock as an
> alternative
> - Mention about increasing resource limits, the default login class is
> too conservative and most plasma widgets would keep crashing
> - Mention about touchscreen calibration
>
Below is a new suggestion based on your feedback. I have also added a
new KDE PIM/Akonadi section based on the FreeBSD recommendation.
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/meta/kde/Makefile,v
diff -u -p -r1.39 Makefile
--- Makefile 21 May 2025 09:49:31 -0000 1.39
+++ Makefile 22 May 2025 03:25:50 -0000
@@ -31,6 +31,7 @@ PKGNAME-plasma = kde-plasma-${MODKDE_PLA
PKGNAME-plasma-extras = kde-plasma-extras-${MODKDE_PLASMA_VERSION}
REVISION-network = 0
+REVISION-plasma = 0
MULTI_PACKAGES += -main \
-games \
Index: pkg/PLIST-plasma
===================================================================
RCS file: /cvs/ports/meta/kde/pkg/PLIST-plasma,v
diff -u -p -r1.2 PLIST-plasma
--- pkg/PLIST-plasma 27 Dec 2023 12:56:46 -0000 1.2
+++ pkg/PLIST-plasma 22 May 2025 03:25:50 -0000
@@ -1,2 +1,4 @@
@pkgpath ${BASE_PKGPATH},-plasma
share/doc/pkg-readmes/${PKGSTEM}
+share/examples/login.conf.d/kde
+@sample ${SYSCONFDIR}/login.conf.d/kde
Index: pkg/README-plasma
===================================================================
RCS file: /cvs/ports/meta/kde/pkg/README-plasma,v
diff -u -p -r1.4 README-plasma
--- pkg/README-plasma 9 Feb 2025 09:04:15 -0000 1.4
+++ pkg/README-plasma 22 May 2025 03:25:50 -0000
@@ -45,11 +45,31 @@ proper function, it requires messagebus
consolekit2 and polkit-kde-agent, it will also allow you to suspend the
laptop from the logout dialog.
+Resource limits
+===============
+
+The "default" login-class resource limits are too conservative for KDE Plasma
+users. It is recommended to use the login-class "kde" for all KDE Plasma
+users.
+
+Depending on the application and if KDE widgets or plasmashell (you will
find a
+plasmashell.core in your $HOME) constantly crash, the value must be set
+correspondingly higher.
+
+You can easily change the login class with the following command:
+
+# usermod -L kde your-user-name
+
+Touch screen calibration
+========================
+xtsscale(1) can be used for touch screen calibration, however it will not
+work under kwin, as a workaround, you can kill kwin first, calibrate your
+screen, then launch kwin_x11 again.
+
Screen compositor
=================
-The KDE compositor may not run properly by default. You can deactivate it
-under: "System Setting" -> "Display Configuration" -> "Compositor" or
-in `~/.config/kwinrc":
+You can deactivate the screen compositor under: "System Setting" -> "Display
+Configuration" -> "Compositor" or in `~/.config/kwinrc":
[Compositing]
Enabled=false
@@ -87,14 +107,26 @@ fi
${LOCALBASE}/bin/ck-launch-session dbus-run-session \
${LOCALBASE}/bin/startplasma-wayland
+KDE PIM and Akonadi
+===================
+KDE PIM applications like Akonadi, KMail, and Kontact use large messages
on the
+local machine. The default size on OpenBSD is too small, which causes local
+connection issues, and Akonadi-based applications will be flaky (e.g.
mailboxes
+do not display, messages cannot be found).
+
+Increasing the buffer size is recommended:
+
+# sysctl net.unix.stream.recvspace=65536
+# sysctl net.unix.stream.sendspace=65536
+
Known issues
============
- The first start may take a little longer.
+- Touchscreen configuration does not work
Not yet ported Plasma applications/plugins
==========================================
- aura-browser
- - kpipewire
- bluedevil
- breeze-plymouth
- discover
Index: pkg/kde.login
===================================================================
RCS file: pkg/kde.login
diff -N pkg/kde.login
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/kde.login 22 May 2025 03:25:50 -0000
@@ -0,0 +1,5 @@
+kde:\
+ :datasize=8192M:\
+ :openfiles-cur=1024:\
+ :openfiles-max=2048:\
+ :tc=default: