The issue is following: laptop (HP6570p) with Kubuntu 14.04 installed, lid closed, external monitor is connected. Reboot. Laptop shows KDM login screen for a seconds and immediately goes to sleep.
Open lid wakes it up. Login. Then close the lid again. Everything is fine.
Power option set to "Do nothing" when lid is closed.