Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am building a Linux Live-Distro.

My xorg.conf looks like this:

Section "Monitor"

    Identifier   "Monitor0"
    Option       "dpms" "off"
    Option       "dpms" "false"
    DisplaySize             349 196

    #does NOT work
    PreferredMode "1360x768"

Section "Screen"

    Identifier  "Screen0"
    Device  "Card0"
    Monitor "Monitor0"
    DefaultColorDepth 24
    SubSection "Display"
        Depth   24
        Modes "1360x768" "1280x720" "1024x768" "800x600"

so if I plug in a (Test-)Full-HD TV every times it uses 1920x1080. When changing

Modes "1360x768" "1280x720" "1024x768" "800x600"


Modes "1280x720" "1360x768" "1024x768" "800x600"

the TV uses 1280x720.

Is it possible to force switching the modes, as defined in "Screen"-section?

My idea is the xorg-server tries to switch into "1360x768", if not working switch to "1280x720", after that 1024x768 and so on (as defined in xorg.conf).

Bets regards

share|improve this question

migrated from Aug 1 '11 at 13:53

This question came from our site for professional and enthusiast programmers.

Why ship an xorg.conf with a static list of modes instead of just leaving it out and letting Xorg autoconfigure? – alanc Aug 2 '11 at 1:13

Modern Xorg doesn't require a xorg.conf at all. I autodetects all connected hardware (display devices, screens, input devices) and configures apropriately at runtime. Even hotplugging is supported.

share|improve this answer

You must log in to answer this question.