[mythtv-users] Re: Xorg over Hauppauge PVR-350 tv-out woes

Jason Scott Musits jmusits at gmail.com
Wed May 4 17:43:33 UTC 2005


On 5/4/05 Nick <knowledgejunkie at gmail.com> wrote:
> Jason,
> 
> Assuming the ivtv and ivtv-fb modules are loading properly, try the
> following (from my known working xorg.conf for ivtv 0.2.0-rc3f) and
> see if anything improves:
> 
> Amend the Device section in xorg.conf to the following:
> 
> Section "Device"
>    Identifier  "Haupauge PVR-350"
>    Driver      "ivtvdev"
>    Option      "fbdev" "/dev/fb0"
>    BusID       "1:9:0"
> EndSection
> 
> and your Screen section to the following:
> 
> Section "Screen"
>    Identifier  "Haupauge Screen"
>    Device      "Haupauge PVR-350"
>    Monitor     "Television"
>    DefaultDepth    24
>    Subsection "Display"
>        Depth       24
>        FbBpp       32
>        Modes       "720x480"
>    EndSubsection
> EndSection
> 
> 
> I'm sure the ivtvdev driver need to be setup for 24bit colour, and
> that the options of the ivtv driver are fbdev, and not ivtvdev in this
> version.
> 
> Please also post the relevant /var/log/Xorg.0.log and
> /var/log/messages sections to see where the card is failing to
> initialise properly. (in message, there is an obvious ivtv
> initialisation log)
> 
> Nick

Nick,

I changed my xorg.conf file like you suggested and installed
ivtv-0.2.0-rc3f.  With the 24-bit color depth X fails to load (error
below) claiming that the ivtvdev driver does not support 24bit color
(although every working xorg.conf file i have seen has 24 bit color).
Note, this is the same result as with ivtv-0.2.0-rc3j.  The second time
I try to run X the system locks up and I heed to do a hard reboot.  I
tried changing the depth setting to 16 and X loads with the same result
as before.  I will post that error message below as well along with
my /var/log/messages.

======================================================================
Xorg.0.log for 24-bit color depth:

(II) LoadModule: "ivtvdev"
(II) Loading /usr/lib/modules/drivers/ivtvdev_drv.o
(II) Module ivtv: vendor="The XFree86 Project"
        compiled for 4.3.0, module version = 0.8.0
        ABI class: XFree86 Video Driver, version 0.6
(II) v4l driver for Video4Linux
(II) IVTVDEV: driver for framebuffer: PVR-350
(II) Primary Device is: PCI 02:00:0
(--) Chipset PVR-350 found 
(II) resource ranges after xf86ClaimFixedResources() call: 
        [0] -1  0       0xffe00000 - 0xffffffff (0x200000) MX[B](B)
        [1] -1  0       0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
        [2] -1  0       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [3] -1  0       0x000c0000 - 0x000effff (0x30000) MX[B]
        [4] -1  0       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [5] -1  0       0xfc9f0000 - 0xfc9fffff (0x10000) MX[B]
        [6] -1  0       0xfc9efc00 - 0xfc9efcff (0x100) MX[B]
        [7] -1  0       0xf8000000 - 0xf7ffffff (0x0) MX[B]O
        [8] -1  0       0xfeaf0000 - 0xfeafffff (0x10000) MX[B](B)
        [9] -1  0       0xf2000000 - 0xf3ffffff (0x2000000) MX[B](B)
        [10] -1 0       0xfd000000 - 0xfdffffff (0x1000000) MX[B](B)
        [11] -1 0       0xec000000 - 0xefffffff (0x4000000) MX[B](B)
        [12] -1 0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [13] -1 0       0x00000000 - 0x000000ff (0x100) IX[B]
        [14] -1 0       0x0000df00 - 0x0000df3f (0x40) IX[B]
        [15] -1 0       0x0000dff0 - 0x0000dff7 (0x8) IX[B]
        [16] -1 0       0x0000d800 - 0x0000d8ff (0x100) IX[B]
        [17] -1 0       0x0000efa0 - 0x0000efaf (0x10) IX[B]
        [18] -1 0       0x0000ef80 - 0x0000ef9f (0x20) IX[B]
        [19] -1 0       0x0000ffa0 - 0x0000ffaf (0x10) IX[B]
