SDDM not loading automatically

I am on openSUSE Leap 15.4 using KDE, and the nvidia 525.89.02 proprietary driver . I’ve been using it for months with the graphical login, but as of today, I’m booting to a command prompt login. I can login in at the command prompt, and if I then run sudo systemctl start sddm, I will get the graphical login and am able to log into KDE from it.

I had this problem once before, and solved it that time by setting splash=nosilent in Grub2; that parameter is still set. I have tried adding plymouth.enable=0, but that made no difference.

I am at runlevel 5 when I get the command line login, and systemctl get-default returns graphical.target, so it should be loading SDDM automatically (as it used to). Any ideas? I’d rather not have to login twice.

Reboot, capture full output as root of

journalctl -b --full --no-pager

and upload to https://paste.opensuse.org/, post link here.

journalctl output is at openSUSE Paste

I did manage to figure out that running startx after logging into the console will start KDE without my having to log in twice, but I still want to figure out why it’s not starting on its own.

SDDM was started but failed to launch X server. May be due to

Dec 25 11:06:11 rivendell kernel: [drm:drm_set_master [drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000600] Failed to grab modeset ownership
Dec 25 11:06:11 rivendell kernel: [drm:drm_set_master [drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000600] Failed to grab modeset ownership
Dec 25 11:06:11 rivendell kernel: [drm:drm_set_master [drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000600] Failed to grab modeset ownership

May be it is familiar to someone. I vaguely remember seeing these messages but cannot tell right now what could be the reason.

You could try

Is there a reason for this old driver?
Actual is nvidia-drivers-G06-545.29.06-lp154.18.1.x86_64.rpm

Do you use Wayland or X11?

I tried adding nvidia-drm.modeset=1 as that thread suggests, but it made no difference.

I use X11, and the nvidia driver version is the one that got installed when I installed the system. It’s been working, so I haven’t upgraded.

That means you never updated this system? It is recommended to keep a system up to date, mainly for security reasons but also for bugfixes and stability improvements…

Upgrading the nvidia driver fixed it. I’m still puzzled as to why it suddenly stopped working, because I hadn’t made any changes to the system. I guess I’ll just have to live with the mystery. Thanks for your help.

And please upgrade to Leap 15.5. 15.4 goes out of support one of these days.
https://en.opensuse.org/Lifetime

And what changed before that? Did you install some updates or some packages or made any changes to your system?

What is the output of

systemd-cgls

immediately after you log in on the console before you start GUI?