A quick google finds what I couldn't remember earlier
sudo Xorg -configure
will detect your hardware and write an initial xorg.conf file for you, which you can then tweak. Dunno if this will help for your situation though.
A bit of googling found this link for FreeBSD, which I know is not what you're running, but explains what to do altering the xorg.conf file.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html
A bit more googling might find a more ubuntu-relevant equivalent. Perhaps turning off the auto-detect behaviour might help?
Steve