(II) IVTVDEV(0): using /dev/fb0
(II) resource ranges after probing:
        [0] -1  0       0xffe00000 - 0xffffffff (0x200000) MX[B](B)
        [1] -1  0       0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
        [2] -1  0       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [3] -1  0       0x000c0000 - 0x000effff (0x30000) MX[B]
        [4] -1  0       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [5] -1  0       0xfc9f0000 - 0xfc9fffff (0x10000) MX[B]
        [6] -1  0       0xfc9efc00 - 0xfc9efcff (0x100) MX[B]
        [7] -1  0       0xf8000000 - 0xf7ffffff (0x0) MX[B]O
        [8] -1  0       0xfeaf0000 - 0xfeafffff (0x10000) MX[B](B)
        [9] -1  0       0xf2000000 - 0xf3ffffff (0x2000000) MX[B](B)
        [10] -1 0       0xfd000000 - 0xfdffffff (0x1000000) MX[B](B)
        [11] -1 0       0xec000000 - 0xefffffff (0x4000000) MX[B](B)
        [12] 0  0       0x000a0000 - 0x000affff (0x10000) MS[B]
        [13] 0  0       0x000b0000 - 0x000b7fff (0x8000) MS[B]
        [14] 0  0       0x000b8000 - 0x000bffff (0x8000) MS[B]
        [15] -1 0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [16] -1 0       0x00000000 - 0x000000ff (0x100) IX[B]
        [17] -1 0       0x0000df00 - 0x0000df3f (0x40) IX[B]
        [18] -1 0       0x0000dff0 - 0x0000dff7 (0x8) IX[B]
        [19] -1 0       0x0000d800 - 0x0000d8ff (0x100) IX[B]
        [20] -1 0       0x0000efa0 - 0x0000efaf (0x10) IX[B]
        [21] -1 0       0x0000ef80 - 0x0000ef9f (0x20) IX[B]
        [22] -1 0       0x0000ffa0 - 0x0000ffaf (0x10) IX[B] 
        [23] 0  0       0x000003b0 - 0x000003bb (0xc) IS[B]
        [24] 0  0       0x000003c0 - 0x000003df (0x20) IS[B]
(II) Setting vga for screen 0.
(EE) IVTVDEV(0): Driver can't support depth 24
(II) UnloadModule: "ivtvdev"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

=====================================================================

