Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] New HD monitor stretches everything. How to teach Xorg?
Date: Tue, 24 Aug 2010 23:00:32
Message-Id: AANLkTikmM4x2TN44yh7t=v7xwNZw_KTx27CN+3xaMP+j@mail.gmail.com
In Reply to: Re: [gentoo-user] New HD monitor stretches everything. How to teach Xorg? by Dale
1 On Tue, Aug 24, 2010 at 5:37 PM, Dale <rdalek1967@×××××.com> wrote:
2 > Paul Hartman wrote:
3 >>
4 >> On Tue, Aug 24, 2010 at 5:07 PM, Kevin O'Gorman<kogorman@×××××.com>
5 >>  wrote:
6 >>
7 >>>
8 >>> Yah, I might have some luck with that.  Since I'm years out of practice
9 >>> fooling with this stuff (last seen in 2002) can someone point me at the
10 >>> tools for
11 >>> 1) Computing a modeline (I understand the quality varies a lot)
12 >>> 2) Configuring an xorg.conf
13 >>>
14 >>
15 >> Check out x11-apps/amlc -- it has an interactive modeline generator
16 >> where you tell it the aspect ratio&  size of your screen and it spits
17 >> out modelines for you.  You'll still need to fill in the
18 >> HSync/VSync/Clock speed stuff.
19 >>
20 >>
21 >>
22 >
23 > Does this help any?
24 >
25 > Section "Screen"
26 >    Identifier     "Screen0"
27 >    Device         "Card0"
28 >    Monitor        "Monitor0"
29 >    Option         "DPMS" "TRUE"
30 >    SubSection     "Display"
31 >        Viewport    0 0
32 >        Depth       24
33 >        Modes      "1280x1024" "1024x768" "800x600"
34 >    EndSubSection
35 >    SubSection     "Display"
36 >        Viewport    0 0
37 >        Modes      "1280x1024" "1024x768" "800x600"
38 >    EndSubSection
39 >    SubSection     "Display"
40 >        Viewport    0 0
41 >        Depth       4
42 >        Modes      "1280x1024" "1024x768" "800x600"
43 >    EndSubSection
44 >    SubSection     "Display"
45 >        Viewport    0 0
46 >        Depth       8
47 >        Modes      "1280x1024" "1024x768" "800x600"
48 >    EndSubSection
49 >
50 > That's just a part of my xorg.conf.  I don't use hal and don't like udev
51 > doing mine so I still got my full xorg.conf file.  If you need more, just
52 > let me know.  Heck, I'll post the whole thing if it will help you any.
53 >
54 > Also, have you tried running "X -configure" yet?  I used it on another
55 > machine and it worked pretty well.
56 >
57 > Dale
58
59 After creating a basic xorg.conf the modeline should go in the
60 "Monitor" section. I don't use a modeline now but the only example I
61 have from my xorg.conf archives are these:
62
63 Section "Monitor"
64 # 2048x1152 @ 50.00 Hz (GTF) hsync: 59.30 kHz; pclk: 162.24 MHz
65 Modeline "2048x1152_50.00" 162.24 2048 2176 2392 2736 1152 1153
66 1156 1186 -HSync +Vsync
67 # 2048x1152 @ 60.00 Hz (GTF) hsync: 71.52 kHz; pclk: 197.97 MHz
68 Modeline "2048x1152_60.00" 197.97 2048 2184 2408 2768 1152 1153
69 1156 1192 -HSync +Vsync
70 EndSection
71
72 And then in the Screen section like Dale posted you'd use for example
73 "2048x1152_60.00" as your modeline (or whatever you decided to entitle
74 your modes).
75
76 At least that's how it used to work. With modern video cards & modern
77 Xorg/Gnome/KDE it does a pretty good job of autodetecting that kind of
78 thing so I haven't had to worry about it in a long time. :)

Replies

Subject Author
Re: [gentoo-user] New HD monitor stretches everything. How to teach Xorg? dhk <dhkuhl@×××××××××.net>