Workaround for sddm conflict with kmscon

Shmerl <[email protected]> Tue, 23 Jun 2026 20:24:19 -0400
Newsgroups gmane.linux.debian.user.kde
Message-ID <CAPh=7Pp36SG-47=a=UpNkc5ieQt2HEnsR3NCS3Oq6OTGocx1aA@mail.gmail.com>
--0000000000004084f00654f4e6eb
Content-Type: multipart/alternative; boundary="0000000000004084ef0654f4e6e9"

--0000000000004084ef0654f4e6e9
Content-Type: text/plain; charset="UTF-8"

There is an issue with sddm conflicting with kmscon on startup, when if you
don't
log-in quickly enough, kmscon overtakes sddm and you have to reboot after
that.

The way to avoid it is to add kmscon to Conflicts= and After= sections of
sddm.service file.

See the idea here how it's done in plasma-login-manager:

https://invent.kde.org/plasma/plasma-login-manager/-/tree/master/services/plasmalogin.service.in?ref_type=heads

Or here if invent is too slow to load:

https://github.com/KDE/plasma-login-manager/blob/master/services/plasmalogin.service.in

Attaching a patch that fixes the issue at least for me.

May be this could be good to add to Debian's packaged sddm for now too,
until plasma-login-manager is available to help those who want to use kmscon
with better login experience.

Thank you!

Shmerl.

--0000000000004084ef0654f4e6e9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>There is an issue with sddm conflicting=C2=A0with kms=
con on startup, when if you don&#39;t</div><div>log-in quickly enough, kmsc=
on overtakes sddm and you have to reboot after that.</div><div><br></div><d=
iv>The way to avoid it is to add kmscon to=C2=A0Conflicts=3D and After=3D s=
ections of</div><div>sddm.service file.</div><div><br></div><div>See the id=
ea here how it&#39;s done in plasma-login-manager:</div><div><br></div><div=
><a href=3D"https://invent.kde.org/plasma/plasma-login-manager/-/tree/maste=
r/services/plasmalogin.service.in?ref_type=3Dheads">https://invent.kde.org/=
plasma/plasma-login-manager/-/tree/master/services/plasmalogin.service.in?r=
ef_type=3Dheads</a></div><div><br></div><div>Or here if invent is too slow =
to load:</div><div><br></div><div><a href=3D"https://github.com/KDE/plasma-=
login-manager/blob/master/services/plasmalogin.service.in">https://github.c=
om/KDE/plasma-login-manager/blob/master/services/plasmalogin.service.in</a>=
</div><div><br></div><div>Attaching a patch that fixes the issue at least=
=C2=A0for me.</div><div><br></div><div>May be this could be good to add to =
Debian&#39;s packaged=C2=A0sddm for now too,</div><div>until plasma-login-m=
anager is available to help those who want to use kmscon</div><div>with bet=
ter=C2=A0login experience.</div><div><br></div><div>Thank you!</div><div><b=
r></div><div>Shmerl.</div></div>

--0000000000004084ef0654f4e6e9--
--0000000000004084f00654f4e6eb
Content-Type: text/x-patch; charset="US-ASCII"; name="sddm_kmscon_fix.patch"
Content-Disposition: attachment; filename="sddm_kmscon_fix.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_mqrbxrx60>
X-Attachment-Id: f_mqrbxrx60

LS0tIGEvdXNyL2xpYi9zeXN0ZW1kL3N5c3RlbS9zZGRtLnNlcnZpY2UKKysrIGIvdXNyL2xpYi9z
eXN0ZW1kL3N5c3RlbS9zZGRtLnNlcnZpY2UKQEAgLTIsOCArMiw4IEBACiBEZXNjcmlwdGlvbj1T
aW1wbGUgRGVza3RvcCBEaXNwbGF5IE1hbmFnZXIKIERvY3VtZW50YXRpb249bWFuOnNkZG0oMSkg
bWFuOnNkZG0uY29uZig1KQogIyBDaGFuZ2UgdGhpcyBpZiB5b3UgY29uZmlndXJlIHNkZG0gdG8g
c3RhcnQgaW4gYSBkaWZmZXJlbnQgdHR5Ci1Db25mbGljdHM9Z2V0dHlAdHR5MS5zZXJ2aWNlCi1B
ZnRlcj1nZXR0eUB0dHkxLnNlcnZpY2UKK0NvbmZsaWN0cz1nZXR0eUB0dHkxLnNlcnZpY2Uga21z
Y29udnRAdHR5MS5zZXJ2aWNlCitBZnRlcj1nZXR0eUB0dHkxLnNlcnZpY2Uga21zY29udnRAdHR5
MS5zZXJ2aWNlCiAKIEFmdGVyPXN5c3RlbWQtdXNlci1zZXNzaW9ucy5zZXJ2aWNlIHN5c3RlbWQt
bG9naW5kLnNlcnZpY2UKIAo=
--0000000000004084f00654f4e6eb--