[Pkg-xfce-devel] Bug#807001: Bug#807001: lightdm fails to register user-sessions

Daniel Reichelt debian at nachtgeist.net
Mon Dec 7 23:31:29 UTC 2015


On 12/07/2015 01:30 PM, Yves-Alexis Perez wrote:
> On sam., 2015-12-05 at 17:59 +0100, Daniel Reichelt wrote:
>> Up until now I thought, lightdm failed to correctly register a
>> user-session, when really it failed to register one at all...
> 
> It might very well be because it reuses the ssh session or something. I think
> it'd help to remove this from the equation.
> 
> Regards,
> 

Right, it does re-use the session from the shell `service lightdm
restart` was invoked from. But there's no difference if that shell comes
from a ssh- or from a local login.

Here's `loginctl show-session` after I did the service restart from tty1:

------------8<----------------
Id=3
Name=root
Timestamp=Mon 2015-12-07 22:22:43 CET
TimestampMonotonic=77192700
VTNr=1
TTY=/dev/tty1
Remote=no
Service=login
Scope=session-3.scope
Leader=6813
Audit=3
Type=tty
Class=user
Active=no
State=online
IdleHint=no
IdleSinceHint=1449523377884000
IdleSinceHintMonotonic=91836528
------------8<----------------




And here goes another experiment: To circumvent that whole systemd
session hullabaloo, I added /bin/bash to /etc/inittab like this:
------------8<----------------
8:S2:respawn:/bin/bash -il >/dev/tty8 2>&1 </dev/tty8
------------8<----------------




Doing the service restart from tty8 brought up lightdm with a fully
functional user-session:


------------8<---- /dev/tty8 ------------
# service lightdm stop
Stopping Light Display Manager: lightdm.
# loginctl
   SESSION        UID USER             SEAT

0 sessions listed.
# service lightdm start
Starting Light Display Manager: lightdm.
# loginctl
   SESSION        UID USER             SEAT
        c3        142 lightdm          seat0

1 sessions listed.
# loginctl show-session c3
Id=c3
Name=lightdm
Timestamp=Mon 2015-12-07 22:54:42 CET
TimestampMonotonic=420977720
VTNr=7
Display=:0
Remote=no
Service=lightdm-greeter
Scope=session-c3.scope
Leader=7164
Audit=0
Type=x11
Class=greeter
Active=no
State=online
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
## LOGGING IN TO LIGHTDM NOW
# loginctl show-session
   SESSION        UID USER             SEAT
        c3        142 lightdm          seat0
         6       1000 user             seat0

2 sessions listed.
# loginctl show-session 6
Id=6
Name=user
Timestamp=Mon 2015-12-07 22:55:00 CET
TimestampMonotonic=438664042
VTNr=7
Display=:0
Remote=no
Service=lightdm
Scope=session-6.scope
Leader=7194
Audit=6
Type=x11
Class=user
Active=no
State=online
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
------------8<---- /dev/tty8 ------------



More information about the Pkg-xfce-devel mailing list