Announcement

Collapse
No announcement yet.

Open-Source ATI Driver Gets TV-Out

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • agd5f
    replied
    The modeline for tv-out is just a placeholder. The driver always outputs native timing for the selected TV standard (PAL, NTSC, etc.). "modes" with respect to TV only represent the size of the desktop downscaled to the native TV res. On your chip the only "mode" supported on tv-out is 800x600 at the moment (800x600 area of the desktop downscaled to pal resolution). The only thing you need to worry about is turning the output on. If load detection fails, you may have to manually add an 800x600 mode and manually turn the output on with xrandr. There are also driver options for your xorg.conf if you want to force tv-out to be always connected, to set the default tv standard, and to enable load detection on the tv dac by default. E.g.,
    Option "TVStandard" "pal"
    Option "ForceTVOut" "TRUE"
    Option "TVDACLoadDetect" "TRUE"
    in the device section of your config.
    To configure it with xrandr, assuming the driver detects the output as connected:
    xrandr --output S-video --auto
    or
    xrandr --output S-video --mode 800x600
    If load detection doesn't work, you'll have to force it on:
    xrandr --newmode 800x600 38.25 800 832 912 1024 600 603 607 624 -hsync +vsync
    xrandr --addmode S-video 800x600
    xrandr --output S-video --mode 800x600
    Again, the modeline timing doesn't matter as long as it's 800x600.
    Last edited by agd5f; 11-17-2009, 02:05 PM.

    Leave a comment:


  • xeros
    replied
    First of all sorry for bringing back old topic but I really need to get TV-Out via S-video working on my AGP Radeon 9600 (RV350).
    I'm trying to enable S-video output for years...
    It was working before on Kubuntu 6.06 without problems but then in every(?) Kubuntu release after that it doesn't work.
    I've spent already few hours at some day between some months to get this working...

    3 days ago I've done it! And it was working even after reboot but the day after it stopped working and I've get it working yesterday, too but then after reboot it stopped working
    I'm doing everytime the same commands, I've checked every pin in the cable (even it's resistance - my S-video cable is 10M long), I've plugged the S-video cable from graphic card to TV card in the same computer to check if it's not the TV problem...

    I need pure PAL signal on S-video (no matter if the resolution of the display is 640x480, 800x600 or 1024x768) cloned from DVI-0. The problem is that xrandr gets the only working mode for S-video 800x600 with 59.9Hz rate (I think my TV needs 50Hz).

    I've written a simple script with commands to enable TV-Out:
    Code:
    #!/bin/bash
    xrandr --output DVI-0 --mode 800x600 #???
    xrandr --output S-video --set load_detection 1
    xrandr --output S-video --set tv_standard pal
    xrandr --newmode "800x600_50.00"  31.15  800 824 904 1008  600 601 604 618  -HSync +Vsync # get with "gtf 800 600 50"
    xrandr --addmode S-video 800x600_50.00
    xrandr --output S-video --mode 800x600_50.00
    xrandr --newmode "720x576_50.00"  26.57  720 736 808 896  576 577 580 593  -HSync +Vsync # "gtf 720 576 50" - cannot add it to S-video
    xrandr --newmode "768x576"     50.00  768  832  846 1000   576  590  595  630 # this modeline I've found on some forums, but I can't add it to S-video, too
    xrandr --output S-video --crtc 1
    #sudo atitvout -r detect # it's not needed anymore?
    #sudo atitvout -f t
    #sudo atitvout -r vbe
    And it was working 3 days ago - I've tested it ~10 times (even after reboot it worked) but it doesn't work anymore (even if I get the same "xrandr --verbose" and "xrandr --prop" output as before:
    Code:
    $ xrandr
    Screen 0: minimum 320 x 200, current 800 x 600, maximum 1280 x 1280
    VGA-0 disconnected (normal left inverted right x axis y axis)
    DVI-0 connected 800x600+0+0 (normal left inverted right x axis y axis) 330mm x 270mm
       1280x1024      60.0 +
       1024x768       60.0
       800x600        60.3*
       640x480        59.9
    S-video connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
       800x600        59.9 +
       800x600_50.00   50.0*
      720x576_50.00 (0x87)   26.6MHz
            h: width   720 start  736 end  808 total  896 skew    0 clock   29.7KHz
            v: height  576 start  577 end  580 total  593           clock   50.0Hz
      768x576 (0x88)   50.0MHz
            h: width   768 start  832 end  846 total 1000 skew    0 clock   50.0KHz
            v: height  576 start  590 end  595 total  630           clock   79.4Hz
    I've found that I could bind CRTC 0 to both VGA-0 and S-video before (if I've done the same modeline for VGA-0 and S-video) and now I can't but I've used CRTC 0 for VGA-0/DVI-0 and CRTC 1 for S-video.

    Logs from working S-video output (after running script):
    xrandr
    xrandr --prop
    xrandr --verbose

    Logs from not working S-video output (after running script):
    xrandr --verbose
    dmesg
    /var/log/Xorg.0.log (cut some redundant logs at the end for it's size)

    Too bad I don't have Xorg.0.log with working S-video.
    I've tried enabling PAL, PAL-60, PAL-M, NTSC standards on both video card and TV (input) card to check it (my TV (not TV card) supports only PAL) but even it could be set I had no proper display from TV card just something that looked like out of sync.

    It's important to me to enable cloned display on S-video as I've bought my daughter USB Dance Pad for it's 5-th birthday and I don't have space for it in the room where's PC.

    Edit:
    Distribution: Kubuntu 9.10
    $ uname -a
    Linux Wiolusia 2.6.31-15-generic #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC 2009 i686 GNU/Linux

    Packages:
    linux-image-2.6.31-15-generic_2.6.31-15.50_i386
    xserver-xorg-video-ati_6.12.99+git20090929.7968e1fb-0ubuntu1_i386
    xserver-xorg-video-radeon_6.12.99+git20090929.7968e1fb-0ubuntu1_i386
    xserver-xorg_7.4+3ubuntu7_i386

    $ sudo lspci
    00:00.0 Host bridge: VIA Technologies, Inc. PT880 Ultra/PT894 Host Bridge
    00:00.1 Host bridge: VIA Technologies, Inc. PT894 Host Bridge
    00:00.2 Host bridge: VIA Technologies, Inc. PT894 Host Bridge
    00:00.3 Host bridge: VIA Technologies, Inc. PT890 Host Bridge
    00:00.4 Host bridge: VIA Technologies, Inc. PT894 Host Bridge
    00:00.5 PIC: VIA Technologies, Inc. PT894 I/O APIC Interrupt Controller
    00:00.7 Host bridge: VIA Technologies, Inc. PT894 Host Bridge
    00:01.0 PCI bridge: VIA Technologies, Inc. VT8237/VX700 PCI Bridge
    00:02.0 PCI bridge: VIA Technologies, Inc. PT890 PCI to PCI Bridge Controller
    00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
    00:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 02)
    00:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 02)
    00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
    00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
    00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
    00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
    00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
    00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
    00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
    00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South]
    00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
    00:11.6 Communication controller: VIA Technologies, Inc. AC'97 Modem Controller (rev 80)
    00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)
    01:00.0 VGA compatible controller: ATI Technologies Inc RV350 AP [Radeon 9600]
    01:00.1 Display controller: ATI Technologies Inc RV350 AP [Radeon 9600] (Secondary)
    02:00.0 VGA compatible controller: ATI Technologies Inc RV370 5B60 [Radeon X300 (PCIE)]
    02:00.1 Display controller: ATI Technologies Inc RV370 [Radeon X300SE]

    (I'm using second graphic card - Radeon X300SE at PCI-E (my motherboard has both PCI-E and AGP slots) for dualseat - I'm running second Xorg for second graphic card and AGP Radeon 9600 is my primary card)
    Last edited by xeros; 11-17-2009, 01:26 PM.

    Leave a comment:


  • agd5f
    replied
    Originally posted by klarfuzzy View Post
    When i use this line ./autogen.sh --prefix=/usr/

    I get this error

    ./configure: line 20660: syntax error near unexpected token `XINERAMA,'
    ./configure: line 20660: `XORG_DRIVER_CHECK_EXT(XINERAMA, xineramaproto)'
    You need to install the xorg macros. I'm not sure what ubuntu package supplies them off hand. In general you need to install the xorg and xserver devel pacakges when building the drivers from git.

    Leave a comment:


  • klarfuzzy
    replied
    Error

    When i use this line ./autogen.sh --prefix=/usr/

    I get this error

    ./configure: line 20660: syntax error near unexpected token `XINERAMA,'
    ./configure: line 20660: `XORG_DRIVER_CHECK_EXT(XINERAMA, xineramaproto)'

    Im using ubuntu 8.04 , an i installed the driver about two weeks ago and all whent fine then but now i reinstalled ubuntu and i get this error ....
    I installed and reinstalled all the stuf neded (automake libtool ... )
    Please help me

    Never mind seams to work with this error ... I don`t know how .... linux is so unpredictebel (sorry for the bad speling)
    Last edited by klarfuzzy; 05-12-2008, 12:36 PM.

    Leave a comment:


  • wildchild
    replied
    Originally posted by wildchild View Post
    Hi folks!

    I run Gutsy Gibbon and want to use the TV-out feature of the opensource radeon drivers with my radeon 8500 card. I have successfully compiled and installed drivers, but no matter what, I cannot get a sane picture on my TV. Also xrandr doesn't report that S-video is even connected.

    I have tried with GATOS drivers, they give a clear picture on the TV, but whenever I try to watch some video or run mythtv, my TV-screen turns completely green!

    I am all out of ideas what to try next. I have googled for hours without finding help on this.

    If you have any suggestions or clue, please help!

    Thanks in advance
    /w
    Well, I found a solution that worked. I removed the radeon card and literally broke it in 2 pieces, bought myself an nvidia-card. Now tv-out works as it should.

    Leave a comment:


  • wildchild
    replied
    Hi folks!

    I run Gutsy Gibbon and want to use the TV-out feature of the opensource radeon drivers with my radeon 8500 card. I have successfully compiled and installed drivers, but no matter what, I cannot get a sane picture on my TV. Also xrandr doesn't report that S-video is even connected.

    I have tried with GATOS drivers, they give a clear picture on the TV, but whenever I try to watch some video or run mythtv, my TV-screen turns completely green!

    I am all out of ideas what to try next. I have googled for hours without finding help on this.

    If you have any suggestions or clue, please help!

    Thanks in advance
    /w

    Leave a comment:


  • Footfish
    replied
    I have been waiting for this for years. Thanks, guys, keep up the good work.

    Leave a comment:


  • sorenkrabbe
    replied
    I seem to be stuck at the same place as captain-murphy

    I have successfully compiled the and installed the xf86-video-ati driver and randr as described in the how-to referred to from the first post of this thread.

    When I try to enable the tv-out manually by executing:
    Code:
    xrandr --addmode S-video 800x600
    xrandr --output S-video --mode 800x600
    ... the following error occurs:
    Code:
    xrandr: cannot find crtc for output S-video
    However, this error seems to be solved by disabling the DVI (My live monitor is connected to the VGA port) by
    Code:
    xrandr --output DVI-0 --off
    But when I again try to enable the tv-out, the command seems to be accepted (no errors in the prompt) but my monitor picture increases the brightness a lot, and still no tv-out

    I cannot understand the clues that might be in my x-server log, except the final lines look promising. Therefore I've posted my Xorg.0.log here, as it looks after a reboot and an attempt of manually enabling the tv-out as described above.

    I will appreciate any comments a lot - Thanks

    Background: I'm running Ubuntu 7.10 on my Asus Pundit-r which has an onboard ATI Radeon 9100 IGP graphics card. I connect to my TV using an s-video cable and the described error occurs no matter if the TV-out is forced from the BIOS or not. Oh, and I'm in a PAL-B/G-land

    Leave a comment:


  • captain-murphy
    replied
    Yes, it's very long though, so I uploaded it to my old geocities account I had from hs.
    http://www.geocities.com/kofflera/Xorg.0.log
    thats the log.

    Leave a comment:


  • Michael
    replied
    Originally posted by captain-murphy View Post
    What exactly does "xf86-video-ati" do and how do I know if it's installed/working correctly?
    That is the actual driver itself... It sounded like you may have installed it correctly. Can you post your xorg.0.log from /var/log/ ?

    Leave a comment:

Working...
X