[mythtv-users] Ahh - Evil xorg and modelines

Damian Surr damian at gingermagic.co.uk
Fri Jun 8 08:52:01 UTC 2007


William Munson wrote:
> Damian Surr wrote:
>   
>> William Munson wrote:
>>   
>>     
>>> Damian Surr wrote:
>>>   
>>>     
>>>       
>>>> and here's my xorg.conf:
>>>>
>>>>
>>>>   
>>>>     
>>>>       
>>>>         
>>> --------snip--------------
>>>   
>>>     
>>>       
>>>> #ModeLine "1024x768" 118.1 1024 1096 1208 1392 768 769 772 816
>>>> #ModeLine "1024x768" 116.8 1024 1096 1208 1392 768 769 772 815
>>>> #ModeLine "1024x768" 115.7 1024 1096 1208 1392 768 769 772 815
>>>> #Modeline "1024x768 at 60" 64.56 1024 1056 1296 1328 768 783 791 807
>>>> #Modeline "1024x768 at 70" 78.36 1024 1056 1352 1384 768 783 792 807
>>>> Modeline "1024x768 at 75" 85.56 1024 1056 1376 1408 768 782 792 807
>>>> #Modeline "1024x768 at 85" 100.94 1024 1056 1432 1464 768 782 793 807
>>>> #    Modeline "1024x768 at 60" 64.56 1024 1056 1296 1328 768 783 791 807
>>>> # 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
>>>> #  Modeline "1024x768_60.00"  64.11  1024 1080 1184 1344  768 769 772 
>>>> 795  -HSync +Vsync
>>>> #    Modeline     "1024x768" 80.71 1024 1080 1192 1360 768 769 772 802
>>>> #    Modeline     "1024x768" 79.52 1024 1080 1192 1360 768 769 772 801
>>>> #    Modeline     "1024x768" 78.43 1024 1080 1192 1360 768 769 772 801
>>>> # Modeline     "800x600" 48.18 800 840 920 1040 600 601 604 626
>>>> # Modeline     "800x600" 47.53 800 840 920 1040 600 601 604 626
>>>> # Modeline     "800x600" 46.87 800 840 920 1040 600 601 604 626
>>>> # Modeline     "768x576" 44.83 768 808 888 1008 576 577 580 601
>>>> # Modeline     "768x576" 43.52 768 800 880 992 576 577 580 601
>>>> # Modeline     "768x576" 42.93 768 800 880 992 576 577 580 601
>>>> # Modeline     "640x480" 30.25 640 664 728 816 480 481 484 501
>>>> # Modeline     "640x480" 29.84 640 664 728 816 480 481 484 501
>>>> # Modeline     "640x480" 29.43 640 664 728 816 480 481 484 501
>>>>     Option         "DPMS"
>>>> EndSection
>>>>
>>>>   
>>>>     
>>>>       
>>>>         
>>> ----------snip-----------
>>>   
>>>     
>>>       
>>>> Section "Screen"
>>>>     Identifier     "Default Screen"
>>>>     Device         "nVidia Corporation NV34 [GeForce FX 5200]"
>>>>     Monitor        "BenQ W100"
>>>>     DefaultDepth    24
>>>>     Subsection "Display"
>>>>             Depth       24
>>>>                 Modes       "1024x768"
>>>>     EndSubsection
>>>> EndSection
>>>>   
>>>>     
>>>>       
>>>>         
>>> There is a problem here. In the top snip you define only one active modeline
>>>
>>> Modeline "1024x768 at 75" 85.56 1024 1056 1376 1408 768 782 792 807
>>>
>>> but in the "Screen" section you tell xorg to use "1024x768" which is not 
>>> defined and is not the same as "1024x768 at 75". Another thing that may be 
>>> an issue is the use of @ in your modeline. I may be all wrong here but 
>>> changing the modeline identifier to "1024x768_75" may make things happier.
>>>
>>> Modeline "1024x768_75" 85.56 1024 1056 1376 1408 768 782 792 807
>>>
>>>
>>> Section "Screen"
>>>     Identifier     "Default Screen"
>>>     Device         "nVidia Corporation NV34 [GeForce FX 5200]"
>>>     Monitor        "BenQ W100"
>>>     DefaultDepth    24
>>>     Subsection "Display"
>>>             Depth       24
>>>                 Modes       "1024x768_75"
>>>     EndSubsection
>>> EndSection
>>>   
>>>     
>>>       
>> Thanks for trying, but I really don't think that's the problem. I've 
>> tried every combination of lots of different modelines and tried only 
>> specifying one, specifying two etc. nothing seems to get me anywhere.
>>
>> I wish I know someone with a BenQ W100 who had it working well under 
>> Linux :-)
>>   
>>     
> This mismatch of modeline identifiers is ABSOLUTELY YOUR 
> PROBLEM!!!!!!!!!!!!!!!!!!!!!
>
> Until you fix your config to have EXACTLY THE SAME string in both places 
> IT WILL NOT WORK!!!!!!!!
>
> Did I get your attention? So calm down, mix yourself a strong drink and 
> try it again in the morning. Linux is all about things exactly matching. 
> That includes Capitalization and special characters. Linux also reserves 
> some special characters ($%*@) for special functions and they are NOT 
> ALLOWED in names (Like the name of your modeline). Dash ( - ) and 
> underscore ( _ ) are allowed.
>
> Bill
>   
Hello Bill,

Sorry, I wasn't meaning to be dismissive of your pointing the problem in 
my files. It just wasn't the main problem I'd been having as I'd been 
very careful with those things all day. I just made the mistake of 
posting my files when I was getting desperate and trying random stuff .. 
that's obviously of no use to anyone!

I'll stick to just specifying once modeline, in the form "1024x768_75" 
in both places.

The @ symbol comes from the mode generator I was using, so they should 
be told if that's a problem. Maybe it's fine though, can't tell from my 
misuse of it above.

Out of interest, you know how people with a friendly monitor can specify 
something like:

Modes       "1024x768" "800x600" "640x480"

without any modelines?

Well if I use (for example):

Modeline "1024x768_60" 64.56 1024 1056 1296 1328 768 783 791 807
Modeline "1024x768_70" 78.36 1024 1056 1352 1384 768 783 792 807
Modeline "1024x768_75" 85.56 1024 1056 1376 1408 768 782 792 807
Modeline "1024x768_85" 100.94 1024 1056 1432 1464 768 782 793 807
Modeline "800x600_x" 48.18 800 840 920 1040 600 601 604 626
Modeline "640x480_y" 30.25 640 664 728 816 480 481 484 501

and then:

Modes       "1024x768_60" "1024x768_70" "1024x768_75" "1024x768_85" "800x600_x" "640x480_y"

would that try all of those mode lines until it found one that worked?

That was one of the things I was trying towards the end of the day on Wednesday. Trying to find a way to try lots of modelines rather than changing a value every time and starting again, but admittedly a bit daft to do blind without knowing if it'd work or just confuse things more.

Cheers
Damian



More information about the mythtv-users mailing list