LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Getting the resolution right in xorg.conf (http://www.linuxquestions.org/questions/linux-software-2/getting-the-resolution-right-in-xorg-conf-317105/)

slimjim 04-25-2005 07:53 PM

Getting the resolution right in xorg.conf
 
Hi all,

I'm trying to get my second PC's display to a resolution of 1280x1024.

lspci tells me the graphics card is a Matrox Graphics, Inc. MGA 1064SG [Mystique] (rev 03)

http://www.guru3d.com/review/mystique.html tells me the card supports 1280x1024 at a colour depth of 16 bits/pixel.

The monitor is an Eizo F57, which has a recommended resolution of 1280 dots x 1024 lines @ 89 Hz, and certainly used to run at that resolution on this (my main) PC.

xorg.conf invites me to 'feel free to try resolutions such as "1152x864", "1280x1024"', in a comment.

So, I did. I plugged in the appropriate values for the card and the monitor into xorg.conf:

Code:

Section "Monitor"

    Identifier  "Eizo"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.

    HorizSync  30-96

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.

    VertRefresh 50-160

EndSection

and ..

Code:

Section "Screen"
    Identifier  "Screen 1"
    Device      "VESA Framebuffer"
    Monitor    "Eizo"

# If your card can handle it, a higher default color depth (like 24 or 32)
# is highly recommended.

  DefaultDepth 16

# "1024x768" is also a conservative usable default resolution.  If you
# have a better monitor, feel free to try resolutions such as
# "1152x864", "1280x1024", "1600x1200", and "1800x1400" (or whatever your
# card/monitor can produce)

    Subsection "Display"
        Depth      8
        Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth      16
        Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth      24
        Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth      32
        Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection

EndSection


.. however, my box steadfastly refuses to display at any other resolution than 1024x768!

/var/log/Xorg.0.log tells me:

Code:

(II) VESA(0): Supported VESA Video Modes:                           
(II) VESA(0): 720x400@70Hz
(II) VESA(0): 720x400@88Hz
(II) VESA(0): 640x480@60Hz
(II) VESA(0): 640x480@67Hz
(II) VESA(0): 640x480@72Hz
(II) VESA(0): 640x480@75Hz
(II) VESA(0): 800x600@56Hz
(II) VESA(0): 800x600@60Hz
(II) VESA(0): 800x600@72Hz
(II) VESA(0): 800x600@75Hz
(II) VESA(0): 832x624@75Hz
(II) VESA(0): 1024x768@87Hz (interlaced)
(II) VESA(0): 1024x768@60Hz
(II) VESA(0): 1024x768@70Hz
(II) VESA(0): 1024x768@75Hz
(II) VESA(0): 1280x1024@75Hz
(II) VESA(0): 1152x870@75Hz

.. which seems promising, but also mentions, later on::

Code:

(II) VESA(0): Total Memory: 32 64KB banks (2048kB)
(II) VESA(0): Eizo: Using hsync range of 30.00-96.00 kHz
(II) VESA(0): Eizo: Using vrefresh range of 50.00-160.00 Hz
(II) VESA(0): Not using mode "1280x1024" (no mode of this name)
(II) VESA(0): Not using mode "1152x864" (no mode of this name)


.. anyone got any insight? I'm scratching my head at the moment! The "no
mode of this name" message would seem to be a useful clue but I couldn't
find anything particularly helpful when I googled.


Cheers
James

--
Dig It : a forum for European Beatles fans - http://beatles.dyndns.org/

Harmaa Kettu 04-26-2005 02:03 PM

Quote:

(II) VESA(0): Total Memory: 32 64KB banks (2048kB)
If this is correct, the card does not have enough memory for the mode you want (1280*1024*2 bytes/pixel = 2.5MB).
Also, the vesa driver is slow and supports only 60hz refresh rate, so you may want to use mga instead. Generate a new xorg.conf by running "X -configure" as root and copy the "Device" section from that to your old xorg.conf file.

Another trick that often helps with resolution/refresh rate problems is adding
Code:

Option "NoDPMS"
to the "Monitor" Section of X config file.


All times are GMT -5. The time now is 05:52 PM.