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

I'm currently trying to configure my xorg.conf to letterbox screen resolutions smaller than the native resolution of my display (1680x1050) so that I can play older games full screen without distortion. I've found that there is a way to do this, which involves adding metamodes to xorg.conf, but documentation is minimal so I'm a little scared to start mucking with xorg.conf without further input. For the sake of example, say I have a game which runs at a native resolution of 1024x768. What would I add in order to center and letterbox that?

Here is my xorg.conf:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"

Section "Files"

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24

And here are a couple links which might come in handy:

A similar question: http://www.nvnews.net/vbulletin/showthread.php?t=184968

Documentation: http://us.download.nvidia.com/XFree86/Linux-x86_64/302.17/README/configtwinview.html#metamodes


share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.