Home > ubuntu > Stuck with the resolution 640×480

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
   SubSection "Display"
      Viewport   1024 768
      Depth     24

Here is the new xorg.conf config file.

Now restart X and the resolution should be 1024×768:

$ sudo /etc/init.d/gdm start

How to create xorg.conf in Ubuntu 9.10

  1. Pete
    September 5, 2012 at 09:42

    you sir are a king! Be trying to find out how to fix this in an easy way, while browsing in 640×480 of course and your “fix” took me less than a minute :)

    • September 5, 2012 at 09:43

      Thanks. It’s always a pleasure to get some positive feedback from the fans :)

  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: