Rocky 9.3 KDE login fails after nvidia driver install

I have a Quadro P2000 GPU that I’m using on Rocky 9.3 with KDE. After driver install the console boots and I login but then I get a black screen and it goes back to login. Googling seems to indicate this is common for other distros but I found no good fix for Rocky.

Here is how I installed the nvidia drivers:

dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo
dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
dnf install nvidia-driver nvidia-settings
dnf install cuda-driver

I can do a Ctrl-Alt-F3 on the console and login with the same user and run startx and everything works fine. Using nvidia-settings shows the GPU and nothing seems amiss.

Can anyone shed some light?

Output of journalctl -p err

    Dec 28 14:11:35 Zoomer sddm-helper[12980]: gkr-pam: unable to locate daemon control file
    Dec 28 14:11:37 Zoomer systemd[10814]: Failed to start Splash screen shown during boot.
    Dec 28 14:11:37 Zoomer kwalletd5[12994]: Failed to create wl_display (No such file or directory)
    Dec 28 14:11:37 Zoomer kwalletd5[12994]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
    Dec 28 14:11:37 Zoomer kded5[13320]: Failed to create wl_display (No such file or directory)
    Dec 28 14:11:37 Zoomer kded5[13320]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
    Dec 28 14:11:37 Zoomer ksmserver[13318]: org.kde.kf5.ksmserver: Cannot connect to the X server
    Dec 28 14:11:37 Zoomer ksmserver[13318]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
    Dec 28 14:11:37 Zoomer systemd-coredump[13327]: [🡕] Process 12994 (kwalletd5) of user 1000 dumped core.
    Dec 28 14:11:37 Zoomer systemd-coredump[13334]: [🡕] Process 13320 (kded5) of user 1000 dumped core.
    Dec 28 14:11:37 Zoomer systemd[10814]: Failed to start KDE Daemon.
    Dec 28 14:11:37 Zoomer systemd[10814]: Failed to start KDE Configuration Module Initialization (Phase 1).
    Dec 28 14:11:38 Zoomer systemd-coredump[13342]: [🡕] Process 13318 (ksmserver) of user 1000 dumped core.
    Dec 28 14:11:38 Zoomer systemd[10814]: Failed to start KDE Session Management Server.
    Dec 28 14:11:38 Zoomer akonadi_migration_agent[13555]: kf.jobwidgets: Couldn't start kuiserver from org.kde.kuiserver.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name is not activatable")
    Dec 28 14:11:39 Zoomer systemd[10814]: Failed to start Handle legacy xembed system tray icons.

I was able to solve this by adding nvidia_drm.modeset=1 to the grub command line.