looking around for kde and nvidia issues these are the things that seen to crop up
have you tried the following
from this page
community.kde.org
which also mentions you need egl-wayland installed
Code:
egl-wayland-1.1.13 EGLStream-based Wayland external platform
couple of nvidia settings to try
1 - first nvidia settings to try using export for a sh script
Code:
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia
or setenv in
Code:
setenv __NV_PRIME_RENDER_OFFLOAD 1
setenv __GLX_VENDOR_LIBRARY_NAME nvidia
2 - second nvidia settings to try using export for a sh script
Code:
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
or setenv in
Code:
setenv GBM_BACKEND nvidia-drm
setenv __GLX_VENDOR_LIBRARY_NAME nvidia
qt6
have you got qt6-wayland installed
Code:
qt6-wayland-6.7.2 Qt6 wrapper for Wayland
starting kde and the handbook
This chapter demonstrates how to install numerous desktop environments, including web browsers, productivity software, document viewers, and financial software
docs.freebsd.org
A second method to start KDE Plasma is by manually invoking
startx(1). For this to work, the following line is needed in ~/.xinitrc:
Code:
% echo "exec dbus-launch --exit-with-x11 ck-launch-session startplasma-x11" > ~/.xinitrc
you arent using X11 obviously, but that command is a good starting place
Code:
exec dbus-launch --exit-with-session ck-launch-session startplasma-wayland
kde-starts script
uncomment nvidia settings 1, see if that works
then comment it back out and uncomment nvidia settings 2 and see if that does anything
Code:
#!/bin/sh
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export QT_QPA_PLATFORMTHEME=qt6ct
export QT_QPA_PLATFORM=wayland
export LIBSEAT_BACKEND=consolekit2
# nvidia settings 1 - uncomment to try
#export __NV_PRIME_RENDER_OFFLOAD=1
#export __GLX_VENDOR_LIBRARY_NAME=nvidia
# nvidia settings 2 - uncomment to try
#export GBM_BACKEND=nvidia-drm
#export __GLX_VENDOR_LIBRARY_NAME=nvidia
# uncommented if needed
#export QT_WAYLAND_SHELL_INTEGRATION=xdg-shell
#export XDG_SESSION_TYPE=xdg-shell
#export WLR_NO_HARDWARE_CURSORS=1
# start dbus, console kit and startplasma-wayland
exec dbus-launch --exit-with-session ck-launch-session startplasma-wayland
The XDG_RUNTIME_DIR directory contains the wayland socket, wayland lockfile, xdg_session and a dbus-directory
Code:
# ls -l /var/run/xdg/djwilcox/
total 7
dr-xr-xr-x 11 djwilcox djwilcox 704 9 Aug 20:07 .fcdm-jail
-r--r--r-- 1 djwilcox djwilcox 0 9 Aug 20:07 .fcdm-lock
srwxr-xr-x 1 djwilcox djwilcox 0 9 Aug 12:58 Alacritty-wayland-0-30915.sock
drwx------ 2 djwilcox djwilcox 3 9 Aug 12:59 at-spi
drwx------ 3 djwilcox djwilcox 3 9 Aug 12:58 dbus-1
drwx------ 2 djwilcox djwilcox 3 9 Aug 13:52 dconf
drwx------ 2 djwilcox djwilcox 2 9 Aug 13:19 doc
drwx------ 2 djwilcox djwilcox 3 9 Aug 12:58 dwlb
drwx------ 2 djwilcox djwilcox 3 9 Aug 12:59 emacs
drwx------ 2 djwilcox djwilcox 2 9 Aug 13:52 pulse
-rw------- 1 djwilcox djwilcox 0 9 Aug 13:19 tofi.lock
srwxr-xr-x 1 djwilcox djwilcox 0 9 Aug 12:58 wayland-0
-rw-r----- 1 djwilcox djwilcox 0 9 Aug 12:58 wayland-0.lock
-rwx------ 1 root djwilcox 0 9 Aug 12:58 xdg_session.0
DBUS_SESSION_BUS_ADDRESS created with dbus-launch using code from the handbook to lauch dwl
Code:
exec dbus-launch --exit-with-session dwl -s 'dwlb -font "monospace:size=16"' 2>/dev/null
Code:
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-1GOjP79gA3,guid=fd40fb53c75aa9a931db0dfb66b6047d
Code:
srwxrwxrwx 1 djwilcox wheel 0 9 Aug 12:58 dbus-1GOjP79gA3
the two main issue you seem to have are not finding /dev/dri/card0
and dbus errors
i wonder if the not being able to find the card is because you need to set a particular variable for nvidia
and the dbus errors are related to using dbus-launch
does the XDG_RUNTIME_DIR directory contain the following
wayland-0, wayland-0.lock and dbus-1
and does your /tmp directory contain a dbus directory
i think its just a matter of finding the right combination of settings