Hi guys, I need your help.
I have a laptop with an Intel integrated card + NVIDIA discrete card eGPU running KDE neon user edition. I have an external monitor connected to the NVIDIA card. Here is my lspci result:
$ lspci | grep 'VGA'
0000:00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c)
0000:04:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3080] (rev a1)
I’m trying to migrate my setup from X11 to Wayland since NVIDIA should have decent support for it now. I followed this KDE guide. It works out of the box when using Nouveau drivers. When using the NVIDIA proprietary drivers, I have the following situation:
- SDDM works (X11 backend still). However, after login, Plasma fails to start. It results in a black screen with a mouse cursor on it. I can still ctrl + alt + T to access the terminal and manually open another software, like Firefox. Window management seems ok, so it looks like KWin is working.
- If I log in to SDDM with the eGPU disconnected, wait till the Plasma loads, and only then connect the eGPU, it works perfectly well. (Hot-plug was not a thing on X11, so good to know it works out of the box on Wayland)
So, as far as I can tell, it seems like the overall setup is working, but the Plasma refuses to start when the NVIDIA card is connected with the proprietary drivers in use. I tried with both nvidia-driver-535 and nvidia-driver-545-open, same result. The nvidia-driver-535-open seems buggy and did not work at all.
Not sure how to debug this problem. Here is what I did so far:
- Manually execute plasmashell
$ plasmashell --replace
Checking screens: available: (QScreen(0x560db2ef0a30, name="HDMI-A-2")) redundant: QHash() fake: QSet() all: (QScreen(0x560db2ef0a30, name="HDMI-A-2"))
kf.plasma.quick: Applet preload policy set to 1
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/templates/InlineMessage.qml:265:13: QML SelectableLabel: Binding loop detected for property "implicitWidth"
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
org.kde.plasma.containmentlayoutmanager: Error: cannot change the containment to AppletsLayout
QObject::connect: No such slot DesktopProtocol::_k_slotRedirection(KIO::Job *, QUrl)
QObject::connect: No such slot DesktopProtocol::_k_slotRedirection(KIO::Job *, QUrl)
[destroyed object]: error 7: importing the supplied dmabufs failed
The Wayland connection experienced a fatal error: Protocol error
- Check journalctl
$ journalctl --follow --user-unit plasma-plasmashell
dez 14 14:34:20 fael-linux kioslave5[9784]: QObject::connect: No such slot DesktopProtocol::_k_slotRedirection(KIO::Job *, QUrl)
dez 14 14:34:20 fael-linux plasmashell[9767]: [destroyed object]: error 7: importing the supplied dmabufs failed
dez 14 14:34:20 fael-linux plasmashell[9767]: The Wayland connection experienced a fatal error: Protocol error
dez 14 14:34:20 fael-linux systemd[9209]: plasma-plasmashell.service: Main process exited, code=exited, status=1/FAILURE
dez 14 14:34:20 fael-linux systemd[9209]: plasma-plasmashell.service: Failed with result 'exit-code'.
dez 14 14:34:20 fael-linux systemd[9209]: plasma-plasmashell.service: Scheduled restart job, restart counter is at 3.
dez 14 14:34:20 fael-linux systemd[9209]: Stopped KDE Plasma Workspace.
dez 14 14:34:20 fael-linux systemd[9209]: plasma-plasmashell.service: Start request repeated too quickly.
dez 14 14:34:20 fael-linux systemd[9209]: plasma-plasmashell.service: Failed with result 'exit-code'.
dez 14 14:34:20 fael-linux systemd[9209]: Failed to start KDE Plasma Workspace.
Any ideas?