Xorg.0.log with 16 bit color depth (the end is the only part that
differs:

(II) Setting vga for screen 0.
(**) IVTVDEV(0): Depth 16, (--) framebuffer bpp 16
(==) IVTVDEV(0): RGB weight 565
(==) IVTVDEV(0): Default visual is TrueColor
(==) IVTVDEV(0): Using gamma correction (1.0, 1.0, 1.0)
(II) IVTVDEV(0): Hardware: iTVC15 TV out (vidmem: 2025k)
(II) IVTVDEV(0): Checking Modes against framebuffer device...
(II) IVTVDEV(0):        mode "720x480" ok
(II) IVTVDEV(0): Checking Modes against monitor...
(--) IVTVDEV(0): Virtual size is 720x480 (pitch 720)
(**) IVTVDEV(0):  Mode "720x480": 34.6 MHz (scaled from 0.0 MHz), 37.2
kHz, 73.9 Hz
(II) IVTVDEV(0): Modeline "720x480"   34.56  720 752 840 928  480 484
488 504 -hsync -vsync
(==) IVTVDEV(0): DPI set to (75, 75) 
(II) Loading sub module "fb"
(II) LoadModule: "fb"   
(II) Loading /usr/lib/modules/libfb.a
(II) Module fb: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.2
(**) IVTVDEV(0): Using "Shadow Framebuffer"
(II) Loading sub module "shadow"
(II) LoadModule: "shadow"
(II) Loading /usr/lib/modules/libshadow.a
(II) Module shadow: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.2
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
        [0] 0   0       0xec000000 - 0xefffffff (0x4000000) MX[B]
        [1] -1  0       0xffe00000 - 0xffffffff (0x200000) MX[B](B)
        [2] -1  0       0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
        [3] -1  0       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [4] -1  0       0x000c0000 - 0x000effff (0x30000) MX[B]
        [5] -1  0       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [6] -1  0       0xfc9f0000 - 0xfc9fffff (0x10000) MX[B]
        [7] -1  0       0xfc9efc00 - 0xfc9efcff (0x100) MX[B]
        [8] -1  0       0xf8000000 - 0xf7ffffff (0x0) MX[B]O
        [9] -1  0       0xfeaf0000 - 0xfeafffff (0x10000) MX[B](B)
        [10] -1 0       0xf2000000 - 0xf3ffffff (0x2000000) MX[B](B)
        [11] -1 0       0xfd000000 - 0xfdffffff (0x1000000) MX[B](B)
        [12] -1 0       0xec000000 - 0xefffffff (0x4000000) MX[B](B)
        [13] 0  0       0x000a0000 - 0x000affff (0x10000) MS[B]
        [14] 0  0       0x000b0000 - 0x000b7fff (0x8000) MS[B]
        [15] 0  0       0x000b8000 - 0x000bffff (0x8000) MS[B]
        [16] -1 0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [17] -1 0       0x00000000 - 0x000000ff (0x100) IX[B]
        [18] -1 0       0x0000df00 - 0x0000df3f (0x40) IX[B]
        [19] -1 0       0x0000dff0 - 0x0000dff7 (0x8) IX[B]
        [20] -1 0       0x0000d800 - 0x0000d8ff (0x100) IX[B]
        [21] -1 0       0x0000efa0 - 0x0000efaf (0x10) IX[B]
        [22] -1 0       0x0000ef80 - 0x0000ef9f (0x20) IX[B]
        [23] -1 0       0x0000ffa0 - 0x0000ffaf (0x10) IX[B]
        [24] 0  0       0x000003b0 - 0x000003bb (0xc) IS[B]
        [25] 0  0       0x000003c0 - 0x000003df (0x20) IS[B]
        bitsPerPixel=16, depth=16, defaultVisual=TrueColor
        mask: f800,7e0,1f, offset: 11,5,0
(EE) IVTVDEV(0): FBIOBLANK: Invalid argument
(EE) IVTVDEV(0): FBIOPAN_DISPLAY: Invalid argument
(==) IVTVDEV(0): Backing store disabled

(==) RandR enabled
(II) Setting vga for screen 0.
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
(**) Option "CoreKeyboard"
(**) Keyboard1: Core Keyboard
(**) Option "Protocol" "standard"
(**) Keyboard1: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) Keyboard1: XkbRules: "xorg"
(**) Option "XkbModel" "pc101"
(**) Keyboard1: XkbModel: "pc101"
(**) Option "XkbLayout" "us"
(**) Keyboard1: XkbLayout: "us"
(**) Option "CustomKeycodes" "off"
(**) Keyboard1: CustomKeycodes disabled
(**) Option "Protocol" "Auto"
(**) Mouse1: Device: "/dev/input/mouse0"
(**) Mouse1: Protocol: "Auto"
(**) Option "CorePointer"
(**) Mouse1: Core Pointer
(**) Option "Device" "/dev/input/mouse0"
(==) Mouse1: Emulate3Buttons, Emulate3Timeout: 50
(==) Mouse1: Buttons: 3
(**) Mouse1: SmartScroll: 1
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) XINPUT: Adding extended input device "Keyboard1" (type: KEYBOARD)
(--) Mouse1: PnP-detected protocol: "ExplorerPS/2"
(II) Mouse1: ps2EnableDataReporting: succeeded
(EE) IVTVDEV(0): FBIOBLANK: Invalid argument

