Public bug reported:

When I reboot or shutdown my computer, SDDM tries to restarts itself and
slows down the halting process (by about five seconds).

`journalctl -b-1 |grep sddm` gives:

pro 25 14:19:13 GreenOne sddm-helper[15321]: [PAM] Starting...
pro 25 14:19:13 GreenOne sddm-helper[15321]: [PAM] Authenticating...
pro 25 14:19:13 GreenOne sddm-helper[15321]: [PAM] Preparing to converse...
pro 25 14:19:13 GreenOne sddm-helper[15321]: [PAM] Conversation with 1 messages
pro 25 14:19:13 GreenOne sddm-helper[15322]: pam_ecryptfs: Passphrase file 
wrapped
pro 25 14:19:13 GreenOne sddm-helper[15321]: pam_kwallet5(sddm:auth): (null): 
pam_sm_authenticate
pro 25 14:19:13 GreenOne sddm-helper[15321]: [PAM] returning.
pro 25 14:19:13 GreenOne sddm[955]: Authenticated successfully
pro 25 14:19:13 GreenOne sddm-greeter[15251]: Message received from daemon: 
LoginSucceeded
pro 25 14:19:13 GreenOne sddm-helper[15321]: pam_kwallet5(sddm:setcred): 
pam_kwallet5: pam_sm_setcred
pro 25 14:19:13 GreenOne sddm-helper[15321]: pam_unix(sddm:session): session 
opened for user drew by (uid=0)
pro 25 14:19:13 GreenOne sddm-helper[15321]: pam_kwallet5(sddm:session): 
pam_kwallet5: pam_sm_open_session
pro 25 14:19:13 GreenOne sddm-helper[15332]: pam_kwallet5: final socket path: 
/run/user/1000/kwallet5.socket
pro 25 14:19:13 GreenOne sddm-helper[15321]: Starting: "/etc/sddm/Xsession 
\"/usr/bin/startplasma-x11\""
pro 25 14:19:13 GreenOne sddm-helper[15334]: Adding cookie to 
"/home/drew/.Xauthority"
pro 25 14:19:13 GreenOne sddm[955]: Session started
pro 25 14:19:13 GreenOne sddm-helper[15238]: [PAM] Closing session
pro 25 14:19:13 GreenOne sddm-helper[15238]: pam_unix(sddm-greeter:session): 
session closed for user sddm
pro 25 14:19:13 GreenOne sddm-helper[15238]: [PAM] Ended.
pro 25 14:19:13 GreenOne sddm[955]: Auth: sddm-helper exited successfully
pro 25 14:19:13 GreenOne sddm[955]: Greeter stopped.
pro 25 14:20:14 GreenOne sddm[955]: Authentication error: "Process crashed"
pro 25 14:20:14 GreenOne sddm[955]: Auth: sddm-helper crashed (exit code 15)
pro 25 14:20:14 GreenOne sddm[955]: Authentication error: "Process crashed"
pro 25 14:20:14 GreenOne sddm[955]: Auth: sddm-helper exited with 15
pro 25 14:20:14 GreenOne sddm[955]: Socket server stopping...
pro 25 14:20:14 GreenOne sddm[955]: Socket server stopped.
pro 25 14:20:14 GreenOne sddm[955]: Display server stopping...
pro 25 14:20:15 GreenOne sddm[955]: Display server stopped.
pro 25 14:20:15 GreenOne sddm[955]: Running display stop script  
"/usr/share/sddm/scripts/Xstop"
pro 25 14:20:17 GreenOne sddm[955]: Removing display ":0" ...
pro 25 14:20:17 GreenOne sddm[955]: Adding new display on vt 1 ...
pro 25 14:20:17 GreenOne sddm[955]: Loading theme configuration from ""
pro 25 14:20:17 GreenOne sddm[955]: Display server starting...
pro 25 14:20:17 GreenOne sddm[955]: Adding cookie to 
"/var/run/sddm/{0d14fc72-608b-4648-a74c-e1209ec1ed6e}"
pro 25 14:20:17 GreenOne sddm[955]: Running: /usr/bin/X -nolisten tcp -auth 
/var/run/sddm/{0d14fc72-608b-4648-a74c-e1209ec1e
d6e} -background none -noreset -displayfd 18 -seat seat0 vt1
pro 25 14:20:18 GreenOne sddm[955]: Setting default cursor
pro 25 14:20:18 GreenOne sddm[955]: Running display setup script  
"/usr/share/sddm/scripts/Xsetup"
pro 25 14:20:21 GreenOne sddm[955]: Display server started.
pro 25 14:20:21 GreenOne sddm[955]: Socket server starting...
pro 25 14:20:21 GreenOne sddm[955]: Socket server started.
pro 25 14:20:21 GreenOne sddm[955]: Loading theme configuration from 
"/usr/share/sddm/themes/ubuntu-theme/theme.conf"
pro 25 14:20:21 GreenOne sddm[955]: Greeter starting...
pro 25 14:20:21 GreenOne sddm[955]: Signal received: SIGTERM
pro 25 14:20:21 GreenOne sddm-helper[17408]: [PAM] Starting...
pro 25 14:20:21 GreenOne sddm-helper[17408]: [PAM] Authenticating...
pro 25 14:20:21 GreenOne sddm-helper[17408]: [PAM] returning.
pro 25 14:20:21 GreenOne sddm[955]: Socket server stopping...
pro 25 14:20:21 GreenOne sddm[955]: Socket server stopped.
pro 25 14:20:21 GreenOne sddm[955]: Display server stopping...
pro 25 14:20:22 GreenOne sddm[955]: Display server stopped.
pro 25 14:20:22 GreenOne sddm[955]: Running display stop script  
"/usr/share/sddm/scripts/Xstop"
pro 25 14:20:23 GreenOne sddm[955]: QProcess: Destroyed while process 
("/usr/lib/x86_64-linux-gnu/sddm/sddm-helper") is stil
l running.
pro 25 14:20:23 GreenOne systemd[1]: sddm.service: Deactivated successfully.
pro 25 14:20:23 GreenOne systemd[1]: sddm.service: Consumed 1min 43.509s CPU 
time.

It can be seen that the system went for shutdown at 14:20:14, got mostly
shut down at 14:20:15 but then spent 8 seconds while SDDM was trying to
start again.

I am on Kuubntu 21.10, I am using systemd-boot to start up my computer
but this also happens to people with GRUB2 as confirmed here:
https://www.kubuntuforums.net/forum/newbie-support/help-the-new-
guy/659089-slow-shutdown?p=659107#post659107

A workaround was messing with /etc/systemd/system.con and tuning down these 
values:
DefaultTimeoutStartSec=1s
DefaultTimeoutStopSec=1s
DefaultStartLimitIntervalSec=500ms

Changing the restart values in /usr/lib/systemd/system/sddm.service on
the other hand has not changed anything.

** Affects: sddm (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955747

Title:
  SDDM tries to restart after reboot/shutdown are initiated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sddm/+bug/1955747/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to