Ubuntu – How to edit the xorg.conf

14.04cudanvidiaxorg

My development environment Ubuntu14.04

I use Ubuntu 14.04 usb boot. When I installed CUDA7.0, the black screen appeared. But, I can enter the console mode.

so, I tried to edit the /etc/X11/xorg.conf. but, could not be edited in readonly.

I tried it with "sudo", "su", "su – " by vim. The results of "ls" , it is shown below.

#ls -ls

-rw-r--r-- root root

I can't understand that this file can't be edited by the root authority.

#lsof |grep xorg.conf

there is nothing.

and I tried with recovery mode, It was the same situation. Please advice somebody.

Best Answer

The xorg.conf does not exist by default any more. You CAN create one though.

Boot into recovery mode and select Root Shell. Then run:

X -configure

Then:

cp /root/xorg.conf.new /etc/X11/xorg.conf

Reboot and you can edit the new Xorg.conf.

You don't even need to reboot, just do sudo /etc/init.d/gdm restart

Related Question