Blank screen after editing xorg.conf

Asked by Wyn

I'm trying to install the graphic driver in my Ubuntu 10.10 (Samsung n145P / Intel GMA 3150). I edited some information in /etc/X11/xorg.conf. But when I restarted, my screen goes blank.

My next option into this is boot in Safe Mode, I tried booting on Live CD and press F4 but there is no Safe mode option, then I tried F6 and enter -forcevesa on the command line (I got the info in this site: http://www.piotrkrzyzek.com/enter-safe-graphics-mode-in-ubuntu-or-kubuntu-10-04-lucid-lynx-live-cd/) but it won't boot to safemode. I ended up booting to the terminal window instead.

So in the terminal window, I tried editing xorg.conf by typing: sudo vi /etc/X11/xorg.conf, I managed to open it but don't know how to save and exit the file after editing.

I only wanted to either EDIT or DELETE /etc/X11/xorg.conf file in the terminal window so my Ubuntu will boot properly or boot in Safe Mode so I can edit from there.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu xserver-xorg-video-intel Edit question
Assignee:
No assignee Edit question
Solved by:
Emre AYTAÇ
Solved:
Last query:
Last reply:
Revision history for this message
Best Emre AYTAÇ (eaytac) said :
#1

If you want to edit, you may use nano editor:

sudo nano /etc/X11/xorg.conf

After editing your file, Ctrl-O (not zero) to save your file, Ctrl-X to exit.

If you want to delete:

sudo rm /etc/X11/xorg.conf

But I suggest not to delete the file, you should think to rename file:

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf-backup

Revision history for this message
Wyn (myelwyn) said :
#2

It work, thank you very much Emre AYTAÇ!

I was thinking that I will have to re-install Ubuntu, thanks for saving me a lot of time.

*Free Mind / Free Software

Revision history for this message
Wyn (myelwyn) said :
#3

Thanks Emre AYTAÇ, that solved my question.