<div dir="ltr"><div><div>Hi Martin,<br><br></div>LightDM is not involved in monitor detection / setup so it seems likely the problem is with your X server and/or the greeter you are using.<br><br></div><div>Specifically what happens is:<br>
</div><div>1. LightDM starts an X server<br></div><div>2. When the X server is ready, LightDM starts a greeter<br><br>The greeter listens for XRANDR events (if it is capable, unity-greeter is, I'm not sure about the other ones) and reconfigures the monitors appropriately. The greeter resizes / changes layout to match the monitors (again, depends on greeter). This is the same behaviour as inside any X session (e.g GNOME, KDE).<br>
<br></div><div>If the session (greeter or user session) does not configure the monitors using XRANDR X has a default behaviour which I believe is to mirror the displays. However, some distributions patch this to be span by default.<br>
<br></div><div>You can check in /var/log/lightdm/lightdm.log to see how LightDM is starting the X server and /var/log/lightdm/x-0.log to see what the X server is reporting.<br></div><div><br></div>--Robert<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 6 July 2013 08:54, Martin Carroll <span dir="ltr"><<a href="mailto:martin.carroll@alcatel-lucent.com" target="_blank">martin.carroll@alcatel-lucent.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I am having hair-raising difficulties getting lightdm to detect a<br>
hotplugged monitor on my gentoo machines. I would much appreciate it if<br>
one of you could help me -- I have been unable to find the necessary<br>
info anywhere else.<br>
<br>
On my ubuntu laptop, hotplug during lightdm works fine. Specifically,<br>
if I boot my laptop with just the built-in monitor, wait for lightdm to<br>
present the login screen, and then plug in a second monitor, lightdm<br>
automatically detects the second monitor and presents the login screen<br>
on it.<br>
<br>
On my gentoo machine, however, hotplugging during lightdm does not work<br>
-- specifically, the second monitor stays black, and no amount of<br>
poking, banging, and kicking gets it to display the login screen.<br>
<br>
I have verified (using udevadm and also some printfs that I added to the<br>
X server) that when I hotplug the second monitor on the gentoo machine,<br>
a udev event *is* generated and *does* make it all the way to the X<br>
server. The uevent is a "change" event on the gpu device. The X<br>
server, however, explicitly ignores all "change" events coming from<br>
drm. So clearly that is not the intended path by which lightdm detects<br>
the second monitor.<br>
<br>
So how is lightdm detecting the hotplugged monitor on the ubuntu<br>
machine? Is it polling something? Is X polling something? Or is my<br>
udev event the wrong type? Did ubuntu add some magic patch to some<br>
package somewhere?<br>
<br>
Before I start adding printfs to my graphics drivers, udev rules, X<br>
server, and lightdm itself, can someone please explain to me the<br>
intended path by which lightdm "sees" the hotplugged monitor and fires<br>
up the login screen on it? At the moment, I don't even know who the<br>
culprit is on my gentoo machine.<br>
<br>
Thanks,<br>
Martin<br>
<br>
_______________________________________________<br>
LightDM mailing list<br>
<a href="mailto:LightDM@lists.freedesktop.org">LightDM@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/lightdm" target="_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
</blockquote></div><br></div>