Solved KDE6 on wayland on Nvidia relatively easy with FreeBSD-16

HI

This is a report on successful startup of KDE6/plasma6 on wayland on Nvidia RTX3060

All I did to start KDE on Wayland on Freebsd 16 WAS:

#1 build Nvidia 580.105 drivers and install them.
#2 Build kde6/Plasma6 selecting and including all wayland options in the ports as I built them.
#3 build and install and run the /usr/ports/sysutils/seatd service.
#4 run " exec dbus-launch ck-launch-session startplasma-wayland "

ISSUE with missing cursor:

the cursor is not visible on the Nvidia display.
this problem occurs on linux as well and is well known.

Solution is to set variables

export WLR_NO_HARDWARE_CURSORS=1
export KWIN_FORCE_SW_CURSOR=1

in $HOME/.profile
 
I installed with cmd "doas pkg ins kde".
started it with "exec dbus-launch ck-launch-session startplasma-wayland".
my laptop has Intel UHD Graphics [Integrated] card.
it runs ok.
chrome crashed!!!
There are some issues on system information widget which i haven't sorted out yet.
cursor is working.
so is audio.
sleep works too, except wifi is disconnected n has to restart with "doas service netif restart wlan0"
 
I found out that konqueror crashes too.
chromium was able to start later. but, chromium, librewolf and waterfox could not be minimized.
I have never tried on 15, sorry.
 
Will it work on 15.0 ?
Because nvidia does not support wayland.
I tried KDE6/Wayland on two additional machines with FBSD 15-p1 one kabylake cpu with a quadro p2000 GPU , system panics and reboots .
And also on one AMD threadripper with RTX4000 , were machine does not Panic but fails to start desktop with som EGL graphics errors .
that machine is using Nvidia 580.95 drivers from the quaterly repo . so i may try to upgrade to later Nvidia drivers shortly.
 
Will it work on 15.0 ?
Because nvidia does not support wayland.
x11/nvidia-driver + x11/nvidia-kmod alone may not work well for Wayland (possibly depends on compositor).
As far as I know, to use Wayland, usually graphics/nvidia-drm-*-kmod{-devel} is wanted. "*" here would depend on the version of base FreeBSD version.

And a correction. Not "nvidia does not support Wayland", but "Wayland does not support nvidia well". This is similar to Xorg, which xorg-server does not look for nvidia proprietary driver (except graphics/nvidia-drm-*-kmod{-devel} which runs via default modesetting driver) without additional manual configuration.

Note that nvidia drivers does not support all patterns of protocols Wayland assumes. But supporting basically EGL for Wayland.
 
I tried KDE6/Wayland on two additional machines with FBSD 15-p1 one kabylake cpu with a quadro p2000 GPU , system panics and reboots .
And also on one AMD threadripper with RTX4000 , were machine does not Panic but fails to start desktop with som EGL graphics errors .
that machine is using Nvidia 580.95 drivers from the quaterly repo . so i may try to upgrade to later Nvidia drivers shortly.
Beware! Current in-tree version (on latest branch) of "-devel" variant is at 590.48.01. And starting from 590 series, nvidia dropped supports for GPUs older than Turing generation of architectures.

So to use Quadro P2000, you need non-devel variant (master port at 580.119.02 on latest branch) of drivers.

You can see which GPUs are still supported here.

And you can read HEADSUP I've posted to freebsd-ports ML here.
 
Back
Top