Ubuntu – How to force a resolution of 1024×768

resolutionxorg

back in ubuntu 9, maximum resolution supported was 960×600, by editing xorg.conf i was able to get 1024×768 resolution. i recently installed ubuntu 11.10.. now again maximum resolution i can get in display panel is 960×600 .. i tried editing xorg but there was no xorg and when i tried to create one access was denied.

I'm new to linux commands so, step by step help will be appreciated.

I added /etc/X11/xorg.conf containing:

Section "Device"
    Identifier    "Configured Video Device"
EndSection

Section "Monitor"
    Identifier    "Configured Monitor"
    HorizSync       30.0-62.0
    VertRefresh     50.0-70.0
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Monitor        "Configured Monitor"
    Device        "Configured Video Device"
    DefaultDepth    24
    SubSection "Display"
        Depth    24
        Modes     "1024x768" "800x600"
    EndSubSection
EndSection 

Best Answer

  1. Enter the command below in your terminal:

    gksu gedit /etc/X11/xorg.conf
    
  2. Copy and paste the following options into that file:

    Section "Device"
        Identifier    "Configured Video Device"
    EndSection
    
    Section "Monitor"
        Identifier    "Configured Monitor"
        HorizSync       30.0-62.0
        VertRefresh     50.0-70.0
    EndSection
    
    Section "Screen"
        Identifier    "Default Screen"
        Monitor        "Configured Monitor"
        Device        "Configured Video Device"
        DefaultDepth    24
        SubSection "Display"
            Depth    24
            Modes     "1024x768" "800x600"
        EndSubSection
    EndSection 
    
  3. Save your edits, and restart (log out and back in or reboot).

Enjoy.