This is driving me nuts. When my laptop feels like it(randomly), it just freezes when starting up. It gets stuck in this brown screen and I have to shut it down with the power button. It might do this for about 10 boots in a row or every other boot. And that is just the start.
X restarts when plugging or unplugging the PC(sometimes).
X also restarts if I log in with the same account on a tty.
If X restarts because of any reason, I have to restart gdm(my display manager) manually through a tty to be able to log in or it returns me to the log in screen.
I will be grateful for any solutions. I have Ubuntu 12.10 on Acer Aspire One 722 2GB RAM and 1.7GiB AMD proccessor.