LightDM & SDDM fight on greeter screen

Solution 1:

I end up adding a ExecStartPre line to check for default display manager on legacy settings /etc/X11/default-display-manager, now it's working well:

/lib/systemd/system/sddm.service

[Unit]
Description=Simple Desktop Display Manager
Documentation=man:sddm(1) man:sddm.conf(5)
After=systemd-user-sessions.service [email protected] plymouth-quit.service

[Service]
ExecStartPre=/bin/sh -c '[ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "sddm" ]'
ExecStart=/usr/bin/sddm
Restart=always
#PrivateTmp=yes

[Install]
Alias=display-manager.service
WantedBy=graphical.target

Reference: Copied from /lib/systemd/system/lightdm.service

I'm not familiar with systemd, so no idea why sddm was started on boot. I have gdm too, it does not start by itself.

Update: I Could find a related bug report

  • Launchpad Bug-report #1446760: SDDM and LightDM can run at the same time