[RV280] xrandr TV output pal garbage image

Bug #161893 reported by Malvin
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Medium
xserver-xorg-video-ati (Debian)
Fix Released
Unknown
xserver-xorg-video-ati (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: xrandr

reproduce:
* use an ati card and the free "radeon" driver (default gutsy-installation ...)
* type:
    xrandr --output S-video --set tv_standard ntsc
    xrandr --output S-video --mode 800x600
--> it works fine with ntsc-compatible tvs

* type:
    xrandr --output S-video --set tv_standard pal
    xrandr --output S-video --mode 800x600
--> the syncing of the screen gets messed up...

NOTE: This bug has also been reported in here, i don't know ho you guys treat "problems of other projects", but I really would like to have that working...
(and not to reboot into M$ to watch a nice movie ;-) )
http://bugs.freedesktop.org/show_bug.cgi?id=12007

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

Created an attachment (id=11136)
Garbled TV Output

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

Created an attachment (id=11137)
lspci -vvv

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

Created an attachment (id=11138)
Xorg.0.log

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

Created an attachment (id=11139)
xrandr --verbose

Revision history for this message
In , agd5f (agd5f) wrote :

can you grab the latest radeontool:

git://people.freedesktop.org/~airlied/radeontool

and (as root) run:

radeontool regmatch '*'

with both the old gatos code and the current randr code with tv-out enabled and send me or attach the output of those commands?

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

Created an attachment (id=11140)
radeontool regmatch '*': diff randr12 --> GATOS

Revision history for this message
In , agd5f (agd5f) wrote :

It looks like your tv standard is set wrong. The default standard in your bios is PAL. SCART is more like NTSC from the driver's perspective, so try setting the standard to NTSC.

xrandr --output S-video --set tv_standard NTSC
xrandr --output S-video --off
xrandr --output S-video --auto

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

I did test with NTSC and it works, but the colors/brightness go wrong when the mouse is moved (screenshot follows).
I forgot to mention that I also tested without the SCART adapter. The garbled screen also shows with a plain S-Video cable.
With the GATOS driver PAL and NTSC are working.

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

Created an attachment (id=11174)
TV output with wrong colors (after mouse was moved)

Revision history for this message
In , Swanson-ukfsn (swanson-ukfsn) wrote :

The inverse TV output after moving the mouse was previously reported in bug 2506 which was closed due to no activity. The issue can be worked around by disabling hardware mouse but I haven't tested it myself for a while.

As the problem in this bug was just the TV standard being correctly set for your cards BIOS I suggest closing this bug and reopening the other.

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

PAL is the correct standard for my card and Television. And as I mentioned it before PAL _works_ with the GATOS driver, also resulting in better picture quality.

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #8)
> I did test with NTSC and it works, but the colors/brightness go wrong when the
> mouse is moved (screenshot follows).
> I forgot to mention that I also tested without the SCART adapter. The garbled
> screen also shows with a plain S-Video cable.
> With the GATOS driver PAL and NTSC are working.
>

Can you attach the output from radeontool regmatch '*' for GATOS for both NTSC and PAL? Unfortunately, I don't really see much difference in the way the regs are programmed between the randr driver and GATOS that would cause a problem. I'll see what I can figure out about the mouse thing.

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

Created an attachment (id=11178)
radeontool regmatch '*' (GATOS)

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

Created an attachment (id=11179)
radeontool regmatch '*' (randr12)

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

Created an attachment (id=11180)
new radeontool regmatch '*' (GATOS PAL)

Revision history for this message
In , Jasmin-bugfd (jasmin-bugfd) wrote :

Created an attachment (id=11181)
new radeontool regmatch '*' (GATOS NTSC)

Revision history for this message
In , agd5f (agd5f) wrote :

I haven't figured out the PAL problems yet, but I fixed the color problem with pre-r3xx chips. Grab the latest git for the fix.

Revision history for this message
In , agd5f (agd5f) wrote :

*** Bug 12169 has been marked as a duplicate of this bug. ***

Revision history for this message
In , agd5f (agd5f) wrote :

*** Bug 12518 has been marked as a duplicate of this bug. ***

Revision history for this message
In , canatella (dam-cosinux) wrote :

I'm seeing this to on a R350 radeon with latest git. Is there anything I can do to help ? I'm willing to pay a six pack of your favorite beverage for solving this one ;)

Revision history for this message
In , Dqarras (dqarras) wrote :

