Stuck with the resolution 640×480
We have an old machine that I tried a few days ago. It has Ubuntu 8.04 on it with an integrated Intel graphic card. I remember I was using it with a resolution 1024×768 but now it started in 640×480. Under System -> Settings -> Screen Resolution there was only one option: 640×480. How to switch to 1024×768?
I checked the config file /etc/X11/xorg.conf but it only had one entry with 640×480. So I decided to regenerate this file from scratch.
# First, close all applications under Gnome. # Go to "deep console" with CTRL+ALT+F1. # Then stop the X: $ sudo /etc/init.d/gdm stop $ sudo Xorg -configure # it will create /root/xorg.conf.new # backup your current xorg.conf file: $ sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak # install the new config file: $ sudo mv /root/xorg.conf.new /etc/X11/xorg.conf
Here is the
xorg.conf.new file I got. As can be seen, resolutions are set “0 0” everywhere, so I had to customize it a bit.
I wanted to use my monitor in color depths 16 or 24, so I modified these lines:
SubSection "Display" Viewport 1024 768 Depth 16 EndSubSection SubSection "Display" Viewport 1024 768 Depth 24 EndSubSection
Here is the new
xorg.conf config file.
Now restart X and the resolution should be 1024×768:
$ sudo /etc/init.d/gdm start