Switch to console mode:
Alt+Ctrl+F1
Kill x server:
sudo service lightdm stop
Generate new xorg.conf file:
sudo X -configure (this will create xorg.conf.new file in your current directory)
Rename and move:
sudo mv xorg.conf.new /etc/X11/xorg.conf
Return to GUI:
sudo start lightdm