Try this. This would work on Debian but I'm
not too much sure about Ubuntu.
Code:
dpkg-reconfigure xserver-xorg
I know Ubuntu doesn't have the default root account so you might want to use this instead
Code:
sudo dpkg-reconfigure xserver-xorg
Note: Ubuntu is based on Debian.