=====================================================================

/var/log/messages:

May  4 13:31:44 reba Linux video capture interface: v1.00
May  4 13:31:44 reba ivtv: ==================== START INIT IVTV
====================
May  4 13:31:44 reba ivtv: version 0.2.0 (rc3f) loading
May  4 13:31:44 reba ivtv: Linux version: 2.6.11-gentoo-r5 preempt
PENTIUMIII gcc-3.3
May  4 13:31:44 reba ivtv: In case of problems please include the debug
info
May  4 13:31:44 reba ivtv: between the START INIT IVTV and END INIT IVTV
lines when
May  4 13:31:44 reba ivtv: mailing the ivtv-devel mailinglist.
May  4 13:31:44 reba ivtv: Autodetected WinTV PVR 350 card
May  4 13:31:44 reba ivtv: Found an iTVC15 based chip
May  4 13:31:44 reba PCI: Found IRQ 11 for device 0000:01:09.0
May  4 13:31:44 reba ivtv: XXX PCI device: 0x1130 vendor: 0x8086
May  4 13:31:44 reba tveeprom: Hauppauge: model = 48132, rev = K168,
serial# = 2947575
May  4 13:31:44 reba tveeprom: tuner = LG TAPE H001F MK3 (idx = 68, type
= 47)
May  4 13:31:44 reba tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2
= 0x00001000)
May  4 13:31:44 reba tveeprom: audio_processor = MSP3440 (type = 11)
May  4 13:31:44 reba ivtv: i2c attach [client=tveeprom[0],ok]
May  4 13:31:44 reba ivtv: Tuner Type 47, Tuner formats 0x00001000,
Radio: yes, Model 0x00ad1598, Revision 0x00000001
May  4 13:31:44 reba ivtv: NTSC tuner detected
May  4 13:31:44 reba ivtv: Radio detected
May  4 13:31:44 reba tuner: chip found at addr 0xc2 i2c-bus ivtv i2c
driver #0
May  4 13:31:44 reba ivtv: i2c attach [client=(tuner unset),ok]
May  4 13:31:44 reba saa7115: starting probe for adapter ivtv i2c driver
#0 (0x10005)
May  4 13:31:44 reba saa7115: detecting saa7115 client on address 0x42
May  4 13:31:44 reba saa7115: writing init values
May  4 13:31:44 reba ivtv: i2c attach [client=saa7115[0],ok]
May  4 13:31:44 reba saa7115: status: (1E) 0x48, (1F) 0xc0
May  4 13:31:44 reba saa7127: video encoder driver version V 0.3 loaded
May  4 13:31:44 reba saa7127: Selecting NTSC video Standard
May  4 13:31:44 reba saa7127: Selecting S-Video+Composite
May  4 13:31:44 reba saa7127: Turn WSS off
May  4 13:31:44 reba saa7127: Widescreen Mode 4:3 Full Format
May  4 13:31:44 reba saa7127: Selecting Normal Encoder Input
May  4 13:31:44 reba saa7127: Enable Video Output
May  4 13:31:44 reba ivtv: i2c attach [client=saa7127[0],ok]
May  4 13:31:45 reba msp34xx: ivtv version
May  4 13:31:45 reba msp34xx: init: chip=MSP3448W-A2, has NICAM support,
simple (D) mode, simpler (G) no-thread mode
May  4 13:31:45 reba msp34xx: $Id$ compiled on: May  4 2005 12:27:31
May  4 13:31:45 reba ivtv: i2c attach [client=MSP3448W-A2,ok]
May  4 13:31:46 reba ivtv: Encoder revision: 0x02040024
May  4 13:31:46 reba ivtv: Encoder Firmware is buggy, use version
0x02040011
May  4 13:31:46 reba ivtv: Decoder revision: 0x02020023
May  4 13:31:46 reba ivtv: Configuring WinTV PVR 350 card with 9 streams
May  4 13:31:46 reba ivtv: Create DMA stream 0 using 256 16384 byte
buffers  4194304 kbytes total
May  4 13:31:46 reba ivtv: Registered v4l2 device, streamtype 0 minor 0
May  4 13:31:46 reba ivtv: Create DMA stream 1 
May  4 13:31:46 reba ivtv: Registered v4l2 device, streamtype 1 minor 32
May  4 13:31:46 reba ivtv: Create stream 2 using 40 52224 byte buffers
2097152 kbytes total
May  4 13:31:46 reba ivtv: Registered v4l2 device, streamtype 2 minor
224
May  4 13:31:46 reba ivtv: Create DMA stream 3 using 455 4608 byte
buffers  2097152 kbytes total
May  4 13:31:46 reba ivtv: Registered v4l2 device, streamtype 3 minor 24
May  4 13:31:46 reba ivtv: Create stream 4 
May  4 13:31:46 reba ivtv: Registered v4l2 device, streamtype 4 minor 64
May  4 13:31:46 reba ivtv: Create DMA stream 5 using 16 65536 byte
buffers  1048576 kbytes total
May  4 13:31:46 reba ivtv: Registered v4l2 device, streamtype 5 minor 16
May  4 13:31:46 reba ivtv: Create stream 6 using 1024 2048 byte buffers
262144 kbytes total
May  4 13:31:46 reba ivtv: Registered v4l2 device, streamtype 6 minor
228
May  4 13:31:46 reba ivtv: Create stream 7 
May  4 13:31:46 reba ivtv: Registered v4l2 device, streamtype 7 minor
232
May  4 13:31:46 reba ivtv: Create DMA stream 8 
May  4 13:31:46 reba ivtv: Registered v4l2 device, streamtype 8 minor 48
May  4 13:31:46 reba ivtv: Setting Tuner 47
May  4 13:31:46 reba tuner: type set to 47 (LG NTSC (TAPE series)) by
ivtv i2c driver #0
May  4 13:31:46 reba ivtv: Setting audio matrix to input 3, output 1
May  4 13:31:46 reba ivtv: Switching standard to NTSC.
May  4 13:31:46 reba ivtv: ivtv_enc_thread: pid = 5152, itv = 0xe09bf680
May  4 13:31:46 reba ivtv: ivtv_dec_thread: pid = 5153, itv = 0xe09bf680
May  4 13:31:46 reba spurious 8259A interrupt: IRQ7.
May  4 13:31:46 reba saa7115: decoder set norm NTSC
May  4 13:31:46 reba saa7115: set audio: 0x01
May  4 13:31:46 reba saa7127: Setting Encoder Video Standard
May  4 13:31:46 reba saa7127: Set NTSC Video Mode
May  4 13:31:46 reba saa7127: Selecting NTSC video Standard
May  4 13:31:46 reba ivtv: Initialized WinTV PVR 350, card #0
May  4 13:31:46 reba ivtv: ====================  END INIT IVTV
====================
May  4 13:32:35 reba ivtv-osd: Framebuffer module loaded (attached to
ivtv card id 0)
May  4 13:32:35 reba ivtv-osd: Framebuffer is at decoder-relative
address 0x00510000 and has 1704960 bytes.
May  4 13:32:35 reba ivtv-osd: screen coords: [0 0] -> [720 480]
May  4 13:32:35 reba ivtv-osd: original global alpha = 208
May  4 13:32:35 reba ivtv-osd: current OSD state = 39
May  4 13:32:35 reba ivtv-osd: new global alpha = 208 (1 255 0)
May  4 13:32:35 reba ivtv-osd: framebuffer at 0xed510000, mapped to
0xe1810000, size 1350k
May  4 13:32:35 reba ivtv-osd: mode is 720x480x32, linelength=2880
May  4 13:32:35 reba ivtv-osd: fb0: iTVC15 TV out frame buffer device

======================================================================

I know you said ivtvdev needs to run at 24 bit depth, but I included the
16 bit log because I seem to get further with that setting, and I
thought it might shed some light on the situation.

Thanks

Jason




More information about the mythtv-users mailing list