I was running Ubuntu normally and one time I ran the command startX in my terminal and then my screen became black. So I powered off through the cable then when I reboot, it doesn't log in so I had to restart the lighdm (I think) now it does open.
If I shutdown it doesn't power off. It just shows the screen below for hours and hours, I can power off my PC by removing the cable only.

As suggested, on pressing Esc, I see:
Stopping tor daemon...
Stopping postgreSQL 9.1 database server [ OK ]