#915531 lightdm: Enforce correct boot sequence with elogind (avoid greyed buttons)

Package:
lightdm
Source:
lightdm
Description:
simple display manager
Submitter:
Lorenzo Puliti
Date:
2026-01-29 23:39:02 UTC
Severity:
normal
Tags:
#915531#5
Date:
2018-12-04 14:02:26 UTC
From:
To:
Dear Lightdm Maintainer,
(in CC Adam Borowski)

As you may know, Elogind has been packaged for Debian: Systemd-shim is
non functional (and i believe will be removed) so elogind is the only way
left in Debian (linux) to run a functional Dispaly manager with init != systemd.
I'm attaching a patch to make sure that lightdm is started after elogind;
in doing this i'm replacing 'hal' with 'elogind', as i think hal is gone
from all Debian architectures, please correct me if i'm wrong on this.
Also in doing this, i've noticed that in postinst script there is some
ancient code that try to set boot order passing 'K' and 'S' to update-rc.d.
The patch fix also this.

Please note that this patch only accounts for boot sequence; fully enabling
elogind support in lightdm will need further patching but I know that
Adam Borowski already has a patchset, so I leave that to him.

Side note: a proper elogind support in lightdm may also account for
#770885
#804165

Thanks,
Lorenzo

#915531#10
Date:
2018-12-04 15:04:03 UTC
From:
To:
Right, it's a race.  In my experience elogind seemed to always win this
race, but that's luck on my side.  Good catch.

I've tried three setups with elogind:
  xfce + lightdm + slick-greeter [amd64]
  mate + lightdm + slick-greeter [x32]
  xfce + slim [i386]
using the libpam-elogind-compat hack.  All work the same: suspend and some
other bits work fine, reboot and shutdown show non-grayed buttons but do
nothing after logout.  That's a known problem with policykit-1, which is
not expected to require changes to packages that interact with it.

The libpam-elogind-compat package from experimental is not supposed to ever
enter unstable or buster, but functionally doesn't differ from my plan: it
affects package dependencies only, without changes beyond dpkg/apt metadata.

Once #915407 is accepted, I'll ask you to replace
  Depends: libpam-systemd
with
  Depends: default-logind | logind
but you can't do that yet.


Meow!

#915531#15
Date:
2026-01-29 23:37:16 UTC
From:
To:
I just noticed this patch from Lorenzo overlaps with my recently-merged
fix.

On Tue, Dec 04, 2018 at 03:02:26PM +0100, Lorenzo Puliti wrote:
[...]
[...]

Looks like we could get 3 bugs closed in one go!

[...]

Presumably removing this is still a relevant tidy-up.

This part of Lorenzo's patch is obsoleted by:

https://salsa.debian.org/xfce-extras-team/lightdm/-/commit/acc57681ca4ae740310820e32c31ea67caf99f75

which solves the problem in the same way as all the other display
managers.

But this is still a relevant tidy-up. (The removed code is harmless
though.)