On a distantly related note, there seems to be some plans to provide a tool for users to easily switch among displays, modes, and resolutions so no more command line would be needed:

https://bugzilla.redhat.com/show_bug.cgi?id=352301

Anyway, I'm willing to test any PAL related patches that someone might cook up.

Thanks.

Revision history for this message
Malvin (malvin) wrote : xrandr TV output pal garbage image

Binary package hint: xrandr

reproduce:
* use an ati card and the free "radeon" driver (default gutsy-installation ...)
* type:
    xrandr --output S-video --set tv_standard ntsc
    xrandr --output S-video --mode 800x600
--> it works fine with ntsc-compatible tvs

* type:
    xrandr --output S-video --set tv_standard pal
    xrandr --output S-video --mode 800x600
--> the syncing of the screen gets messed up...

NOTE: This bug has also been reported in here, i don't know ho you guys treat "problems of other projects", but I really would like to have that working...
(and not to reboot into M$ to watch a nice movie ;-) )
http://bugs.freedesktop.org/show_bug.cgi?id=12007

Changed in xrandr:
status: New → Confirmed
Changed in xorg-server:
status: Unknown → Confirmed
Revision history for this message
dorpm (dorpmueller) wrote :

I can confirm this bug too. The same problem with a Radeon 9800 and the "radeon" driver on my machine too.

Revision history for this message
In , agd5f (agd5f) wrote :

PAL is now fixed: 2b1fae668ddabbc72e5fc31365302ea722174df1

Changed in xorg-server:
status: Confirmed → Fix Released
Revision history for this message
In , Dqarras (dqarras) wrote :

Thanks a lot for looking into this one. I've now tried latest git with my PAL TV but I still have a gray, shaky picture. Has anyone got this working properly? Below are the commands I tried. I also tried few TV out related options in xorg.conf but no success. Any hints would be much appreciated.

xrandr --addmode S-video 800x600
xrandr --output S-video --mode 800x600
xrandr --output S-video --set tv_standard pal
xrandr --output S-video --off
xrandr --output S-video --mode 800x600

Revision history for this message
In , Edward Betts (edwardbetts) wrote :

For the record, with this new version PAL now works on my machine. Thanks.

Revision history for this message
In , Dqarras (dqarras) wrote :

Edward, nice to hear that! Did just plug the cable in and all worked ok or did you do any configuration?

Revision history for this message
In , Edward Betts (edwardbetts) wrote :

This was enough configuration to get it working:

xrandr --output S-video --set tv_standard pal
xrandr --output S-video --off
xrandr --output S-video --mode 800x600

Revision history for this message
In , Dqarras (dqarras) wrote :

Thanks for the info. I guess my ATI Mobility Radeon X700 needs still some driver level tuning, those or any other xrandr commands unfortunately do not work for me.

FWIW, I also contacted Andrew (who according to changelog provided fixes for PAL TV out) and he also gave his xrandr commands which do not work for me either. He was using rv280.

Changed in xorg-server:
status: Fix Released → Confirmed
Changed in xorg-server:
status: Confirmed → In Progress
Revision history for this message
In , agd5f (agd5f) wrote :

Since the driver is currently mostly hard-coded for tv-out, it will only work for boards with 27 Mhz reference clocks. I have plans to try and make this all more dynamic, but I just haven't had time yet.

Revision history for this message
In , agd5f (agd5f) wrote :

*** Bug 14136 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Cris-beebgames (cris-beebgames) wrote :

whats the situation with this now with regards to reference clock values? Still hard-coded to 27mhz?

I'm using a Sapphire Radeon 9600 PRO PAL card and cant get tv-out, something happens but I just get a black screen. Tried ntsc as well and nothing doing. How do I determine the real reference clock value for my card? The driver is using 27mhz.

This is with version 6.8.0 btw.

Revision history for this message
In , Cris-beebgames (cris-beebgames) wrote :

Created an attachment (id=14758)
X.org log for (30)

Revision history for this message
In , Cris-beebgames (cris-beebgames) wrote :

Created an attachment (id=14759)
lspci -vvv output for (30)

Revision history for this message
In , Cris-beebgames (cris-beebgames) wrote :

Created an attachment (id=14760)
xrandr --verbose for (30)

Revision history for this message
In , Robert-Paul Berretty (rp-adonut) wrote :

