A DIY XFree86 1280x1024 Modeline for the IIYAMA AS4314UT TFT Monitor

Jim Jackson <jj@franjam.org.uk>

This document can be found at http://www.franjam.org.uk/linux/tftmodeline.html

The Modeline

IIYAMA AS4314UT TFT Monitor in full 1280x1024 resolution

Modeline "1280x1024" 135 1280 1300 1612 1688 1024 1025 1028 1066

Why DIY?

Simple - I couldn't get X to work in full resolution 1280x1024.

AND - Learning is fun :-)

First, I'm no X Xpert. None of the 1280x1024 modelines in the default Debian XF86config file worked. I scoured the WWW and gathered several more modelines to try, but no success. So then I looked for info on rolling your own.

Some helpful references

Just what do the numbers in the modeline mean then?

Modeline "1280x1024" 135 1280 1300 1612 1688 1024 1025 1028 1066

What details did I have from the Monitor Manual?

How to calculate the modeline numbers needed?

	  Dot Clock Freq/Horiz. Freq = 135000000/79980=1688

	  Horiz Freq./Vertical Sync. Freq. = 79980/75.02=1066

The modeline so far......

Modeline "1280x1024" 135 1280 ... ... 1688 1024 ... ... 1066

What to do now. The references talk about "porch" and "synch pulse" times etc, which weren't too helpful as the incomplete manual didn't give any of these, or indeed anything else. We are now in the realms of guesswork.

One reference mentioned just adding 3 to the vertical screen lines then 2 to give the 2 remaining vertical lines, so I got.....

Modeline "1280x1024" 135 1280 ... ... 1688 1024 1027 1029 1066

And there was some talk of a "sync" pulse of 3.8usec, or 3800/7.4074=410 pixels. There were also warnings that some graphics cards need all horizontal pixel counts to be multiples of 8, and some talk of 32 or so pixels at each side of the sync pulse. So I fudged and came up with.....

Modeline "1280x1024" 135 1280 1312 1656 1688 1024 ... ... 1066

But that's not the modeline I gave at the start!

Ok. I edited my XF86Config file with this prototype modeline, and fired up.......

Got a picture...

It was the right size...

But wasn't quite positioned correctly.....

So I fired up xvidtune....

Fine Tune with xvidtune

Get pencil and paper and note the HSyncStart/End and the VSyncStart/End values, and any values you test. You will need to edit these into your modeline.

Leave the HTotal and VTotal alone, the values already calculated should be correct. Try the Left | Right and Up | Down buttons, these modify the start and stop positions of the Horizontal and Vertical sync pulses.

xvidtune seemed to vary values a few pixels at a time. If you cannot get it spot on, then resort to your favorite configuration tools - mine's 'vi' - and edit best guess interpolated values into your modeline, and restart X. This was iterated to get the best fit.

HomePage http://www.franjam.org.uk

This document was generated using AFT v5.095