Adding some lines to /etc/init/lightdm.conf fixed the problem on my PC (Ubuntu 12.04):
start on ((filesystem
and runlevel [!06]
and started dbus
and plymouth-ready
and (graphics-device-added PRIMARY_DEVICE_FOR_DISPLAY=1 #added
or drm-device-added PRIMARY_DEVICE_FOR_DISPLAY=1 #added
or stopped udevtrigger or container)) #added
or runlevel PREVLEVEL=S)
Adding some lines to /etc/init/ lightdm. conf fixed the problem on my PC (Ubuntu 12.04):
start on ((filesystem device- added PRIMARY_ DEVICE_ FOR_DISPLAY= 1 #added DEVICE_ FOR_DISPLAY= 1 #added
and runlevel [!06]
and started dbus
and plymouth-ready
and (graphics-
or drm-device-added PRIMARY_
or stopped udevtrigger or container)) #added
or runlevel PREVLEVEL=S)