<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 March 2014 04:47, Gabriele Bulfon <span dir="ltr"><<a href="mailto:gabriele.bulfon@sonicle.com" target="_blank">gabriele.bulfon@sonicle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="font-family:Verdana"><br>The problem here, I think is not yet about pam. It's not even arrived at pam calls yet.<br>
LightDM just sits waiting for a SIGUSR1 from X never arriving....<br><br>I compared the code from lxdm (currently working, even pam), and I found this in lxdm, just<br>after spawing X:<br><br> g_message("add xserver watch\n");<br>
for( i = 0; i < 100; i++ )<br> {<br> if(lxcom_last_sig==SIGINT || lxcom_last_sig==SIGTERM)<br> break;<br> if((s->dpy=xconn_open(display))!=NULL)<br>
break;<br> g_usleep(50 * 1000);<br> //g_message("retry %d\n",i);<br> }<br><br><div><br>looks like a loop to check for a signal different from SIGINT||SIGTERM, and trying to XOpenDisplay<br>
for some time, until it works or give up.<br><br>Maybe this is a fallback for SIGUSR1 not coming in?<br></div></div></blockquote><div><br></div><div>You could try lp:~robert-ancell/lightdm/xorg-displayfd - this is another method of checking if the X server is ready without using SIGUSR1. It requires Xorg 1.12.<br>
</div><div><br></div><div>--Robert</div><div><br></div></div></div></div>