Announcement

Collapse
No announcement yet.

TV-Out Lucid - Output S-video disconnected

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

  • TV-Out Lucid - Output S-video disconnected

    Hi all, I had s-video working great (well svideo to composite adapter) in karmic but trying out the new mythbuntu beta I can't get it to work using the same xorg.conf
    I'm not getting any output to the tv at all, playing with xrandr gives no errors but doesn't help

    original (worked in karmic xorg.conf)
    log

    zaphod
    log

    Code:
    mrplow@compaq-laptop:~$ uname -a
    Linux compaq-laptop 2.6.32-17-generic #26-Ubuntu SMP Fri Mar 19 23:58:53 UTC 2010 i686 GNU/Linux
    mrplow@compaq-laptop:~$ lspci|grep VGA
    01:05.0 VGA compatible controller: ATI Technologies Inc Radeon XPRESS 200M 5955 (PCIE)

  • #2
    hmm disabling kms seems to help, gotta get to work though, I'll see how well its working tonight

    using original xorg
    zaphod xorg

    Comment


    • #3
      load detection has always been flaky on XPRESS chips and as such is disabled by default. You can force load detection (and try and detect the output) or the actual connector on using xrandr.

      Comment


      • #4
        Thanks agd5f, adding option "enabled" true to the monitor section of xorg.conf worked getting zaphod going.

        Now just if dri worked in zaphod mode I'd be set, for now the old xorg.conf will have to do.

        I'd love to get zaphod fully working so I can have mythtv on its own screen without hacking around with a windowed size and the aspect is messed up because its counting the whole virtual resolution and such.

        zaphod log in case anyones interested

        wierd mythfrontend.log when running in zaphod mode with dri obviously disabled

        Code:
        X Error: BadMatch (invalid parameter attributes) 8
          Extension:    132 (Uknown extension)
          Minor opcode: 13 (Unknown request)
          Resource id:  0x49
        X Error: BadMatch (invalid parameter attributes) 8
          Extension:    132 (Uknown extension)
          Minor opcode: 13 (Unknown request)
          Resource id:  0x48
        X Error: BadMatch (invalid parameter attributes) 8
          Extension:    132 (Uknown extension)
          Minor opcode: 13 (Unknown request)
          Resource id:  0x4a

        Comment


        • #5
          Originally posted by mrplow View Post
          Now just if dri worked in zaphod mode I'd be set, for now the old xorg.conf will have to do.
          DRI with zaphod requires kms.

          Comment


          • #6
            hmm after fooling around with xorg.conf I cannot seem to get zaphod working with kms enabled. This time the s-video is enabled but no modes are found despite me defining them in monitor and screen.
            xorg
            log

            Comment


            • #7
              Well KMS doesn't want to play nice, after fooling around with different xorg.conf configs it seems to always return with the following error. The laptop screen is on but the tv-out isn't enabled.
              I tried using the xorg-edgers ppa with newer drivers but that didn't seem to make any difference.

              Is this a bug or do I just suck at tweaking my xorg.conf?
              Here is the zaphod xorg.conf that I can use with KMS off.

              full log
              Code:
              (II) RADEON(1): Output S-video using monitor section TV-monitor
              (**) RADEON(1): Option "Enable" "true"
              (II) RADEON(1): Output S-video enabled by config file
              (WW) RADEON(1): Unable to find initial modes
              (EE) RADEON(1): Output S-video enabled but has no modes
              (II) RADEON(1): mem size init: gart size :1dff000 vram size: s:8000000 visible:7bd8000
              (II) RADEON(1): EXA: Driver will allow EXA pixmaps in VRAM
              (==) RADEON(1): DPI set to (96, 96)
              (II) Loading sub module "fb"
              (II) LoadModule: "fb"
              (II) Reloading /usr/lib/xorg/modules/libfb.so
              (II) Loading sub module "ramdac"
              (II) LoadModule: "ramdac"
              (II) Module "ramdac" already built-in
              (II) Loading sub module "exa"
              (II) LoadModule: "exa"
              (II) Reloading /usr/lib/xorg/modules/libexa.so
              (EE) RADEON(1): No modes.
              (II) UnloadModule: "radeon"
              (II) UnloadModule: "exa"
              (II) UnloadModule: "fb"
              KMS On
              Code:
              mrplow@compaq-laptop:~$ export DISPLAY=:0.0
              mrplow@compaq-laptop:~$ xrandr
              Screen 0: minimum 320 x 200, current 1280 x 800, maximum 4096 x 4096
              LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 289mm x 21mm
                 1280x800       60.1*+
                 1280x720       59.9  
                 1152x768       59.8  
                 1024x768       59.9  
                 800x600        59.9  
                 848x480        59.7  
                 720x480        59.7  
                 640x480        59.4  
              mrplow@compaq-laptop:~$ export DISPLAY=:0.1
              mrplow@compaq-laptop:~$ xrandr --verbose
              Can't open display :0.1
              KMS Off (same xorg.conf)
              Code:
              mrplow@compaq-laptop:~$ export DISPLAY=:0.0
              mrplow@compaq-laptop:~$ xrandr
              Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1280 x 1280
              LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 289mm x 210mm
                 1280x800       60.1*+
                 1280x720       59.9  
                 1152x768       59.8  
                 1024x768       59.9  
                 800x600        59.9  
                 640x480        59.4  
              mrplow@compaq-laptop:~$ export DISPLAY=:0.1
              mrplow@compaq-laptop:~$ xrandr
              Screen 1: minimum 320 x 200, current 800 x 600, maximum 800 x 800
              S-video connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
                 800x600        59.9*+

              Comment


              • #8
                I've got simmilar problem with KMS and S-video.
                On my Lucid installation S-video gets disabled at boot time on KMS because of DAC encoders conflict:

                # dmesg | egrep '(drm|radeon)'
                [ 0.000000] Linux version 2.6.32-19-generic (buildd@palmer) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #28-Ubuntu SMP Wed Mar 31 17:46:20 UTC 2010 (Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1)
                [ 1.093036] [drm] Initialized drm 1.1.0 20060810
                [ 1.220339] [drm] radeon kernel modesetting enabled.
                [ 1.220432] radeon 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
                [ 1.222771] [drm] radeon: Initializing kernel modesetting.
                [ 1.222967] [drm] register mmio base: 0xFB9F0000
                [ 1.222971] [drm] register mmio size: 65536
                [ 1.225700] [drm] GPU reset succeed (RBBM_STATUS=0x00000140)
                [ 1.225747] [drm] Generation 2 PCI interface, using max accessible memory
                [ 1.225970] radeon 0000:01:00.0: putting AGP V3 device into 8x mode
                [ 1.226021] [drm] radeon: VRAM 256M
                [ 1.226027] [drm] radeon: VRAM from 0x00000000 to 0x0FFFFFFF
                [ 1.226031] [drm] radeon: GTT 256M
                [ 1.226035] [drm] radeon: GTT from 0xD0000000 to 0xDFFFFFFF
                [ 1.226105] [drm] radeon: irq initialized.
                [ 1.226560] [drm] Detected VRAM RAM=256M, BAR=256M
                [ 1.226567] [drm] RAM width 128bits DDR
                [ 1.228566] [drm] radeon: 256M of VRAM memory ready
                [ 1.228573] [drm] radeon: 256M of GTT memory ready.
                [ 1.228825] [drm] radeon: 1 quad pipes, 1 Z pipes initialized.
                [ 1.228850] [drm] radeon: cp idle (0x10000C03)
                [ 1.228930] [drm] Loading R300 Microcode
                [ 1.229338] platform radeon_cp.0: firmware: requesting radeon/R300_cp.bin
                [ 1.240262] [drm] radeon: ring at 0x00000000D0000000
                [ 1.240285] [drm] ring test succeeded in 0 usecs
                [ 1.246409] [drm] radeon: ib pool ready.
                [ 1.246513] [drm] ib test succeeded in 0 usecs
                [ 1.246889] [drm] Default TV standard: PAL
                [ 1.246893] [drm] 27.000000000 MHz TV ref clk
                [ 1.246898] [drm] DFP table revision: 3
                [ 1.247185] [drm] Default TV standard: PAL
                [ 1.247188] [drm] 27.000000000 MHz TV ref clk
                [ 1.247282] [drm] Radeon Display Connectors
                [ 1.247286] [drm] Connector 0:
                [ 1.247288] [drm] VGA
                [ 1.247292] [drm] DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
                [ 1.247294] [drm] Encoders:
                [ 1.247296] [drm] CRT1: INTERNAL_DAC1
                [ 1.247299] [drm] Connector 1:
                [ 1.247301] [drm] DVI-I
                [ 1.247303] [drm] HPD1
                [ 1.247306] [drm] DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
                [ 1.247308] [drm] Encoders:
                [ 1.247310] [drm] CRT2: INTERNAL_DAC2
                [ 1.247313] [drm] DFP1: INTERNAL_TMDS1
                [ 1.247315] [drm] Connector 2:
                [ 1.247317] [drm] S-video
                [ 1.247319] [drm] Encoders:
                [ 1.247321] [drm] TV1: INTERNAL_DAC2
                [ 1.368041] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 1.368045] [drm] in favor of DVI-I-1
                [ 1.397717] [drm] fb mappable at 0xC0040000
                [ 1.397722] [drm] vram apper at 0xC0000000
                [ 1.397726] [drm] size 5242880
                [ 1.397729] [drm] fb depth is 24
                [ 1.397733] [drm] pitch is 5120
                [ 1.397863] fb0: radeondrmfb frame buffer device
                [ 1.397879] [drm] Initialized radeon 2.0.0 20080528 for 0000:01:00.0 on minor 0
                [ 1.397928] radeon 0000:02:00.0: enabling device (0000 -> 0003)
                [ 1.397954] radeon 0000:02:00.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
                [ 1.397964] radeon 0000:02:00.0: setting latency timer to 64
                [ 1.399711] [drm] radeon: Initializing kernel modesetting.
                [ 1.399918] radeon 0000:02:00.0: PCI: Disallowing DAC for device
                [ 1.399922] radeon: No suitable DMA available.
                [ 1.399952] [drm] register mmio base: 0xFBE00000
                [ 1.399955] [drm] register mmio size: 65536
                [ 1.465745] [drm] GPU reset succeed (RBBM_STATUS=0x00000140)
                [ 1.465753] [drm] GPU not posted. posting now...
                [ 1.573837] [drm] Generation 2 PCI interface, using max accessible memory
                [ 1.573843] [drm] radeon: VRAM 128M
                [ 1.573847] [drm] radeon: VRAM from 0x00000000 to 0x07FFFFFF
                [ 1.573849] [drm] radeon: GTT 512M
                [ 1.573852] [drm] radeon: GTT from 0x20000000 to 0x3FFFFFFF
                [ 1.573926] radeon 0000:02:00.0: irq 49 for MSI/MSI-X
                [ 1.573935] [drm] radeon: using MSI.
                [ 1.573970] [drm] radeon: irq initialized.
                [ 1.574427] [drm] Detected VRAM RAM=128M, BAR=128M
                [ 1.574432] [drm] RAM width 64bits DDR
                [ 1.574453] [drm] radeon: 128M of VRAM memory ready
                [ 1.574456] [drm] radeon: 512M of GTT memory ready.
                [ 1.574461] [drm] GART: num cpu pages 131072, num gpu pages 131072
                [ 1.575314] [drm] radeon: 1 quad pipes, 1 Z pipes initialized.
                [ 1.575369] [drm] PCIE GART of 512M enabled (table at 0x00040000).
                [ 1.575375] [drm] radeon: cp idle (0x10000C03)
                [ 1.575452] [drm] Loading R300 Microcode
                [ 1.575861] platform radeon_cp.0: firmware: requesting radeon/R300_cp.bin
                [ 1.579509] [drm] radeon: ring at 0x0000000020000000
                [ 1.579540] [drm] ring test succeeded in 0 usecs
                [ 1.579917] [drm] radeon: ib pool ready.
                [ 1.579943] [drm] ib test succeeded in 0 usecs
                [ 1.580170] [drm] DFP table revision: 4
                [ 1.580272] [drm] Radeon Display Connectors
                [ 1.580278] [drm] Connector 0:
                [ 1.580282] [drm] VGA
                [ 1.580287] [drm] DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
                [ 1.580291] [drm] Encoders:
                [ 1.580295] [drm] CRT1: INTERNAL_DAC1
                [ 1.580299] [drm] Connector 1:
                [ 1.580303] [drm] DVI-I
                [ 1.580307] [drm] HPD1
                [ 1.580314] [drm] DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
                [ 1.580318] [drm] Encoders:
                [ 1.580322] [drm] CRT2: INTERNAL_DAC2
                [ 1.580326] [drm] DFP1: INTERNAL_TMDS1
                [ 1.978212] [drm] fb mappable at 0xF00C0000
                [ 1.978217] [drm] vram apper at 0xF0000000
                [ 1.978220] [drm] size 8294400
                [ 1.978222] [drm] fb depth is 24
                [ 1.978224] [drm] pitch is 7680
                [ 1.978354] fb1: radeondrmfb frame buffer device
                [ 1.978365] [drm] Initialized radeon 2.0.0 20080528 for 0000:02:00.0 on minor 1
                [ 2.458388] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 2.458393] [drm] in favor of DVI-I-1
                [ 2.468334] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 2.468338] [drm] in favor of DVI-I-1
                [ 56.388766] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
                [ 57.546187] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 57.546197] [drm] in favor of DVI-I-1
                [ 57.564918] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 57.564925] [drm] in favor of DVI-I-1
                [ 57.643689] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 57.643696] [drm] in favor of DVI-I-1
                [ 57.658316] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 57.658323] [drm] in favor of DVI-I-1
                [ 99.701578] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 99.701584] [drm] in favor of DVI-I-1
                [ 99.711550] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 99.711556] [drm] in favor of DVI-I-1
                [ 99.785980] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 99.785987] [drm] in favor of DVI-I-1
                [ 99.795940] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 99.795945] [drm] in favor of DVI-I-1
                [ 106.586558] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 106.586565] [drm] in favor of DVI-I-1
                [ 106.596515] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 106.596521] [drm] in favor of DVI-I-1
                [ 106.784648] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 106.784655] [drm] in favor of DVI-I-1
                [ 106.794599] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 106.794603] [drm] in favor of DVI-I-1
                [ 136.517509] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 136.517516] [drm] in favor of DVI-I-1
                [ 136.554174] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 136.554184] [drm] in favor of DVI-I-1
                [ 138.547715] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 138.547722] [drm] in favor of DVI-I-1
                [ 138.557709] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 138.557716] [drm] in favor of DVI-I-1
                [ 140.156774] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 140.156781] [drm] in favor of DVI-I-1
                [ 140.602062] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 140.602071] [drm] in favor of DVI-I-1
                [ 155.398876] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 155.398884] [drm] in favor of DVI-I-1
                [ 155.483070] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 155.483079] [drm] in favor of DVI-I-1
                [ 156.039896] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 156.039904] [drm] in favor of DVI-I-1
                [ 156.103116] [drm] 2: conflicting encoders switching off SVIDEO-1
                [ 156.103124] [drm] in favor of DVI-I-1

                Do you know how to enable S-video even in clone mode of DVI output?
                Forced load_detection option doesn't enable it as it did on UMS - xrandr always tells it's disabled.

                Btw, agd5f, could you please take a look at my GL problem on the second head (RV370 card) - I get no errors with glxinfo or glxgears output but glxgears works good only for 1-2 seconds, then my desktop freezes from one to few seconds, then 1-2 seconds of glxgears working OK and so on...
                my primary post with logs
                I wonder if the line:
                [ 1.399922] radeon: No suitable DMA available.
                has anything to do with this problem.
                I've tried to mix some video related settings in BIOS but it didn't help either.

                Comment


                • #9
                  Edit: And unlike I've said in other thread that I have no accel at all on this head, I do have at least XV accel - media players can play movies without problems even scalled to 1080p LCD TV resolution. It seems that my problem is only GL related.

                  Comment


                  • #10
                    Edit2: And it's on Mesa 7.7 and 7.7.1, too (yesterday Mesa in Lucid was upgraded to 7.7.1).
                    [ ehm, that only 1 minute for edit post... ]

                    Comment


                    • #11
                      I also tested zaphod with KMS and found that xrandr doesn't play nice with DISPLAY=:0.1. I have to log out and back in when I plug the TV.

                      First tests I made were on U64 karmic + 2.6.33 + xorg-edgers (few weeks ago). My HD3650 AGP (RV635) was able to drive a 1280x1024 LCD via DVI and a 1920x1080 TV via DVI->HDMI, but only if the TV was connected at boot, otherwise xrandr couldn't open display :0.1 like you.
                      At the time, I did the same tests and had the same results on my laptop with an X1270 (RS690) (or actually worse considering the annoying issue with the mouse cursor able to go to display :0.1 but not back to :0.0).
                      Then, after testing again with the laptop using today's packages (same results), I did an additional test: TV unplugged at boot -> auto-login (xrandr cannot open display :0.1) -> log out (TV starts displaying image) -> log in -> xrandr OK (lists supported modes) -> unplug TV -> xrandr KO? (see below) -> re-plug TV (image appears without having to use xrandr!)
                      HDMI-0 disconnected 1920x1080+0+0 (normal left inverted right x axis y axis) 708mm x 398mm
                      1920x1080 (0x7f) 148.5MHz
                      h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 56.2KHz
                      v: height 1080 start 1084 end 1089 total 1125 clock 50.0Hz

                      So it seems xrandr cannot enable or disable a screen on display :0.1, even when setting DISPLAY variable correctly (or at least I haven't gound a way to do so). Only logging out allows configuration of screens as per xorg.conf.

                      In the meantime, I tested kde in lucid beta as I heard they are sorting out slowly their multi head support. I can hotplug fine any screen with a script and no xorg.conf. It's not zaphod mode, but IMHO virtual screen handling is a bit better than gnome: backgound image not stretched (and hence not corrupted beyond 2048), window maximizing ok, panel placement mostly ok, other single display benefits...

                      Hope this helps

                      PY

                      Comment


                      • #12
                        correct link for script

                        Comment


                        • #13
                          I've just tried radeon 6.13.0 driver release and this new release didn't solve neither of the problems mentioned.

                          Comment


                          • #14
                            doing anything dynamic with zaphod is a recipe for trouble. Zaphod support is basically just to support backwards compatibility with old static zaphod setups. If you want dynamic, don't use zaphod.

                            Comment


                            • #15
                              Originally posted by xeros View Post
                              I've got simmilar problem with KMS and S-video.
                              On my Lucid installation S-video gets disabled at boot time on KMS because of DAC encoders conflict:

                              Do you know how to enable S-video even in clone mode of DVI output?
                              Forced load_detection option doesn't enable it as it did on UMS - xrandr always tells it's disabled.
                              The analog portion of the DVI port and the S-video port share the same DAC. You can't use both at the same time.

                              Comment

                              Working...
                              X