Mar 16 2008
How to automatically update your xorg.conf file in Ubuntu 8.04 Hardy Heron.
Every now and then something will happen to your Ubuntu system that will break your xorg.conf file: module updates, a recovery session gone bad, things of the sort, so that the next time you boot your Ubuntu system you find your monitor’s resolution to be configured to 800×600 instead of the 1680×1050 pixels you actually want.
At this point your choices are: to edit the xorg.conf file manually (which is on the tricky side of things, specially now that Ubuntu’s xorgs are “minimal” and a bit more touchy), to reinstall your system or to run an update on your xorg.conf. This last option may or may not solve your problem, depending on what the actual problem is, but is quick and much less risky or time consuming than the other two.
Open a terminal and type
sudo dpkg-reconfigure -phigh xserver-xorg
enter your password, wait for the thing to be done, restart the Xorg session (reboot will do the trick or Ctrl+Alt+Backspace) and see what happens.
By the way: once you have a fully funcional system, keep a copy of your xorg.conf file somewhere safe and at hand so that you don’t need to do this stuff again.
