[i915] Can't set TV_FORMAT anymore using xrandr (Fixed upstream)

Bug #246802 reported by Sebastian Keller
6
Affects Status Importance Assigned to Milestone
xf86-video-intel
New
Undecided
Unassigned
xserver-xorg-video-intel (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Since one of the last X updates in intrepid I can't get my TV working correctly on my i915 anymore.
Normally I use:
xrandr --output TV --set TV_FORMAT PAL --set BOTTOM 37 --set RIGHT 30 --set TOP 24 --set LEFT 54 --right-of LVDS --auto
to enable TV-output, but now I only get a black and white picture, because TV_FORMAT did not change to PAL. The other settings for the margins however applied correctly. Also there is no according error message neither in the terminal nor in Xorg.0.log.

My xorg.conf is a newly created one using dpkg-reconfigure after the Xorg update to 7.4, with the addition of a virtual display size in the screen section. (Pretty much the same like the one before, except for some mouse-stuff)

Also it makes no difference whether the TV is connected while X is starting or not.

00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)

Revision history for this message
Sebastian Keller (skeller) wrote :
Revision history for this message
Sebastian Keller (skeller) wrote :

I now found out that by changing TV_FORMAT the frequency gets changed, like it is supposed to, however the picture still stays b/w on my PAL tv.

xrandr --output TV --set TV_FORMAT NTSC-M --auto
xrandr --verbose
....
 TV_FORMAT: NTSC-M
....
  1024x768 (0x7e) 26.9MHz
        h: width 1024 start 1025 end 1088 total 1120 skew 0 clock 24.0KHz
        v: height 768 start 769 end 800 total 801 clock 30.0Hz

xrandr --output TV --set TV_FORMAT PAL --auto
xrandr --verbose
....
 TV_FORMAT: PAL
....
  1024x768 (0x8a) 22.4MHz
        h: width 1024 start 1025 end 1088 total 1120 skew 0 clock 20.0KHz
        v: height 768 start 769 end 800 total 801 clock 25.0Hz

Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel:
importance: Undecided → Medium
status: New → Confirmed
Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel:
status: Confirmed → Triaged
Revision history for this message
Sebastian Keller (skeller) wrote : Re: Can't set TV_FORMAT anymore using xrandr [Intrepid] [915GM]

I can't test it right now, as I currently don't have a TV, but this should be the patch to fix the issue:
http://gitweb.freedesktop.org/?p=xorg/driver/xf86-video-intel.git;a=commit;h=65cd0fbb018b2c18f1571dc0924c7d92eaf794ad

Revision history for this message
Bryce Harrington (bryce) wrote : Re: [i915] Can't set TV_FORMAT anymore using xrandr [915GM]

[This is an automatic notice.]

We'd like to forward your bug upstream, however upstream requires
that you first test it against their newer driver code.

To save you the effort of building the driver from source, we've built
packages for the driver and its new dependencies.

So you have a couple options:

 1. Download and test .debs for intrepid, from:
     https://edge.launchpad.net/~intel-gfx-testing/+archive

 -or-

 2. Download and test the Jaunty alpha-2 (or newer) Live CD,
     (which includes a beta of the new xserver 1.6 as well).
     See http://cdimage.ubuntu.com/releases/9.04/ for ISOs

Thanks ahead of time! You can simply reply to this email to report your
findings.

P.S., if you wish to forward your bug upstream yourself, please follow
these directions to do so:
  http://intellinuxgraphics.org/how_to_report_bug.html

Changed in xserver-xorg-video-intel:
status: Triaged → Incomplete
Revision history for this message
Sebastian Keller (skeller) wrote :

I think this one already got reported and fixed (see the patch linked in my last comment) upstream:
http://bugs.freedesktop.org/show_bug.cgi?id=14223
Currently I'm using Jaunty and TV-out doesn't work at all, so I can't verify if this Problem has been fixed, but according to comments in that bugreport it should be.

Changed in xserver-xorg-video-intel:
status: Incomplete → Confirmed
Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel:
status: Confirmed → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote : Re: [Bug 246802] Re: [i915] Can't set TV_FORMAT anymore using xrandr [915GM]

On Sat, Dec 20, 2008 at 02:02:23PM -0000, Sebastian Keller wrote:
> I think this one already got reported and fixed (see the patch linked in my last comment) upstream:
> http://bugs.freedesktop.org/show_bug.cgi?id=14223
> Currently I'm using Jaunty and TV-out doesn't work at all, so I can't verify if this Problem has been fixed, but according to comments in that bugreport it should be.

Great, thanks! We'll be pulling in a newer -intel after the first of
the year, which should include the patch.

Bryce

Changed in xserver-xorg-video-intel:
status: Unknown → Fix Released
Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel:
status: Triaged → In Progress
Revision history for this message
Sebastian Keller (skeller) wrote :

Looks like it has not been fixed upstream. I'm currently using jaunty and the drivers from https://launchpad.net/~xorg-edgers/+archive and despite TV_FORMAT being set to PAL the picture is still grayscale.

xserver-xorg-video-intel: 2:2.6.99.1+git20090102.1f61e979-0ubuntu0tormod

xrandr --verbose
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024
VGA disconnected (normal left inverted right x axis y axis)
 Identifier: 0x3b
 Timestamp: 6427404
 Subpixel: unknown
 Clones:
 CRTCs: 0 1
LVDS connected 1024x768+0+0 (0x3e) normal (normal left inverted right x axis y axis) 0mm x 0mm
 Identifier: 0x3c
 Timestamp: 6427404
 Subpixel: horizontal rgb
 Clones:
 CRTC: 1
 CRTCs: 1
 PANEL_FITTING: full_aspect
  supported: center full_aspect full
 BACKLIGHT_CONTROL: kernel
  supported: native legacy combination kernel
 BACKLIGHT: 7 (0x00000007) range: (0,7)
  1024x768 (0x3e) 65.0MHz *current +preferred
        h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.4KHz
        v: height 768 start 771 end 777 total 806 clock 60.0Hz
TV disconnected 1024x768+0+0 (0x85) normal (normal left inverted right x axis y axis) 0mm x 0mm
 Identifier: 0x3d
 Timestamp: 6427404
 Subpixel: unknown
 Clones:
 CRTC: 0
 CRTCs: 0 1
 BOTTOM: 37 (0x00000025) range: (0,100)
 RIGHT: 30 (0x0000001e) range: (0,100)
 TOP: 24 (0x00000018) range: (0,100)
 LEFT: 54 (0x00000036) range: (0,100)
 TV_FORMAT: PAL
  supported: NTSC-M NTSC-443 NTSC-J PAL-M
             PAL-N PAL
  1024x768 (0x85) 22.4MHz
        h: width 1024 start 1025 end 1088 total 1120 skew 0 clock 20.0KHz
        v: height 768 start 769 end 800 total 801 clock 25.0Hz

Andrew Ash (ash211)
tags: added: i915 tv-out
Revision history for this message
Bryce Harrington (bryce) wrote :

Can you re-test with the updated version in xorg-edgers and see if it is still a problem? If so, we should re-upstream the bug.

Changed in xserver-xorg-video-intel:
importance: Unknown → Undecided
status: Fix Released → New
Changed in xserver-xorg-video-intel (Ubuntu):
status: In Progress → Incomplete
Bryce Harrington (bryce)
tags: added: intrepid
Revision history for this message
Leho Kraav (lkraav) wrote :
Download full text (8.4 KiB)

i am running gentoo 2.6.30-tuxonice-r4. TV_FORMAT refuses to set "PAL" i915 on lenovo 3000 c100. xrandr --verbose shows "NTSC-M" and neither xorg.conf nor xrandr is capable of changing it.

marje@lenovo ~ $ xrandr --verbose
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 2048 x 2048
VGA1 unknown connection (normal left inverted right x axis y axis)
Identifier: 0x3b
Timestamp: 3620648
Subpixel: unknown
Clones:
CRTCs: 0 1
Transform: 1.000000 0.000000 0.000000
           0.000000 1.000000 0.000000
           0.000000 0.000000 1.000000
          filter:
 1024x768 (0x3e) 65.0MHz -HSync -VSync +preferred
       h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.4KHz
       v: height 768 start 771 end 777 total 806 clock 60.0Hz
 800x600 (0x3f) 40.0MHz +HSync +VSync
       h: width 800 start 840 end 968 total 1056 skew 0 clock 37.9KHz
       v: height 600 start 601 end 605 total 628 clock 60.3Hz
 640x480 (0x40) 25.2MHz -HSync -VSync
       h: width 640 start 656 end 752 total 800 skew 0 clock 31.5KHz
       v: height 480 start 490 end 492 total 525 clock 59.9Hz
LVDS1 connected 1024x768+0+0 (0x3e) normal (normal left inverted right x axis y axis) 304mm x 228mm
Identifier: 0x3c
Timestamp: 3620648
Subpixel: horizontal rgb
Clones:
CRTC: 1
CRTCs: 1
Transform: 1.000000 0.000000 0.000000
           0.000000 1.000000 0.000000
           0.000000 0.000000 1.000000
          filter:
EDID_DATA:
00ffffffffffff0006af512400000000
010f0103801e17780a87f594574f8c27
27505400000001010101010101010101
01010101010164190040410026301888
360030e4100000180000000f00000000
00000000000000000020000000fe0041
554f0a202020202020202020000000fe
004231353058473032205634200a0000
 1024x768 (0x3e) 65.0MHz -HSync -VSync *current +preferred
       h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.4KHz
       v: height 768 start 771 end 777 total 806 clock 60.0Hz
 1024x768 (0x41) 94.5MHz +HSync +VSync
       h: width 1024 start 1072 end 1168 total 1376 skew 0 clock 68.7KHz
       v: height 768 start 769 end 772 total 808 clock 85.0Hz
 1024x768 (0x42) 78.8MHz +HSync +VSync
       h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.0KHz
       v: height 768 start 769 end 772 total 800 clock 75.0Hz
 1024x768 (0x43) 75.0MHz -HSync -VSync
       h: width 1024 start 1048 end 1184 total 1328 skew 0 clock 56.5KHz
       v: height 768 start 771 end 777 total 806 clock 70.1Hz
 1024x768 (0x3e) 65.0MHz -HSync -VSync *current
       h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.4KHz
       v: height 768 start 771 end 777 total 806 clock 60.0Hz
 832x624 (0x44) 57.3MHz -HSync -VSync
       h: width 832 start 864 end 928 total 1152 skew 0 clock 49.7KHz
       v: height 624 start 625 end 628 total 667 clock 74.6Hz
 800x600 (0x45) 56.3MHz +HSync +VSync
       h: width 800 start 832 end 896 total 1048 skew 0 clock 53.7KHz
       v: height 600 start 601 end 604 total 631 clock ...

Read more...

Revision history for this message
Leho Kraav (lkraav) wrote :

solution: xrandr --output TV1 --set mode PAL

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks for pointing out that it is 'mode' rather than 'TV_FORMAT'. I don't know if there is a man page where this is documented, but it does show 'mode' as the correct name of the parameter in the xrandr output.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Tormod Volden (tormodvolden) wrote :

The "intel" man page on 10.04 falsely refers to "TV_FORMAT" instead of "mode". BTW the latter works for both xrandr and xorg.conf.

Revision history for this message
klsc (klsc1806-1) wrote :

The margin options /bottom, left, right, top) are falsely refert to.
xrandr --output TV1 --set PAL
works, but I can't change the margins. xrandr --verbose shows options with names like "left margin" or "top margin" but I don't know how it names for usage with xrandr :-(

Revision history for this message
klsc (klsc1806-1) wrote :

the right option is:

xrandr --output TV1 --set mode PAL --set 'bottom margin' xx --set 'top margin' xx --set 'left margin' xx --set 'right margin' xx

where xx are the value to use

good luck

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.