I installed ubuntu 14.04.4 on my laptop last ight and it keeps logging me out. Its not my display setting i have it set to never turn the screen off. when it logs me out it closes all programs and turns off num lock its almost like its doing a reboot but not rebooting all the way. I think it might be an xorg issue but do not fully understand how to fix that.

i checked etc/X11 and i have no xorg file could this be the issue?

I have tried changing my hardware acceleration from good to fast and it did not work so i tired switching it from fast to best and that still has not worked.

Memory 3.8 gb
processor: intel core i3-5020u
Graphics: intel HD Graphics 5500(broadwell GT2)
OS type 64-bit
disk 980.3 GB