Created attachment 250085 [details] patch-src_vt.c The first xserver runs on VT9. When you run the command "dm-tool lock" lightdm starts a new xserver with a greeter on VT10. When you unlock the session lightdm needs to switch back to VT9 and this fails currently. Similar for commands like "dm-tool switch-to-greeter" and "dm-tool switch-to-user USERNAME". This is a patch to put in x11/lightdm/files. It ports src/vt.c so lightdm can do VT switching on FreeBSD.
Hi, Since I recently committed a few patches to lightdm I can take a look at this in the next few days. Maybe this could also be merged upstream, but canonical (the upstream entity) has strict rules about submissions, so it would be easier if you submitted this yourself to them, signing their agreement. Could you try doing that too?
(In reply to Guido Falsi from comment #1) If you've already signed their agreement then please submit it under your name. It seems overkill for me to sign it for a one-off patch.
(In reply to Tijl Coosemans from comment #2) No problem! Thanks for granting explicit authorization.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=96b6500ac4d9de0d37c54823d4d0764890718f74 commit 96b6500ac4d9de0d37c54823d4d0764890718f74 Author: Tijl Coosemans <tijl@FreeBSD.org> AuthorDate: 2024-04-21 13:27:18 +0000 Commit: Guido Falsi <madpilot@FreeBSD.org> CommitDate: 2024-04-21 13:27:18 +0000 x11/lightdm: Fix VT/user switching Submitted upstream: https://github.com/canonical/lightdm/pull/353 PR: 278457 x11/lightdm/Makefile | 2 +- x11/lightdm/files/patch-src_vt.c (new) | 99 ++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+), 1 deletion(-)
Patch committed. Thanks!