Unable to start KDE neon/Plasma on Core Ultra + NVIDIA RTX 500 Ada

My new laptop with Intel Core Ultra and discrete graphics (NVIDIA RTX 500 Ada) refuses to start Plasma. I have read a lot of things about getting Plasma to run with NVIDIA GPU, I think I tried all of them (?), I’m still stuck, so help would be much appreciated.

A first issue occurred when I attempted to boot the machine with neon-user-20240704-0716.iso from a USB drive: the machine would stall with some kernel messages that I believe are unrelated:

[   5.312462] spi-nor spi0.0: unrecognized JEDEC id bytes: f7 f0 30 09 d6 0o
[   5.436397]
[   5.615819] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
[   5.777757] iwlwifi 0000:00:14.3: Not valid error log pointer 0x00279848 for RT uCode
[   6.171131] iwlwifi 0000:00:14.3: HRT: Invalid buffer destination
[   6.328458] iwlwifi 0000:00:14.3: Not valid error log pointer 0x00279848 for RT ucode
[   7.012847] Bluetooth: hci0: Malformed MSFT vendor event: 0x02

I could successfully start the live CD by appending nomodeset 3 to the grub configuration, then logging into the terminal as neon user with empty password, then issuing startx. From there, I was able to install Neon onto the system. During installation, the machine had a LAN connection.

After installation, Plasma won’t start, it stalls with the same messages. However, I can CTRL3 into a console, but I am unable to start a GUI session from there, regardless whether I issue startx or startplasma-wayland.

When I append nomodeset 3 to the grub kernel line, I can log into a terminal and start Plasma from there (startx), but it will run in safe graphics mode.

I have then installed NVIDIA drivers like this:

add-apt-repository ppa:graphics-drivers/ppa
apt install nvidia-driver-550 # also tried with -555
apt install libnvidia-egl-wayland1

But that does not make a difference.

Furthermore, whether I issue prime-select intel or prime-select nvidia does not make a difference. systemctl restart display-manager appears to do something, but then I am again stuck with some text messages.

$ cat /sys/module/nvidia_drm/parameters/modeset
Y
$ nvidia-smi
Fri Jul 12 09:10:40 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.100                Driver Version: 550.100        CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA RTX 500 Ada Gener...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   37C    P8              2W /   35W |      86MiB /   4094MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1021      G   /usr/lib/xorg/Xorg                              5MiB |
|    0   N/A  N/A      1084      G   /usr/bin/sddm-greeter-qt6                      76MiB |
+-----------------------------------------------------------------------------------------+

$ dmesg | grep nvidia
[    4.531890] audit: type=1400 audit(1720766065.988:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=654 comm="apparmor_parser"
[    4.531894] audit: type=1400 audit(1720766065.988:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=654 comm="apparmor_parser"
[    4.551890] nvidia: loading out-of-tree module taints kernel.
[    4.551895] nvidia: module license 'NVIDIA' taints kernel.
[    4.551898] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    4.551898] nvidia: module license taints kernel.
[    4.670952] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[    4.672831] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
[    4.740752] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  550.100  Thu Jun 27 18:13:10 UTC 2024
[    4.766417] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    6.713172] nvidia-modeset: WARNING: GPU:0: Correcting number of heads for current head configuration (0x00)
[    6.713262] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
[    6.726504] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[    6.752703] nvidia-uvm: Loaded the UVM driver, major device number 507.
[    7.838023] nvidia-modeset: WARNING: GPU:0: Correcting number of heads for current head configuration (0x00)
[    7.873993] nvidia-modeset: WARNING: GPU:0: Correcting number of heads for current head configuration (0x00)
[    8.514773] nvidia-modeset: WARNING: GPU:0: Correcting number of heads for current head configuration (0x00)
da
$ journalctl --user-unit plasma-plasmashell
Jul 12 09:02:21 ### plasmashell[3310]: error getting max screen brightness via dbus: QDBusError("org.freedesktop.DBus.Error.UnknownObject", "No such object path '/org/kde/Solid/PowerManagement/Actions/BrightnessControl'")
Jul 12 09:04:55 ### plasmashell[3310]: ICE default IO error handler doing an exit(), pid = 3310, errno = 11
Jul 12 09:04:55 ### plasmashell[3310]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink"
Jul 12 09:04:55 ### plasmashell[3310]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink"
Jul 12 09:04:55 ### plasmashell[3310]: org.kde.pulseaudio: No object for name "alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source"
Jul 12 09:04:55 ### plasmashell[3310]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink"
Jul 12 09:04:55 ### plasmashell[3310]: org.kde.pulseaudio: No object for name "alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source"
Jul 12 09:04:56 ### systemd[1211]: plasma-plasmashell.service: Main process exited, code=exited, status=1/FAILURE
Jul 12 09:04:56 ### systemd[1211]: plasma-plasmashell.service: Failed with result 'exit-code'.
Jul 12 09:04:56 ### systemd[1211]: Stopped KDE Plasma Workspace.

$ xrandr --output VGA-0 --off
Can't open display

I also added a line KWIN_DRM_DEVICES="/dev/dri/card0" to /etc/environment after veryfing with drm_info that the NVIDIA card is indeed card0 – no difference.

Help :worried:

I was unable to get KDE neon to run on this machine, but Fedora 40 KDE edition works great. Maybe the hardware is too new and needed a newer kernel (Fedora 40 currently runs on 6.9 while KDE neon, based on Ubuntu 22.04, has 6.5).

If others with Meteor Lake hardware and NVIDIA GPUs come here: Even with Fedora, you will need to boot from live CD (USB) in basic graphics mode, then enable the NVIDIA repositories in Discover, then install the NVIDIA drivers. From there it’s a piece of cake. System settings show Intel Arc as GPU, but the NVIDIA GPU kicks in as needed – I just now rendered something in Blender using the Cycles engine, it was rather fast (compared to my ancient machine without dedicated GPU), and CPU usage was only 6 % :slight_smile:

Actually I quickly installed Fedora a second time – the first time around I was not aware of the KDE edition and ended up with Gnome, only to realize that I am fully addicted to KDE Plasma :rofl: