#1076094 lightdm: switching VTs only works after having delayed or restarted lightdm

Package:
lightdm
Source:
lightdm
Description:
simple display manager
Submitter:
Maximilian Stein
Date:
2024-07-10 16:24:04 UTC
Severity:
normal
#1076094#5
Date:
2024-07-10 16:07:22 UTC
From:
To:
Dear Maintainer,

I am using lightdm on several Bookworm machines with openbox and
autologin (using lightdm-autologin-greeter).

However, I noticed that after boot switching VTs does not work —
neither with Ctrl+Alt+Fx nor using chvt. Indeed, chvt hangs forever
and `strace` shows that it is constantly trying to activate the other
TTY and then waiting for the actual switch.

Furthermore, I noticed, that switching the VT works again if I restart
lightdm after boot, or, alternatively, add a delay to the
lightdm.service unit:

    ExecStartPre=/usr/bin/sleep 1

After having restarted lightdm, I was unable to reproduce the buggy
behavior, so it seems to me that something starts to quickly.

Thanks in advance for any advice.

Best,
Max