I tried TV out, PAL, on the composite connector of a Pundit-R (9100 IGP).
Unfortunately, after running

xrandr --output S-video --set tv_standard pal
xrandr --output S-video --off
xrandr --output S-video --mode 800x600

The image is still not synced correctly. It is scrolling over the TV.
Where I can hunt the timing problems? I have been searching around
on the web, and I found this thread as the most recent related problem.

Best,

Robert-Paul

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #34)
> I tried TV out, PAL, on the composite connector of a Pundit-R (9100 IGP).
> Unfortunately, after running
>
> xrandr --output S-video --set tv_standard pal
> xrandr --output S-video --off
> xrandr --output S-video --mode 800x600
>
> The image is still not synced correctly. It is scrolling over the TV.
> Where I can hunt the timing problems? I have been searching around
> on the web, and I found this thread as the most recent related problem.

Boot up your computer with only tv-out attached and don't start X, stay in console. Grab radeondump (git://people.freedesktop.org/~glisse/radeondump) and apply this patch:
http://www.botchco.com/alex/xorg/fixpll_radeondump.diff
Then use an application like vbetest to set 800x600 with tv-out active and when the mode is active, use radeondump to dump the registers. Send me the dump, and I'll get it fixed up.

Revision history for this message
In , Dqarras (dqarras) wrote :

Hi Alex, thanks for your help. I just created a dump based on your instructions with my ATI Mobility Radeon X700, doing something like:

vbetest -m 800x600 & sleep 1 && radeondump -d ati-out.txt

I'll attach the dump, for my untrained eyes it's unreadable.

Revision history for this message
In , Dqarras (dqarras) wrote :

Created an attachment (id=15008)
dump from patched radeondump while vbetest mode 800x600

Revision history for this message
In , Dqarras (dqarras) wrote :

Was the provided additional data from radeondump helpful? Could I help in any other way?

Thanks.

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #38)
> Was the provided additional data from radeondump helpful? Could I help in any
> other way?

Sorry Daniel, I haven't gotten a chance to look at it yet.

Revision history for this message
damores (diego-amores) wrote : Re: xrandr TV output pal garbage image

Confirmed on Ubuntu Hardy Beta with an ATI Mobility Radeon X700 card, using the radeon driver.

Tried to setup the TV output with the new "Screen Resolution" utility in Hardy, and also using xrandr directly, to no avail.

I'm willing to post any relevant info about my system that may help solve this problem, but would need some direction as to what is necessary.

Revision history for this message
In , Philippe Coval (rzr) wrote :

Hi,

This same bug may also affect Radeon IGP 320M too (amilo A CY-26 laptop)
  http://rzr.online.fr/q/vbe

I use atitvout on debian, but I can't on ubuntu's hardy Xserver
  http://rzr.online.fr/q/atitvout

And xrandr does not activate tv (on debian) or show garbage on TV (ubuntu) :
  http://rzr.online.fr/q/xrandr

I can help to test stuff if needed

Regards

Revision history for this message
In , damores (diego-amores) wrote :

I am also having sync problems with a PAL TV and the S-video output of my laptop's ATI Radeon Mobility X700. I'm attaching a dump created using the commands in Comment #36.

Revision history for this message
In , damores (diego-amores) wrote :

Created an attachment (id=15935)
Dump using patched radeondump and vbetest

Revision history for this message
Philippe Coval (rzr) wrote : Re: xrandr TV output pal garbage image

I confirm this bug on radeon IGP 320M , which is also in debian now
--
http://rzr.online.fr/q/xrandr

Revision history for this message
In , Philippe Coval (rzr) wrote :

Created an attachment (id=16610)
ati-out-after-atitvout-0x4336-0.txt

Hi,

Alex said you want a dump when tvout is active
  https://bugs.freedesktop.org/show_bug.cgi?id=12007#c35

But vbetest does not set display to tv, so I used atitvout as follow :

  su -c "sudo vbetest -m 800x600 && sleep 1 && sudo radeondump -d ati-out-after-vbetest.txt"

  su -c "sudo atitvout -f t && sleep 1 && sudo radeondump -d ati-out-after-atitvout.txt"

BTW, this bug is also tracked at :
  * https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/161893
  * http://bugs.debian.org/481748

Thanks again

--
http://rzr.online.fr/q/xrandr

Revision history for this message
In , Philippe Coval (rzr) wrote :

Created an attachment (id=16611)
ati-out-after-vbetest-0x4336-0.txt

