LightDM can not start occasionally

Bug #1009303 reported by Ding Zhou
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Light Display Manager
Incomplete
Low
Unassigned

Bug Description

System: Ubuntu 11.10

While booting up the system, it may hang at the purple boot up screen occasionally, but kernel doesn't panic. Fail rate is about 1/500.

Press "Ctrl+Alt+F1" can switch console, then I found the issue was caused by LightDM, it couldn't start in this case, "ps aux" can see the LightDM process id.

If I run "sudo service lightdm restart", after a short delay, the LightDM can be restarted correctly, the desktop can be showed.

lightdm.tar.gz is the LightDM log from /var/log/lightdm, as you can see, there's one line "(EE) Lenovo Black Silk USB Keyboard: failed to initialize for relative axes." in x-0.log.

This may cause the lightdm fail to start, and change the keyboard doesn't solve this issue.

Revision history for this message
Ding Zhou (tualatrix) wrote :
Revision history for this message
Ding Zhou (tualatrix) wrote :

The Xorg.0.log generated at the same time when the start up of LightDM

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you copy the logs from the vt before restarting lightdm? is lightdm started but its vt just not activated (i.e can you ctrl-alt-f7 or f8 to it)?

Changed in lightdm:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Charles Profitt (cprofitt) wrote :

Try modifying your /etc/init/lightdm.conf to the following (adding the sleep 2 line):

# LightDM - light Display Manager
#
# The display manager service manages the X servers running on the
# system, providing login and auto-login services
#
# based on gdm upstart script

description "LightDM Display Manager"
author "Robert Ancell "

start on ((filesystem
and runlevel [!06]
and started dbus
and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
or stopped udev-fallback-graphics))
or runlevel PREVLEVEL=S)

stop on runlevel [016]

emits login-session-start
emits desktop-session-start
emits desktop-shutdown

script
if [ -n "$UPSTART_EVENTS" ]
then
# Check kernel command-line for inhibitors, unless we are being called
# manually
for ARG in $(cat /proc/cmdline); do
if [ "$ARG" = "text" ]; then
plymouth quit || :
stop
exit 0
fi
done

[ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/bin/lightdm" -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ] || { stop; exit 0; }

if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ]
then
# Single-user mode
plymouth quit || :
exit 0
fi
fi
sleep 2
exec lightdm
end script

post-stop script
if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then
initctl emit desktop-shutdown
fi
end script

Revision history for this message
Richard Crossley (richardcrossley) wrote :

Hi,

I have added this as described and it seems to work perfectly.

Thank you.

Kindest Regards,
Richard.

Revision history for this message
Giuseppe Fierro (gspe) wrote :

Ubuntu 12.10

Add sleep 2 to config file doesn't work for me.

Please fix this annoying bug.
It's very frustrating when you want to show the powerful of linux and Ubuntu in particular to friends and the system doesn't start.

Kindest Regards,
Giuseppe

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.