Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I set and limit the resolution in Ubuntu 12 to 640x480 There's not much in the xorg.conf file anymore, so I'm guessing this is no longer the place to do it?

I can't do it using the GUI either because it doesn't show me the 640x480 option.

While setting the resolution the computer is connected to a normal screen but later it will be connected to a screen that only supports 640x480 and doesn't report its supported modes to the computer.

The only thing in my xorg.conf (by default) is this:

Section "Device"
        Identifier      "Default Device"
        Option  "NoLogo"        "True"
EndSection

Update, in response to Kamil's answer:

I do not have the gdm folder, but I get the idea
However if I execute those commands I get the following

xrandr --newmode "640x480_60.00"   23.75  640 664 720 800  480 483 487 500 -hsync +vsync
xrandr: Failed to get size of gamma for output default
X Error of failed request:  BadName (named color or font does not exist)
Major opcode of failed request:  153 (RANDR)
Minor opcode of failed request:  16 (RRCreateMode)
Serial number of failed request:  19
Current serial number in output stream:  19
root@timothy-desktop:~# xrandr --addmode default 640x480_60.00
xrandr: Failed to get size of gamma for output default
root@timothy-desktop:~# xrandr --output default --mode 640x480
xrandr: Failed to get size of gamma for output default

Note that VGA1 is default in my case.

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

To set your default resolution as 640x480

  1. Open the terminal Ctrl+Alt+T and issue:

    cvt 640 480 
    
  2. Copy the output

  3. Open the configuration file:

    gksudo gedit /etc/gdm/Init/Default
    
  4. Search for :

    PATH="/usr/bin:$PATH"  
    OLD_IFS=$IFS
    
  5. Add the output you just copied in step 2, for example:

    xrandr --newmode "640x480_60.00"   23.75  640 664 720 800  480 483 487 500 -hsync +vsync
    xrandr --addmode VGA1 640x480_60.00
    xrandr --output VGA1 --mode 640×480
    
  6. Save and reboot.

share|improve this answer
    
I do not have a gdm folder in my /etc folder –  TimothyP Sep 27 '12 at 7:11
add comment

To set your resolution to 640x480. Open a terminal and write:

   xrandr -s 640x480 
share|improve this answer
    
Tried this, nothing changes –  TimothyP Sep 26 '12 at 15:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.