refer to ati-out-after-atitvout-0x4336-0.txt instead

BTW, I generated this file on ubuntu hardy on amiloa laptop, and noticed it is different on debian, do you want to compare what's is changing, tell me and I upload the outputs too ?
--
http://rzr.online.fr/q/xrandr

Changed in xserver-xorg-video-ati:
status: Unknown → Confirmed
Revision history for this message
In , Dqarras (dqarras) wrote :

So, any news on this? The summer is coming (here in Northern hemisphere) and it would be really nice to get tv-out going for summer travels...

Thanks!

Revision history for this message
Bryce Harrington (bryce) wrote : Re: xrandr TV output pal garbage image

Please attach your /var/log/Xorg.0.log. Also if possible it would be helpful if you could check if the bug still occurs on Intrepid since it has the latest driver and xserver.

Changed in xserver-xorg-video-ati:
status: Confirmed → Incomplete
Revision history for this message
Philippe Coval (rzr) wrote :

Hi, thanx for paying attention see the attached file
(note It's on a system upgraded from hardy beta to intrepid beta)

BTW, I've seen in upstream's Commits changelog that TvOut was disabled it was around a couple of month ago...

Last but not least, some user reported that he managed to activate tvout using xrandr w/ atitvout :
http://tech.groups.yahoo.com/group/amilo/message/1053

Revision history for this message
In , agd5f (agd5f) wrote :

For IGP users, Calvin Fong recently added support for NTSC tv-out on IGP chips. Please try ati git master.

Revision history for this message
In , ag65151 (ag65151) wrote :

I can confirm NTSC S-video working for IGP 330M/340M/350M with one problem. My TV is too old for 800x600. Is there any way to add mode 640x480?

Thanks for the work.

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #47)
> I can confirm NTSC S-video working for IGP 330M/340M/350M with one problem. My
> TV is too old for 800x600. Is there any way to add mode 640x480?

The TV always gets sent it's native mode based on the standard (ntsc or pal). the "size" of the tv mode is irrelevant as it gets downscaled to a native ntsc or pal mode. You can adjust the tv image using the xrandr output attributes for the S-video port.

Changed in xserver-xorg-video-ati:
status: Incomplete → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote : Ubuntu needs you!

Thanks for taking the time to report this bug and helping to make Ubuntu better. In the development cycle for Intrepid there have been some vast improvements in the open source ati video driver and we could use your help testing them. Could you please download the latest Alpha CD image of Intrepid and test this particular bug just using the Live CD? You can find the latest image at http://www.ubuntu.com/testing . Your testing can help make Ubuntu and the open source ati driver even better! Thanks in advance.

Changed in xserver-xorg-video-ati:
status: Confirmed → Incomplete
Revision history for this message
Malvin (malvin) wrote : Re: xrandr TV output pal garbage image

Hi Brian, just leaving a note, that it might take me a few days as to do that for you, as I am moving house this weekend. But I'll definitely try it next week.

Revision history for this message
damores (diego-amores) wrote :

Just finished upgrading to Intrepid Alpha 4 on my Fujitsu-Siemens Amilo 1437G laptop, which has an ATI Mobility Radeon X700 card.

Now the S-video output is not even detected by xrandr, so I'm not able to test it. The output of the command follows:

~$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1280 x 1200
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1280x800 60.0*+
   1024x768 60.0
   800x600 60.3
   640x480 59.9
DVI-0 disconnected (normal left inverted right x axis y axis)

Revision history for this message
Philippe Coval (rzr) wrote :

Hi,
I just upgraded intrepid on my amiloa cy-26 laptop and updated my logfile :
Xorg-xserver-xorg-video-radeon-1:6.9.0+git20080802.1f3eee36-1ubuntu1-rzr.log

tvout is back (but still out of sync on PAL, it should work on NTSC according to upstream log)

now a few comments :

@brian> test this particular bug just using the Live CD?
I am afraid it wont work never worked with this xorg serie,
Would you also like us to test the livecd ?

@damores> Now the S-video output is not even detected by xrandr
did you tried to force it ? (see http://rzr.online.fr/q/xrandr )

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

Testing with either the LiveCD or with an upgrade is sufficient.

Philip, can you also add comments about what you're seeing to the upstream bug report? https://bugs.freedesktop.org/show_bug.cgi?id=12007

Also, I just updated intrepid to debian's latest -ati snapshot yesterday, so if they want you to test with a newer version you can probably do a system update to get it.

Changed in xserver-xorg-video-ati:
status: Incomplete → Triaged
Revision history for this message
In , Philippe Coval (rzr) wrote :

Created an attachment (id=18989)
tvout-radeon-igp320-pal-xorg-video-radeon_6.9.0+git20080826.a3cc1d7a-2ubuntu2_i386.jpg

As suggested by brice,
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/161893

Let me report how is output on PAL tv, it seems the clock is better but colors are still missing and refresh rate is not good...

Hope this helps,
Regards

--
http://rzr.online.fr/q/xrandr

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #49)
> Let me report how is output on PAL tv, it seems the clock is better but colors
> are still missing and refresh rate is not good...

There's currently no support for PAL on IGP chips, only NTSC. Someone with an IGP needs to provide a PAL dump as per the comments above.

Revision history for this message
Philippe Coval (rzr) wrote : Re: xrandr TV output pal garbage image

Hi,
I just tested today, and it's better than before but not good
See attached file :
tvout-radeon-igp320-pal-xorg-video-radeon_6.9.0+git20080826.a3cc1d7a-2ubuntu2_i386.jpg

(Same one on upstream tracker)

See ya

Revision history for this message
In , Philippe Coval (rzr) wrote :

Created an attachment (id=19146)
radeondump-igp-pal-after-atitvout-vesa-0x4336-0~rzr20081124.diff

> Someone with an IGP needs to provide a PAL dump as per the comments above.
Hi Alex,
Sure here it is :
radeondump-igp-pal-after-atitvout-vesa-0x4336-0~rzr20081124.diff

"Sources dumpfiles" to come after this post

Note that working tv-out was activated using "sudo atitvout -f" on linuxconsole

Thanx again

Revision history for this message
In , Philippe Coval (rzr) wrote :

Created an attachment (id=19147)
radeondump-igp-pal-after-boot-vesa-0x4336-0~rzr20081124.txt

Revision history for this message
In , Philippe Coval (rzr) wrote :

Created an attachment (id=19148)
radeondump-igp-pal-after-atitvout-vesa-0x4336-0~rzr20081124.txt

Revision history for this message
In , Robert-Paul Berretty (rp-adonut) wrote :

Created an attachment (id=19150)
PAL IGP dump 800x600

Here is my dump which I believe I sent to Alex in june. It is a dump from
a Asus Pundit-R started with kernel vesa option 711. Should be 800x600.
I live in PAL land.

Robert-Paul

Revision history for this message
Salmo (jeromesalomon) wrote : Re: xrandr TV output pal garbage image

Hi,

I am running ubuntu 8.10 with a X700 mobility.
The s-video output use to be working but with problems (wrong colors) with ubuntu 8.04.
Now that I upgraded to 8.10, I am like damores, I don't see the output anymore

Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1280 x 1200
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 330mm x 210mm
   1280x800 60.1*+
   1024x768 60.0
   800x600 60.3
   640x480 59.9
DVI-0 disconnected (normal left inverted right x axis y axis)

I have tried to look at that link http://rzr.online.fr/q/xrandr but did not find any solution.

Revision history for this message
In , agd5f (agd5f) wrote :

Created an attachment (id=20002)
IGP PAL tv support

For those of you with IGP chips and PAL here's a potential patch. Please test and let me know if it works for you. I had to guess at the restart stuff as the dumps didn't cover the 0x8xx range where those registers are (specifically, I'd like to see TV_HRESTART (0x838), TV_VRESTART (0x83C), and TV_HSTART (0x818)). However the patch may just work.

Revision history for this message
In , Dqarras (dqarras) wrote :

Hi Alex,

thanks a lot for your efforts with ATI PAL support. I am planning to test your patch hopefully in a week or so, unfortunately Fedora 10 upgrade broke ATI TV-out totally (1) so I'll need to downgrade to F9 to test. I'll send more info then.

1) https://bugzilla.redhat.com/show_bug.cgi?id=465607

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #56)
> Hi Alex,
>
> thanks a lot for your efforts with ATI PAL support. I am planning to test your
> patch hopefully in a week or so, unfortunately Fedora 10 upgrade broke ATI
> TV-out totally (1) so I'll need to downgrade to F9 to test. I'll send more info
> then.
>
> 1) https://bugzilla.redhat.com/show_bug.cgi?id=465607
>

No need to downgrade, just disable kernel modesetting. We haven't ported the tv-out code to the kernel yet.

Revision history for this message
In , Philippe Coval (rzr) wrote :

(In reply to comment #55)
> Created an attachment (id=20002) [details]
> IGP PAL tv support
>
> For those of you with IGP chips and PAL here's a potential patch. Please test
> and let me know if it works for you.

1st let me thank you, it works better but it's not ok image is b/w and waving a bit see :
http://launchpadlibrarian.net/19409540/tvout-radeon-igp-320m-xserver-xorg-video-radeon-1%3A6.9.0%2Bgit20081029.937b7ac2-0ubuntu0tormod2.1~rzr1.jpg

Ubuntu/debian users can test my package , but please note that it was patched on last week snapshot...

http://rzr.online.fr/ubuntu/

Do you need more dumps ? or I missed something ?

Regards

Revision history for this message
In , agd5f (agd5f) wrote :

Could someone use vbetest to setup a working PAL 800x600 tv-out mode and then dump the registers with radeontool (http://cgit.freedesktop.org/~airlied/radeontool). You'll have to use the radeontool from the cgit tree. radeondump does not dump enough of the tv-out registers. the following command will dump the necessary regsiters:
(as root) ./radeontool regmatch '*'

Revision history for this message
In , Philippe Coval (rzr) wrote :

Created an attachment (id=20096)
radeontool-xserver-xorg-video-radeon_6.9.0-1+lenny4_i386.txt

(In reply to comment #59)
> Could someone use vbetest to setup a working PAL 800x600 tv-out mode and then
> dump the registers with radeontool

here it is :

 atitvout -f t ; ./radeontool regmatch '*' > radeontool-xserver-xorg-video-radeon_6.9.0-1+lenny4_i386.txt ; atitvout -f l
Forcing Rage Mobility/Rage 3D Pro LT mode
Forcing Rage Mobility/Rage 3D Pro LT mode

see attached file next

ps: debian users can take my radeontool in my apt repo too

Revision history for this message
Philippe Coval (rzr) wrote : Re: xrandr TV output pal garbage image

Hi, there is a new patch on upstream tracker, I tried it and built a deb (in my PPA) , things are going better, but the b/w image is synched but waving a bit ...

See the picture attached:
tvout-radeon-igp-320m-xserver-xorg-video-radeon-1:6.9.0+git20081029.937b7ac2-0ubuntu0tormod2.1~rzr1.jpg

Revision history for this message
In , Dqarras (dqarras) wrote :

> > 1) https://bugzilla.redhat.com/show_bug.cgi?id=465607
>
> No need to downgrade, just disable kernel modesetting. We
> haven't ported the tv-out code to the kernel yet.

Thanks for the tip, unfortunately the problem remains also when using "nomodeset".

Revision history for this message
Philippe Coval (rzr) wrote : Re: xrandr TV output pal garbage image

Hi,
I applied upstream patch on latest tormod package and here is the output log

tv output didn't change from latest image

You can test this package from my ppa :

http://rzr.online.fr/q/apt

Revision history for this message
In , Philippe Coval (rzr) wrote :

Hi,

I tested lately with current snapshot, without the patch the image is out of sync ?

will it help if we test Alex Deucher's patch on current tree ?

Regards

ps: side note file
 radeondump-igp-pal-after-atitvout-vesa-0x4336-0~rzr20081124.diff
is wrongly named it should have been
 radeondump-igp-pal-after-atitvout-vesa-0x4336-0~rzr20081024.diff

--
http://rzr.online.fr/q/xrandr

Revision history for this message
In , Dqarras (dqarras) wrote :

On Fedora 10 I now compiled 2.6.28 kernel and latest driver from git using 2.6.28's headers but tv-out is still missing from xrandr.

Revision history for this message
In , Alessio Gaeta (meden) wrote :

Hello, I'm still having non working tv-out too. TV out is garbled with both PAL and NTSC. My configuration:

Toshiba M30-X with RV350 [Mobility Radeon 9600 M10]

Ubuntu Intrepid with kernel 2.6.28 and whole XOrg/xserver from Jaunty (which includes xserver-xorg-video-ati 1:6.10.99-ubuntu1 package).

This issue is the only thing making me boot Windows... (TV out works flawless there).

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

Based on the description of the symptoms, it sort of sounds like this might be caused by an incorrect AGPMode setting, which is relevant when DRI is enabled. You should test if changing this makes the issue go away. In your /etc/X11/xorg.conf set AGPMode to various values like this:

 Section "Device"
      ...
      Option "AGPMode" "2"
 EndSection

Possible values include 1, 2, 4, 8. You can see what it's currently set to by looking in /var/log/Xorg.0.log. It's worthwhile to test all four values even once you find one that works. If this takes care of it for you, we may be able to establish a quirk to set it for your hardware combo

For more details on this, please see the "ATI AGP Mode Quirk" section at https://wiki.ubuntu.com/X/Quirks

Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati:
importance: Undecided → High
status: Triaged → Incomplete
Revision history for this message
In , Dqarras (dqarras) wrote :

I've now tested with Fedora 11 Beta which includes all the latest components (kernel, driver, etc) but the TV out is still missing on my ATI Mobility Radeon X700 with both ati and radeon drivers.

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #65)
> I've now tested with Fedora 11 Beta which includes all the latest components
> (kernel, driver, etc) but the TV out is still missing on my ATI Mobility Radeon
> X700 with both ati and radeon drivers.
>

ati and radeon are the same driver. ati is just a wrapper that loads radeon, r128, or mach64 depending on what chip is present in your computer. There is no support for tv-out on r4xx cards yet. Also, there is no tv-out support for any chips in the drm modesetting code, so you'll have to boot with nomodeset on the kernel command line, to use the ddx modesetting code. Then you can try:
Option "R4xxATOM" "TRUE"
in the device section of your config which will allow you to use the atombios tv-out setup, however, I haven't tested this so YMMV.

Revision history for this message
In , Dqarras (dqarras) wrote :

Thanks for the tip, I retested with all TV output related options I found out the following:

These options must be used in order to enable TV output:

       Option "ForceTVOut" "TRUE"
        Option "ATOMTvOut" "TRUE"

This option prevents TV output working:

        Option "R4xxATOM" "TRUE"

And these options seems to have no effect (apart from setting PAL in use):
        Option "TVDACLoadDetect" "TRUE"
        Option "DefaultTVDACAdj" "TRUE"
        Option "TVStandard" "pal"

Output is still garbled but at least something is coming out again with tweaked configuration. Perhaps others who've had better output in the past can now enjoy working output already.

Thanks!

Bryce Harrington (bryce)
tags: added: corruption
tags: added: tv-out
Revision history for this message
In , LVU (valentin-lavrinenko) wrote :

I have a 690G-based motherboard (I think it has a X1250 chip), and experiencing the same problems on my TV: black and white display in ntsc mode and garbled screen in pal mode. I use Ubuntu Jaunty and xserver-xorg-video-ati-1:6.12.99+git20090710.43db263d-0ubuntu0tormod driver version from https://launchpad.net/~tormodvolden/+archive/ppa. Is it supposed to work? If no, can I do something to help you fix this issue?

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

We're closing this bug since it is has been some time with no response from Malvin. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in xserver-xorg-video-ati (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
In , Philippe Coval (rzr) wrote :

hi
how this bug is going after years,
I have a working configuration using a pretty old version of xorg, I can dump registers with your tools just tell me...

X -version

X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: Linux Debian (xorg-server 2:1.3.0.0.dfsg-12)
Current Operating System: Linux nrv 2.6.32-trunk-686 #1 SMP Sun Jan 10 06:32:16 UTC 2010 i686
Build Date: 09 August 2007
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.
Module Loader present

--
http://rzr.online.fr/q/xrandr

Revision history for this message
In , andrzej.hajda (andrzej-hajda) wrote :

Created an attachment (id=33927)
PAL support for 9100 IGP

I have created patch which seems to work, at least for my 9100IGP.
In fact it is modified patch of Alex Deucher.

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #70)
> Created an attachment (id=33927) [details]
> PAL support for 9100 IGP
>
> I have created patch which seems to work, at least for my 9100IGP.
> In fact it is modified patch of Alex Deucher.
>

Thanks! I've pushed the patch to git master and the 6.12-branch. I've closing this bug as there are too many mixed up issues here.

Changed in xorg-server:
status: In Progress → Fix Released
Revision history for this message
In , J-moskovcak (j-moskovcak) wrote :

(In reply to comment #71)
> (In reply to comment #70)
> > Created an attachment (id=33927) [details] [details]
> > PAL support for 9100 IGP
> >
> > I have created patch which seems to work, at least for my 9100IGP.
> > In fact it is modified patch of Alex Deucher.
> >
>
> Thanks! I've pushed the patch to git master and the 6.12-branch. I've closing
> this bug as there are too many mixed up issues here.
>

Hi,
just want to thank you guys, it works fine on my ancient laptop, now I can turn it into a movie player! I ran just into a small problem that it doesn't work with modesetting so I had to turn it off as mentioned in some comment above(actually the tv-out works with modesetting, but it's set to ntsc and can't be changed).

Thanks again!
Jirka

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #72)

> Hi,
> just want to thank you guys, it works fine on my ancient laptop, now I can turn
> it into a movie player! I ran just into a small problem that it doesn't work
> with modesetting so I had to turn it off as mentioned in some comment
> above(actually the tv-out works with modesetting, but it's set to ntsc and
> can't be changed).

if you are using kms, this was fixed in 2.6.33.

Revision history for this message
In , J-moskovcak (j-moskovcak) wrote :

(In reply to comment #73)
> (In reply to comment #72)
>
> > Hi,
> > just want to thank you guys, it works fine on my ancient laptop, now I can turn
> > it into a movie player! I ran just into a small problem that it doesn't work
> > with modesetting so I had to turn it off as mentioned in some comment
> > above(actually the tv-out works with modesetting, but it's set to ntsc and
> > can't be changed).
>
> if you are using kms, this was fixed in 2.6.33.
>

Tried 2.6.33 and 2.6.34 and the tv standard is set to NTSC when using kms and can't be changed.

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #74)

>
> Tried 2.6.33 and 2.6.34 and the tv standard is set to NTSC when using kms and
> can't be changed.
>

The attribute name is different under kms. it's "tv standard" rather than tv_standard.

Revision history for this message
In , J-moskovcak (j-moskovcak) wrote :

(In reply to comment #75)
> (In reply to comment #74)
>
> >
> > Tried 2.6.33 and 2.6.34 and the tv standard is set to NTSC when using kms and
> > can't be changed.
> >
>
> The attribute name is different under kms. it's "tv standard" rather than
> tv_standard.
>

So the "tv standard" attribute works under kms, but all standards except ntsc shows only black and white lines scrolling over the screen similar like before the patch for this bugzilla was introduced and even the ntsc is not 100% the screen is a bit shaky and the top of the screen seems interlaced. I can provide some more info if you like.

And the other problem I find was when I tried to disable the LVDS on my laptop in xorg.conf to use only tv as an external monitor by adding this:

Section "Monitor"
  Identifier "LVDS"
  Option "Disable" "true"
EndSection

doesn't matter if i use kms or not, the output on the tv was broken.

J.

Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati (Ubuntu):
status: Invalid → New
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-ati - 1:6.12.192-2ubuntu1

---------------
xserver-xorg-video-ati (1:6.12.192-2ubuntu1) lucid; urgency=low

  * Merge new upstream version from Debian.
    - r6xx/r7xx: fix domain handling in accel code. Improves GetImage
      performace by a factor of ~10. (LP: #544496 ?)
    - radeon: add support for pal on legacy IGP chips (LP: #161893)
    - radeon: disable frac fb div with new pll code
    - Allocate Xv buffers to GTT. This is nice performance boost for Xv
      under KMS.
    - XAA: disable render accel. It's been reported broken for a while.
      (LP: #513956)
    - radeon: avoid using DRI1 init path on DRI2 driver. Improves behavior
      with multi-seat
    - kms: fix ums naming compat for DisplayPort
  * Remaining changes:
    - Add quilt to Build-Depends and call patch/unpatch target.
    - 100_radeon-6.9.0-bgnr-enable.patch: Turn on option to allow xserver to
      skip drawing the root background window for the radeon driver. This
      will make the boot up sequence smoother by eliminating one flicker.
  * Drop 101_support_hd4290.patch - included upstream
 -- Bryce Harrington <email address hidden> Tue, 30 Mar 2010 19:24:28 -0700

Changed in xserver-xorg-video-ati (Ubuntu):
status: In Progress → Fix Released
Changed in xserver-xorg-video-ati (Debian):
status: Confirmed → Fix Released
Changed in xorg-server:
importance: Unknown → Medium
Changed in xorg-server:
importance: Medium → Unknown
Changed in xorg-server:
importance: Unknown → Medium
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.