Black screen system can't work

Basically the whole screen is all black, only the one program work well shows me message to log out to fix problem. The reason to cause problem is that I shut down computer with lots of software open.