I typed the command "sudo Xorg -configure" at the terminal and it gave me this error.
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Please consult the The X.Org Foundation support
ddxSigGiveUp: Closing log