3

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.

2 Answers 2

3

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

   xrandr -s 640x480 
2
  • Tried this, nothing changes
    – TimothyP
    Sep 26, 2012 at 15:40
  • works for me on Ubuntu 16.04.4 LTS
    – Dimitry K
    May 16, 2018 at 22:06
1

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.

2
  • 1
    I do not have a gdm folder in my /etc folder
    – TimothyP
    Sep 27, 2012 at 7:11
  • Can't find this folder on Ubuntu 16.04.4 LTS
    – Dimitry K
    May 16, 2018 at 22:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .