Bug 27024 - TV-Out on SDVO unusable with KMS
Summary: TV-Out on SDVO unusable with KMS
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: ykzhao
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2010-03-11 11:40 UTC by Frank Thieme
Modified: 2010-04-06 18:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg with drm.debug=6 (46.84 KB, text/plain)
2010-03-11 11:40 UTC, Frank Thieme
no flags Details
Xorg.0.log (43.15 KB, text/plain)
2010-03-11 11:40 UTC, Frank Thieme
no flags Details
vbios.dump (64.00 KB, application/octet-stream)
2010-03-12 14:01 UTC, Frank Thieme
no flags Details
dmesg.out 2.6.33 (201.38 KB, text/plain)
2010-03-12 14:07 UTC, Frank Thieme
no flags Details
xrandr --verbose output (5.45 KB, text/plain)
2010-03-12 14:08 UTC, Frank Thieme
no flags Details

Description Frank Thieme 2010-03-11 11:40:13 UTC
Created attachment 33964 [details]
dmesg with drm.debug=6

I have Fujitsu SIemens Scaleo E with an i915 card with additional SDVO
card. On board is VGA and on SDVO card is a DVI, a SVIDEO and an
internal SCART output.

Before upgrading I didn't use kms, just had a patched intel driver to
default to PAL instead of NTSC. Now with kms I have a blanked console
after module loaded and I have no X screen either.

I can logon over ssh and I can even do use x11vnc to the X server that
is appearantly running. The tv thinks there is something, but displays
just a blank screen.
Comment 1 Frank Thieme 2010-03-11 11:40:51 UTC
Created attachment 33965 [details]
Xorg.0.log
Comment 2 Gordon Jin 2010-03-11 17:28:45 UTC
hope this issue is known to yakui
Comment 3 ykzhao 2010-03-11 17:49:26 UTC
Will you please try the 2.6.33 stable kernel and attach the output of dmesg with the boot option of "drm.debug=0x04"?

Please also attach the output of vbios.dump on your box, which can be obtained by using the following command:
    1. echo 1 > /sys/devices/pci0000:00/0000:00:02.0/rom
    2. cat /sys/devices/pci0000:00/0000:00:02.0/rom >vbios.dump
    3. echo 0 > /sys/devices/pci0000:00/0000:00:02.0/rom

Thanks.
Comment 4 Frank Thieme 2010-03-12 14:01:45 UTC
Created attachment 34008 [details]
vbios.dump
Comment 5 Frank Thieme 2010-03-12 14:07:45 UTC
Created attachment 34009 [details]
dmesg.out 2.6.33

With 2.6.33 there is no black console anymore. Seems like it is detected correctly. Just resolution is a bit high for PAL

Even xrandr detects a TV now. But I cannot select PAL there...

$ xrandr --output TV1 --set "TV_FORMAT" "PAL_G"
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  149 (RANDR)
  Minor opcode of failed request:  11 (RRQueryOutputProperty)
  Serial number of failed request:  27
  Current serial number in output stream:  27
$ xrandr --output TV1 --mode "PAL_G"
xrandr: cannot find mode PAL_G
Comment 6 Frank Thieme 2010-03-12 14:08:07 UTC
Created attachment 34010 [details]
xrandr --verbose output
Comment 7 Julien Cristau 2010-03-12 14:14:48 UTC
> --- Comment #5 from Frank Thieme <frank@fthieme.net>  2010-03-12 14:07:45 PST ---
> $ xrandr --output TV1 --set "TV_FORMAT" "PAL_G"
> X Error of failed request:  BadName (named color or font does not exist)
>   Major opcode of failed request:  149 (RANDR)
>   Minor opcode of failed request:  11 (RRQueryOutputProperty)
>   Serial number of failed request:  27
>   Current serial number in output stream:  27

the old TV_FORMAT property is called 'mode' with kms.
see xrandr --prop for the possible values.  you'd use something like
'xrandr --output TV1 --set mode PAL'.
Comment 8 Frank Thieme 2010-03-12 14:25:10 UTC
(In reply to comment #7)
> the old TV_FORMAT property is called 'mode' with kms.
> see xrandr --prop for the possible values.  you'd use something like
> 'xrandr --output TV1 --set mode PAL'.

Wow... that makes a difference...

Comment 9 ykzhao 2010-03-14 18:36:12 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > the old TV_FORMAT property is called 'mode' with kms.
> > see xrandr --prop for the possible values.  you'd use something like
> > 'xrandr --output TV1 --set mode PAL'.
> 
> Wow... that makes a difference...
> 

Does the system work well after you use the following command to change the PAL format as Julien mentioned in comment #7?
   >xrandr --output TV1 --set mode "PAL_G"


If it still can't work, will you please try the debug patch in http://bugs.freedesktop.org/show_bug.cgi?id=23916#C37 and see whether it works for you?

thanks.
   Yakui.

Comment 10 ykzhao 2010-04-06 18:14:07 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > the old TV_FORMAT property is called 'mode' with kms.
> > see xrandr --prop for the possible values.  you'd use something like
> > 'xrandr --output TV1 --set mode PAL'.
> 
> Wow... that makes a difference...

From the comment #5/#8 it seems that the TV can work. So this bug will be marked as resolved.
   >there is no black console
   >TV format can be changed correctly

Thanks.


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.