#786373 lightdm switches back to tty1 after auth, manual switch back to VT7 required

Package:
lightdm
Source:
lightdm
Description:
simple display manager
Submitter:
Robert Waldner
Date:
2015-05-24 19:24:05 UTC
Severity:
normal
Tags:
#786373#5
Date:
2015-05-21 04:01:32 UTC
From:
To:
Dear Maintainer,

I have the following situation: after cold-booting lightdm comes up as
expected, I authenticate and then get a blank screen (no signal to the
monitor). I then have to manually switch to VT1, stop/start lightdm,
authenticate again and am auto-switched to VT1 again. If I then switch
to VT7, I finally get to my normal X session with Enlightenment.

   * What led up to the situation?

Switching from GDM3 to lightdm (after upgrade to Jessie).

lightdm.log after getting the no-signal blank screen:
...
[+38.46s] DEBUG: Session pid=3291: User waldner authorized
[+38.46s] DEBUG: Session pid=3291: Greeter sets language de_AT.utf8
[+38.55s] DEBUG: Session pid=3291: Greeter requests session enlightenment
[+38.55s] DEBUG: Seat: Stopping greeter; display server will be re-used for user session
[+38.55s] DEBUG: Session pid=3291: Sending SIGTERM
[+38.56s] DEBUG: Session pid=3291: Greeter closed communication channel
[+38.56s] DEBUG: Session pid=3291: Exited with return value 0
[+38.56s] DEBUG: Seat: Session stopped
[+38.56s] DEBUG: Seat: Greeter stopped, running session
[+38.56s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+38.56s] DEBUG: Session pid=3318: Running command /etc/X11/Xsession /usr/bin/enlightenment_start
[+38.56s] DEBUG: Creating shared data directory /var/lib/lightdm/data/waldner
[+38.56s] DEBUG: Session pid=3318: Logging to .xsession-errors
[+38.59s] DEBUG: Activating VT 7
[+38.59s] DEBUG: Activating login1 session 1

lightdm.log after re-starting lightdm and authenticating:
...
[+8.67s] DEBUG: Session pid=3794: User waldner authorized
[+8.67s] DEBUG: Session pid=3794: Greeter sets language de_AT.utf8
[+8.80s] DEBUG: Session pid=3794: Greeter requests session enlightenment
[+8.80s] DEBUG: Seat: Stopping greeter; display server will be re-used for user session
[+8.80s] DEBUG: Session pid=3794: Sending SIGTERM
[+8.81s] DEBUG: Session pid=3794: Greeter closed communication channel
[+8.81s] DEBUG: Session pid=3794: Exited with return value 0
[+8.81s] DEBUG: Seat: Session stopped
[+8.81s] DEBUG: Seat: Greeter stopped, running session
[+8.81s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+8.81s] DEBUG: Session pid=3917: Running command /etc/X11/Xsession /usr/bin/enlightenment_start
[+8.81s] DEBUG: Creating shared data directory /var/lib/lightdm/data/waldner
[+8.81s] DEBUG: Session pid=3917: Logging to .xsession-errors
[+8.82s] DEBUG: Activating VT 7
[+8.82s] DEBUG: Activating login1 session 5

Since this didn't happen with GDM3, I don't think (ICBW, of course) this is
a problem with Enlightenment. I also get the same behaviour on my box at
work, same setup, so I can reproduce this.

Any hints very much appreciated - this is somewhat annoying.

Kind regards,
robert

#786373#10
Date:
2015-05-21 10:21:22 UTC
From:
To:
Can you check the .xsession-errors in both cases? Because it seems that
the session is correctly started by the greeter, so something else
might be happening later.

Regards,

#786373#15
Date:
2015-05-21 16:04:22 UTC
From:
To:
Well, there are definitely RANDR stuff in the .old log which look weird,
but I don't know if they're a cause or a consequence.

#786373#20
Date:
2015-05-21 15:48:52 UTC
From:
To:
On Thu, 21 May 2015 12:21:22 +0200, Yves-Alexis Perez writes:

I don't see anything obvious, so I've attached .xsession-errors.old from
 the first session (directly after reboot) and .xsession-errors from
 after restarting lightdm.

Xorg.0.log(.old) also look fine to me.

Kind regards,
robert

#786373#25
Date:
2015-05-22 00:06:21 UTC
From:
To:
On Thu, 21 May 2015 18:04:22 +0200, Yves-Alexis Perez writes:

Hmm, you mean the "E_RANDR" lines, which I guess are from
 Enlightenment? Would E even know if it's the first try for a session
 after reboot or a subsequent one?

For comparison, I've attached .xsession-errors/.old from my box at work
 - same general setup (lightdm, Enlightenment, upgraded from wheezy to
 jessie (so no full systemd env.), same problem, but w/o proprietary
 NVIDIA stuff).

Kind regards,
robert

#786373#30
Date:
2015-05-24 19:21:00 UTC
From:
To:
I just noticed something else: when I switch to VT1 directly from the
 initial lightdm login screen, and stop/start lightdm, X w/
 Enlightenment comes up.

The whole sequence then would be:
* boot, watch boot messages scroll by
* lightdm login screen appears
* I switch to VT1 manually, log in as root
* /etc/init.d/lightdm stop
* /etc/init.d/lightdm start
* screen switches to non-text-mode for a short (sub-second) period
* and I'm back at VT1
* manually switch to VT7, see lightdm login screen
* enter credentials, press enter
* blam, back at VT1
* manually switch to VT7, and now I'm in the Enlightenment session

Kind regards,
robert