Login started to fail on one seat of multi-seat system

Hi,

I have/had a working multi-seat openSUSE Tumbleweed system with 2 video cards and 2 sets of keyboard/mouse. Starting a couple of weeks ago, logging in on seat1 drops me back to the SDDM login screen. Logging in on seat0 still works.

Also, when starting a terminal session over ssh into the system - which I did to look at logs during the failing login - apparently make logging in on seat1 work again! In that state, I get more than usual requests to enter credentials. So I suspect that the credential key ring isn’t started properly, but I have no idea why this would be with a login to seat1 only. And it worked before too.

Any ideas to diagnose would be welcome.

Do you recover old behavior by using sudo update-alternatives --config default-displaymanager to switch from SDDM to LightDM, followed by restarting system? You may need to install lightdm package first - check whether a .desktop file for it exists in /usr/share/xsessions/.

Thanks for the suggestion.

But I have a new data point. It appears only one user (me) is affected. I created a new user and tried to login, without issue.

Using that new user, I started an ssh session, so that the login on seat1 would fail.

I got the following log:

Jul 08 13:02:20 z440.vdkeybus.lan sddm-greeter[4341]: Reading from "/usr/share/xsessions/plasma5.desktop"
Jul 08 13:02:20 z440.vdkeybus.lan sddm[2451]: Message received from greeter: Login
Jul 08 13:02:20 z440.vdkeybus.lan sddm[2451]: Reading from "/usr/share/xsessions/plasma5.desktop"
Jul 08 13:02:20 z440.vdkeybus.lan sddm[2451]: Session "/usr/share/xsessions/plasma5.desktop" selected, command: "/usr/bin/startplasma-x11" for VT 3
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: [PAM] Starting...
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: [PAM] Authenticating...
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: [PAM] Preparing to converse...
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: [PAM] Conversation with 1 messages
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: gkr-pam: unable to locate daemon control file
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: gkr-pam: stashed password to try later in open session
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: pam_kwallet5(sddm:auth): pam_kwallet5: pam_sm_authenticate
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: [PAM] returning.
Jul 08 13:02:20 z440.vdkeybus.lan sddm[2451]: Authentication for user  "vdkeybus"  successful
Jul 08 13:02:20 z440.vdkeybus.lan sddm-greeter[4341]: Message received from daemon: LoginSucceeded
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: pam_systemd(sddm:session): Failed to create session: TTY tty3 is virtual console but seat seat1 is not seat0
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: pam_unix(sddm:session): session opened for user vdkeybus(uid=1000) by vdkeybus(uid=0)
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: gkr-pam: unable to locate daemon control file
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4530]: pam_kwallet5: final socket path: /tmp/kwallet5_vdkeybus.socket
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: Writing cookie to "/tmp/xauth_qxPmep"
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4521]: Starting X11 session: "" "/usr/etc/X11/xdm/Xsession \"/usr/bin/startplasma-x11\""
Jul 08 13:02:20 z440.vdkeybus.lan sddm[2451]: Session started true
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4340]: [PAM] Closing session
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4340]: pam_unix(sddm-greeter:session): session closed for user sddm
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4340]: pam_kwallet5(sddm-greeter:session): pam_kwallet5: pam_sm_close_session
Jul 08 13:02:20 z440.vdkeybus.lan sddm-helper[4340]: [PAM] Ended.
Jul 08 13:02:20 z440.vdkeybus.lan sddm[2451]: Auth: sddm-helper exited successfully
Jul 08 13:02:20 z440.vdkeybus.lan sddm[2451]: Greeter stopped. SDDM::Auth::HELPER_SUCCESS

Using LightDM, the issue does not occur anymore.

The problem therefore lies with SDDM that somehow does not deal correctly with seat1.