On 06/07/2018 03:33 PM, Andreas Rasmussen wrote:
> I'm runnin 4.0 on a Lenovo X230. Everything runs smoothly besides the
> login proces.
>
> When I boot up and enter the disk encryption password, everything works
> as it should. However: If an external monitor (be it displayport or vga)
> is connected, the loginscreen never appears.
That's strange, it should at least appear on one of the monitors. The
problem people usually have is that the login screen appears on the
laptop's display even when it's docked and the lid closed, so you have
to open the laptop's monitor, login and then close it back. IIUC you
don't even see it on the laptop's monitor
Try this: after you boot, at the time where you're supposed to see the
login screen, go to a console (CTRL-ALT-F2 for instance), login and look
at xrandr's output:
export XAUTHORITY=/var/run/lightdm/root/:0
export DISPLAY
xrandr
you should see something like
LVDS-1 connected primary ...
...
DP-1 connected ...
('LVDS-1' and 'DP-1' will probably differ on your X230).
try to turn off the laptop's display with
xrandr --output LVDS-1 --off
on my laptop I also have to turn off the external and turn it back on
(no idea why, never had the time to debug).
xrandr --output DP-1 --off ; sleep 1 ; xrandr --output DP-1 --auto
if you see the loginscreen on the external monitor after those steps,
you'll have to automate this - either by tweaking xorg's conf file, or
by using lightdm's script (see greeter-setup-script=...)