Ever since I do a dsync on Feb 15th, 2026, I noticed something odd. First, the time needed from login to KDE to load up is much longer. Then, after it loads up, give it a minute or two, then I’m automatically kicked/logged out to the login screen. If I login again, then the load time is much faster (as it should) and it is stable.
However, if I do a logout and re-login, that cycle repeats: long KDE load, after loaded, then 1 to 2 minutes to auto logged out. Only this time, it persists. Only a reboot could somewhat remedy the problem, in that long KDE load time, loaded, then 1-2 minutes to auto-logged out, login, faster login, and stable.
I recently installed IceWM. The same cycle like KDE, so I don’t think it’s DE/WM problem. BTW, I did dsync again today (Feb 21st), but the problem persists.
Now, I try to troubleshoot the problem with Claude Sonnet 4.6 (Yeah, and AI agent), and here’s the story (a bit long):
First, from journalctl -b | grep -i "error\|fail" | less, it found that KWallet is trying to load and fail, despite I already disable it in KDE long ago, and despite I’m logging to IceWM. 1st I found this:
$ cat ~/.config/kwalletrc
[Wallet]
Close When Idle=false
Close on Screensaver=false
Default Wallet=kdewallet
Enabled=false
First Use=false
Idle Timeout=10
Launch Manager=false
Leave Manager Open=false
Leave Open=true
Prompt on Open=false
Use One Wallet=true
[org.freedesktop.secrets]
apiEnabled=true
So I edit that apiEnabled=true to false, and for good measure, do this:
systemctl --user mask kwalletd5.service
systemctl --user mask kwalletd6.service
No Improvement. Then I found this from journalctl:
p11-kit: could not bind socket /run/user/107/p11-kit/pkcs11: Unknown error 2
p11-kit-server.service: Failed with result 'exit-code'
And, X server starts twice.
And then also this:
$ ls -la /run/user/107/
ls: cannot access '/run/user/107/': No such file or directory
user 107 is the sddm.
Long story short, I found ksecretd still run as a child of SDDM. Looks like pam_kwallet5 being called during login even though I disabled KWallet.
So I do this:
sudo cp /etc/pam.d/sddm /etc/pam.d/sddm.bak
sudo nano /etc/pam.d/sddm
Comment out all three kwallet lines:
#-auth optional pam_kwallet5.so
#-auth optional pam_kwallet.so
#-session optional pam_kwallet5.so auto_start
#-session optional pam_kwallet.so auto_start
Reboot, and the same. journalctl -b | grep -i "error\|fail". The pattern is identical: p11-kit still failing on /run/user/107/ which still doesn’t exist. So I do this:
sudo mkdir -p /run/user/107/p11-kit
sudo chown -R sddm:sddm /run/user/107
sudo chmod 700 /run/user/107
sudo systemctl restart sddm
I logged out and logged in perfectly, fast load and stable. Then I check this:
$ ls -la /run/user/107/
ls: cannot access '/run/user/107/': No such file or directory
So we (me and Claude) thought the problem is /run/user/107/ is not created at the appropriate time. I tried this:
sudo loginctl enable-linger sddm
Reboot. Same, long DE/WM load time, 1-2 minutes to auto-logged out. The difference is, when kicked, the login screen doesn’t load and the PC crash. I have to hard reset. In the next login screen, I drop to TTY and do this to restore:
sudo loginctl disable-linger sddm
Reboot. Like before, long DE/WM load and 1-2 minutes till kicked. But at least this time I manage to get the login.
Now, I try to disable p11-kit altogether:
sudo mkdir -p /var/lib/sddm/.config/systemd/user
sudo ln -s /dev/null /var/lib/sddm/.config/systemd/user/p11-kit-server.service
sudo ln -s /dev/null /var/lib/sddm/.config/systemd/user/p11-kit-server.socket
sudo chown -R sddm:sddm /var/lib/sddm/.config
Reboot and still the same. But now journalctl -b | grep -i "error\|fail" reveal something else:
- p11-kit is now failing for your user session (UID 1001), not just SDDM:
systemd[1305]: p11-kit-server.service: Failed with result 'exit-code'.
PID 1305 is my user’s systemd instance, not SDDM’s.
- A new failure appeared:
systemd[1305]: ssh-agent.service: Failed with result 'exit-code'.
- The actual session-kicking culprit is now this:
systemd[1565]: sys-devices-...-sound-card0-controlC0.device: Failed to enqueue SYSTEMD_USER_WANTS job: Transaction for sound.target/start is destructive (sound.target has 'stop' job queued)
So, I also mask p11-kit for my own user:
mkdir -p ~/.config/systemd/user
ln -s /dev/null ~/.config/systemd/user/p11-kit-server.service
ln -s /dev/null ~/.config/systemd/user/p11-kit-server.socket
ln -s /dev/null ~/.config/systemd/user/ssh-agent.service
Still the same. journalctl -b | grep -i "error\|fail"now show:
- ACPI BIOS errors (pre-existing firmware bugs)
- gpsd, rngd, smartd, alsa UCM (all pre-existing)
dbus-broker-launch: Activation request for 'org.freedesktop.home1' failed- WirePlumber assertions failing (4x) — this is now the most suspicious remaining error
wireplumber: Failed to get percentage from UPower- Two bare
(EE) error,X server lines
After comparing the logs from failed and stable login, we came to the conclusion that WirePlumber is not causing the kick — it happens in both cases. The failed login is dying before the sound conflict even gets a chance to appear.
Something is killing the first session between 14:03:36 and when the sound errors would appear (~14:04:37). That’s roughly a 60-second window where something times out.
Seems that something is causing X to exit:
14:03:05 systemd-logind: New session 'c3' of user 'xeon' with class 'user' and type 'x11'
14:03:06 sddm-helper: Starting X11 session: "... /Xsession \"/usr/bin/icewm-session\""
14:03:06 X server terminated successfully (0)
The X server exits with code 0 (success/clean exit) immediately after your session starts. This isn’t a crash — it’s a deliberate clean exit. And the reason is right there:
sddm-helper[1282]: Starting X11 session: ... "/usr/share/X11/xdm/Xsession \"/usr/bin/icewm-session\""
OK. I’m at loss here. Of course these logs are tested on IceWM. But for a week, the same also happened in KDE. I just installed IceWM today.
Lastly, some symptom I noticed. If I reboot, login, wait to long load, then the DE/WM load, and do nothing, waiting to be kicked to login screen, the next login will also a long wait and 1-2 minute until kicked again. But, if I do something, i.e. do something in the terminal, open an app till I’m being kicked, the next login will be fast and stable.
Sorry for the long post.
Anyone has any ideas?