Bug 20669

Summary: [945GM TV] TV_FORMAT PAL returns NTSC-modes
Product: xorg Reporter: Peter Hjalmarsson <xake>
Component: Driver/intelAssignee: Wang Zhenyu <zhenyu.z.wang>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: haien.liu
Version: unspecifiedKeywords: NEEDINFO
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
The Xorg logfile
none
The xorg.conf file
none
output from xrandr --verbose none

Description Peter Hjalmarsson 2009-03-15 05:04:51 UTC
Using server version 1.6 and driver 2.6.99.902 if I in xorg.conf set TV_FORMAT PAL the output of xrandr --verbose will change its output to 
	TV_FORMAT:	PAL

However it only presents me with NTSC-modes,
  480i/60 (0xa4)   12.0MHz
        h: width   640 start  664 end  736 total  760 skew    0 clock   15.8KHz
        v: height  480 start  484 end  492 total  525           clock   30.0Hz
  480p/60 (0xa5)   23.9MHz
        h: width   640 start  664 end  736 total  760 skew    0 clock   31.5KHz
        v: height  480 start  484 end  492 total  525           clock   60.0Hz

and looking in Xorg.log I cannot find any references to pal, but I can find this:
(II) intel(0): Mode for pipe A:
(II) intel(0): Modeline "NTSC 480i"x0.0  107.52  1280 1368 1496 1712  1024 1027 1034 1104 (62.8 kHz)
(II) intel(0): Adjusted mode for pipe A:
(II) intel(0): Modeline "NTSC 480i"x0.0  108.00  1280 1368 1496 1712  1024 1027 1034 1104 (63.1 kHz)
(II) intel(0): chosen: dotclock 108000 vco 2160000 ((m 90, m1 14, m2 8), n 2, (p 20, p1 2, p2 10))
(II) intel(0): Detected S-Video TV connection


For a PAL the choice should be 576i/50 or 576i50.
You may choose the latter, since xrandr does not seem to play well with modes having '/' in their names.
Comment 1 Wang Zhenyu 2009-03-15 18:52:00 UTC
(II) intel(0): Mode for pipe A:
(II) intel(0): Modeline "NTSC 480i"x0.0  107.52  1280 1368 1496 1712  1024 1027
1034 1104 (62.8 kHz)

This is the mode only used in load detect, so you can ignore it.

Could you attach X log? and what's your environment? using kms or not? 
I have no idea where those 480i/60 came from. You should only see mode name like
"1024x768", "800x600", etc. in xrandr.
Comment 2 Peter Hjalmarsson 2009-03-16 00:43:58 UTC
Created attachment 23899 [details]
The Xorg logfile

Not using kms (tried it, does not seem to go well with TV at all, but that is a later bug).
Comment 3 Peter Hjalmarsson 2009-03-16 00:44:27 UTC
Created attachment 23900 [details]
The xorg.conf file
Comment 4 Peter Hjalmarsson 2009-03-16 00:47:50 UTC
Created attachment 23901 [details]
output from xrandr --verbose

As you can see the modes you talked about is there, but also a list of other modes as you can see.

I cannot choose them with xrandr ("xrandr: cannot find mode 480p/60"). But as I see it: if I should have native TV-modes there, then it is not the ones for NTSC I should have.
Comment 5 Wang Zhenyu 2009-03-16 01:01:55 UTC
I don't understand where does those "480i/60" modes come from, as intel TV will only add modes for current TV_FORMAT from following table:
        {"640x480", 640, 480},
        {"800x600", 800, 600},
        {"848x480", 848, 480},
        {"1024x768", 1024, 768},
        {"1280x720", 1280, 720},
        {"1280x1024", 1280, 1024},
        {"1920x1080", 1920, 1080},
That's the only modes we can support for TV. Do you have some script to add those modes by yourself?
Just don't use them. ;)

Actually to use 480i or other HD formats, you should have 9-pin S-Video and a S-video to component converter, then use our new option "TV_Connector" to set 'component' type, Then you can use HD formats through TV_FORMAT property.
Comment 6 Peter Hjalmarsson 2009-03-16 01:09:41 UTC
Oooops.

After another go it seems like those modes where actually added by my MC-software, set to start by default.
Comment 7 Wang Zhenyu 2009-03-16 01:22:08 UTC
ok, close this.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.