Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Modeline for Samsung LE-32T51
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
perga
n00b
n00b


Joined: 18 Sep 2004
Posts: 68
Location: SWEDEN

PostPosted: Sun Apr 23, 2006 1:57 pm    Post subject: Modeline for Samsung LE-32T51 Reply with quote

I have a new Samsung LE-32T51 LCD TV. The manual states that the best mode for PC (VGA) connection is 1360x768 @ 60 Hz. I can get 1024x768 working without problems but where do I find a modeline for 1360x768?

I have found a number of pages dealing with this problem and they recommend gtf, but the gtf generated modeline does not work.
_________________
perga
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54631
Location: 56N 3W

PostPosted: Sun Apr 23, 2006 4:43 pm    Post subject: Reply with quote

NeddySeagoons' Rough Guide to Xorg Modelines

Why do you need a modeline (or more than one modeline) ?
Xorg comes preprogrammed with most of the standard VESA graphics modes. At the moment, they all produce a 4:3 aspect ration image.
More users are installing wide screen hardware and want to use all of their display surface, without cropping or bars at the side.

Xorg can generate almost any arbitary resolution and refresh rate you would like, you only need describe to Xorg how to do it.
This is what the modeline does. It has the form
Code:
ModeLine "name" DotClock hdisp hsyncstart hsyncend htotal vdisp vsyncstart vsyncend vtotal Flags HSkew VScan

For most users
Code:
Flags HSkew and VScan
can be omitted and will not be covered further here. If you need a mode line for TV-Out, read man xorg.conf. You will need to set interlace, at least, which is one of the flags.

Using 1360x768@60 Hz as an example, we can fill in

Code:
ModeLine "1360x768@60" DotClock 1360 hsyncstart hsyncend htotal 768 vsyncstart vsyncend vtotal
Thats the easy bit.
The name is arbitary but must be unique. We need to use it to refer to the modeline later. Use of descriptive nanes is encoraged.
The rest of the numbers are difficult to calculate buy hand but there are a number of modeline generators on the web. I have used this one to contine the example.
Filling in the basic configuration and pressing calculate gives
Code:
Modeline "1360x768@60" 84.50 1360 1392 1712 1744 768 783 791 807

Note that this requires a
Code:
Horizontal sync frequency: 48.45 kHz
Check that this is within the range accepted by your display.

Now we have out modeline, what do we do with it ?
I recommend adding it to your
Code:
Section Monitor
in /etc/X11/xorg.conf for the display that it will be applied to. This prevents it being used with other displays if you have several attached. Like this
Code:
Section "Monitor"
    Identifier  "CTX 950ST"
    VertRefresh 50.0 - 160.0
    HorizSync   30.0 - 95.0
    Modeline "1360x768@60" 84.50 1360 1392 1712 1744 768 783 791 807
    Option      "dpms"
EndSection
Your section "Monitor" will be different to mine - its just an illustration.

Thats defined the modeline to Xorg, to actually use it we need to edit the Section "Screen" too.
Code:
Section "Screen"
    Identifier  "Screen 1"
    Device      "NVIDIA GeForce"
    Monitor     "CTX 950ST"
    DefaultDepth 16
    Subsection "Display"
        Depth       16
        Modes      "1360x768@60" "1024x768" "800x600" "640x480" "512x384" "416x312" "400x300" "320x240"
        ViewPort    0 0
    EndSubsection
EndSection
The first Identifire in the Modes statement ("1360x768@60") is our new widescreen mode, which is what Xorg will use at startup.
Again its an illustration based on my xorg.conf - yours will differ.
For most users, this will 'Just Work' but if the HorizSync or VertRefrsh is very close to the limits of your display, the rounding the Xorg does can push the Modeline setting over the boundary.
You fix that by going back to the modeline generator, deleteing the refresh rate and making a small (0.1) change to the pixel clock and recalculating the mode line. Put the new numbers in the modeline statement and try again.

You may define and use further modelines in the same way.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
perga
n00b
n00b


Joined: 18 Sep 2004
Posts: 68
Location: SWEDEN

PostPosted: Sun Apr 23, 2006 7:36 pm    Post subject: Reply with quote

Many thanks! It seems to work with the modeline generator you indicated, though the picture quality could be better. I'll continue experimenting
_________________
perga
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54631
Location: 56N 3W

PostPosted: Wed Apr 26, 2006 4:56 pm    Post subject: Reply with quote

perga,

You will get the best performace from an LCD when the displayed resolution matches the 'native' resolution,
You can test minor adjustments to your active modeline with xvidtune, which can change the numbers while you watch.

For best performace use a DVI interface, not 15 pin VGA.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum