Configuring lightdm with multiple screens


This was tested on a Lenovo Thinkpad P1 Gen3 with internal Intel and an Nvidia Quadro T2000 using both the laptops display and two Dell 4K 24" screens. When configured with multiple screens I discovered that lightdm was only displaying on the external screens. Even when they were not plugged in.

Install lightdm if not already installed

pkg install lightdm lightdm-gtk-greeter

Configuration of lightdm - /usr/local/etc/lightdm/lightdm.conf

Before editing lightdm.conf run the below (xrandr) command:

xrandr --listmonitors

Monitors: 1
0: +*eDP-1-1 1920/344x1080/193+0+0  eDP-1-1

Now edit lightdm.conf and find the below line. It should be under [Seat:*]

display-setup-script=

Change to something like below, replacing eDP-1-1 with whatever you got from the xrandr command

display-setup-script=xrandr --output eDP-1-1 --primary --auto

Copyright © 2020 | Ben Hutton