I somewhat recently starting running Ubuntu 12.04 on my Macbook Pro 5-5 with minimal problems. The main issue I was having was I couldn't control the screen brightness, which after searching, I realized was a common problem. I tried to fix it by opening
sudo gedit /etc/X11/xorg.conf
When I rebooted, the screen got stuck at the Ubuntu Screen with the 5 orange dots. I tried searching for solutions, but nothing has worked. I'm guessing I messed up the xorg.conf because after booting to the Terminal and entering startx it shows a fatal error of no screens detected. I tried using
sudo dpkg-reconfigure xserver-xorg
but that didn't work, so then I tried using
sudo apt-get remove xserver-xorg
then reinstalling it with
sudo apt-get install xserver-xorg
and rebooted, but it still gets stuck at the same screen. I'm new to Ubuntu and Linux in general, so I'm not sure what I messed up or how to fix it. I know I can always reinstall Ubuntu, but I'm trying to fix it without having to do that. Thanks!
EDIT: I have a NVIDIA GeForce 9400M graphics card and am using additional drivers that I install when I installed Ubuntu.