[mythtv-users] Cannot get TVOut to work: NVidia MX440

Carl Petersen carl.petersen at myrealbox.com
Sun Oct 26 18:46:03 EST 2003


Well,
  I took the plunge, and decided to build a MythTV box.
  Took the cowards way out and took a hardware suggestion from Jarod
Wilson with his excellent instructions at
http://pvrhw.goldfish.org/tiki-page.php?pageName=rh9pvr250 (though the
hardware no longer appears on the page, I believe the below was Jarod's
testing rig).

  Hardware:
    MB:  MCI Combo-L
    Video:  AGP 8x nVidia GeForce4 MX 440 (Gainville? manufacturer;  hey
it was cheap)
    Hauppage Win-PVR-250 with the grey remote
    Audiology Soundcard with Firewire out (couldn't find the cheaper
audiology without firewire out)
    AthlonXP 1800+
    512MB 333MHz DDR
    Combo DVD/CDRW
    120GB Maxtor HD, 7200RPM


  My first go, I forgot to do the 'apt-get dist upgrade' in step 6.
Didn't figure out that this was a problem until the lircd setup.
However, on this pass, the nvidia setup worked.

  Well, I decided that all too much had changed, since not doing the
step 6 'dist upgrade', so I nuked the hard-drive, and re-installed
redhat, and started over.  Not much work really;  just watch the
downloads occur.  :-)  Oh, and I changed monitors;  the one I had been
using (an HP A4033A) needing to do duty on the win2k game machine.
Using a generic 19-inch (with failing contrast/brightness).

  Anyway, when I got to the nvidia install portion, I was surprised to
have the 'startx' fail.  However Jerod had a note in there (absent from
his latest version of the document) that this could be resolved later in
the process, so I shrugged an moved on.

  Had the 'ivtv' trouble others reported:  solved via a grab of the
haupage card driver from it's homepage, and running the 'bin extractor'
utility from ivtv.  'ivtv' gave me no more trouble, and lircd (with irw)
worked great.

  So I did the rest of the MythTV install, and configuration.  Hacked
together a working 'changechannel' from two other scripts that worked
with my DirectTV receiver, using the serial port cable bought as
suggested somewhere.

  Anyway, all works fab, so I get to the output issue, and 'startx' with
the appropriately modified XF86Config doesn't seem to work.  Get the
dreaded (and occasionally mentioned) "no screens found" error.

Ok, here's how it goes:

I boot the machine, and the TV and Monitor both show the BIOS loadup, as
well as the RH9 boot information;  really neat to see the TV showing
computer-style messages (if a bit fuzzy).

When I get to the start the XServer, the TV get's blank, and I go
through the 'would you like to fix this' dialogs, and end up saying
'no', logging in as root, replacing the XF86Config with a good version
generated earlier by 'redhat-config-xfree86'.  And then I start fiddling.

And I've fiddled with all I can see to fiddle.

I've searched the nVidia Linux forums, and while some of the problems
reported there report the 'no screens found' message, the poster is
almost always using the latest nVidia driver.  And I'm not.  I'm using
the Axil-generated one.  Here's some output from my machine:

/sbin/lsmod:
Module                  Size  Used by    Not tainted
via82cxxx_audio        24284   0  (autoclean)
uart401                 8356   0  (autoclean) [via82cxxx_audio]
lirc_i2c                5376   1  (autoclean)
lirc_dev               10096   1  (autoclean) [lirc_i2c]
ivtv                   76888   0  (autoclean)
msp3400                20076   1  (autoclean)
saa7115                 8056   0  (autoclean) (unused)
tuner                  12384   1  (autoclean)
i2c-algo-bit            8904   0  (autoclean) [ivtv]
i2c-core               20964   0  (autoclean) [lirc_i2c ivtv msp3400
saa7115 tuner i2c-algo-bit]
videodev                8288   3  (autoclean) [ivtv]
audigy                 78248   0  (autoclean)
ac97_codec             14536   0  (autoclean) [via82cxxx_audio audigy]
sound                  73492   0  (autoclean) [via82cxxx_audio uart401
audigy]
soundcore               6500   9  (autoclean) [via82cxxx_audio audigy sound]
parport_pc             18788   1  (autoclean)
lp                      8836   0  (autoclean)
parport                36800   1  (autoclean) [parport_pc lp]
iptable_filter          2444   0  (autoclean) (unused)
ip_tables              14648   1  [iptable_filter]
autofs                 13236   0  (autoclean) (unused)
via-rhine              16016   1
mii                     3992   0  [via-rhine]
sg                     35852   0  (autoclean)
sr_mod                 17752   0  (autoclean)
serial                 55204   0  (autoclean)
ide-scsi               11984   0
scsi_mod              106552   3  [sg sr_mod ide-scsi]
ide-cd                 35424   0
cdrom                  33216   0  [sr_mod ide-cd]
ohci1394               19912   0  (unused)
ieee1394               48780   0  [ohci1394]
keybdev                 2912   0  (unused)
mousedev                5428   1
hid                    21924   0  (unused)
input                   5824   0  [keybdev mousedev hid]
usb-uhci               25996   0  (unused)
ehci-hcd               19816   0  (unused)
usbcore                78560   1  [hid usb-uhci ehci-hcd]
ext3                   70112   5
jbd                    51508   5  [ext3]

The use of '/sbin/modprobe nvidia' yields:

Warning: loading
/lib/modules/2.4.20-20_29.rh9.at/kernel/drivers/video/nvidia.o will
taint the kernel: non-GPL license - NVIDIA
  See http://www.tux.org/lkml/#export-tainted for information about
tainted modules
Module nvidia loaded, with warnings

Running 'rpm -qa nvidia*' yields:

nvidia-graphics-kmdl-2.4.20-20_29.rh9.at-1.0_4363-15.rh9.at
nvidia-graphics-glx-1.0_4363-11.rh9.at

Running '/sbin/lspci -v' yields:

> 00:00.0 Host bridge: VIA Technologies, Inc. VT8375 [KM266] Host Bridge
>     Subsystem: VIA Technologies, Inc. VT8375 [KM266] Host Bridge
>     Flags: bus master, 66Mhz, medium devsel, latency 8
>     Memory at d0000000 (32-bit, prefetchable) [size=128M]
>     Capabilities: [a0] AGP version 2.0
>     Capabilities: [c0] Power Management version 2
>
> 00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP] 
> (prog-if 00 [Normal decode])
>     Flags: bus master, 66Mhz, medium devsel, latency 0
>     Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
>     Memory behind bridge: ec000000-edffffff
>     Prefetchable memory behind bridge: d8000000-e7ffffff
>     Capabilities: [80] Power Management version 2
>
> 00:05.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
>     Subsystem: Creative Labs SB0090 Audigy Player/OEM
>     Flags: bus master, medium devsel, latency 32, IRQ 11
>     I/O ports at a000 [size=32]
>     Capabilities: [dc] Power Management version 2
>
> 00:05.1 Input device controller: Creative Labs SB Audigy MIDI/Game 
> port (rev 03)
>     Subsystem: Creative Labs SB Audigy MIDI/Game Port
>     Flags: bus master, medium devsel, latency 32
>     I/O ports at a400 [size=8]
>     Capabilities: [dc] Power Management version 2
>
> 00:05.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port 
> (rev 01) (prog-if 10 [OHCI])
>     Subsystem: Creative Labs SB Audigy FireWire Port
>     Flags: bus master, medium devsel, latency 32, IRQ 10
>     Memory at ee004000 (32-bit, non-prefetchable) [size=2K]
>     Memory at ee000000 (32-bit, non-prefetchable) [size=16K]
>     Capabilities: [44] Power Management version 2
>
> 00:06.0 Multimedia video controller: Internext Compression Inc: 
> Unknown device 0016 (rev 01)
>     Subsystem: Hauppauge computer works Inc.: Unknown device 4009
>     Flags: bus master, medium devsel, latency 32, IRQ 10
>     Memory at e8000000 (32-bit, prefetchable) [size=64M]
>     Capabilities: [44] Power Management version 2
>
> 00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 
> 00 [UHCI])
>     Subsystem: VIA Technologies, Inc. USB
>     Flags: bus master, medium devsel, latency 32, IRQ 11
>     I/O ports at a800 [size=32]
>     Capabilities: [80] Power Management version 2
>
> 00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 
> 00 [UHCI])
>     Subsystem: VIA Technologies, Inc. USB
>     Flags: bus master, medium devsel, latency 32, IRQ 10
>     I/O ports at ac00 [size=32]
>     Capabilities: [80] Power Management version 2
>
> 00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 
> 00 [UHCI])
>     Subsystem: VIA Technologies, Inc. USB
>     Flags: bus master, medium devsel, latency 32, IRQ 5
>     I/O ports at b000 [size=32]
>     Capabilities: [80] Power Management version 2
>
> 00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) 
> (prog-if 20 [EHCI])
>     Subsystem: Micro-Star International Co., Ltd.: Unknown device 7380
>     Flags: bus master, medium devsel, latency 32, IRQ 11
>     Memory at ee005000 (32-bit, non-prefetchable) [size=256]
>     Capabilities: [80] Power Management version 2
>
> 00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
>     Subsystem: VIA Technologies, Inc. VT8235 ISA Bridge
>     Flags: bus master, stepping, medium devsel, latency 0
>     Capabilities: [c0] Power Management version 2
>
> 00:11.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC 
> Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
>     Subsystem: Micro-Star International Co., Ltd.: Unknown device 7380
>     Flags: bus master, medium devsel, latency 32
>     I/O ports at b400 [size=16]
>     Capabilities: [c0] Power Management version 2
>
> 00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 
> AC97 Audio Controller (rev 50)
>     Subsystem: Micro-Star International Co., Ltd.: Unknown device 7380
>     Flags: medium devsel, IRQ 5
>     I/O ports at b800 [size=256]
>     Capabilities: [c0] Power Management version 2
>
> 00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] 
> (rev 74)
>     Subsystem: Micro-Star International Co., Ltd.: Unknown device 738c
>     Flags: bus master, medium devsel, latency 32, IRQ 11
>     I/O ports at bc00 [size=256]
>     Memory at ee006000 (32-bit, non-prefetchable) [size=256]
>     Capabilities: [40] Power Management version 2
>
> 01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 
> MX 440] (rev a3) (prog-if 00 [VGA])
>     Subsystem: CardExpert Technology: Unknown device 0002
>     Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 11
>     Memory at ec000000 (32-bit, non-prefetchable) [size=16M]
>     Memory at d8000000 (32-bit, prefetchable) [size=128M]
>     Memory at e0000000 (32-bit, prefetchable) [size=512K]
>     Expansion ROM at <unassigned> [disabled] [size=128K]
>     Capabilities: [60] Power Management version 2
>     Capabilities: [44] AGP version 2.0
>
I've got MythTV working great on the monitor;  the big issue here is
getting it running on the TV... :-)

Any help on this would be really appreciated;  I've hacked on the
XF86Config so many times it's hard for me to tell now what I've tried
and what I haven't.  I've even gone back to make sure I'm using 'tabs'
rather then spaces all through, since I thought that might be the issue
(ala the famous Makefile error).  So without futher ado, here's the
XF86Config that _doesn't_ work:

------------------------------------------------
XF86Config.inprocess-----------------------------------
# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "DevInputMice" "AlwaysCore"
EndSection

Section "Files"
# RgbPath is the location of the RGB database.  Note, this is the name
of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

    RgbPath      "/usr/X11R6/lib/X11/rgb"
    FontPath     "unix/:7100"
EndSection

Section "Module"
    Load  "dbe"
    Load  "extmod"
    Load  "fbdevhw"
    Load  "glx"
    Load  "record"
    Load  "freetype"
    Load  "type1"
    Load  "v4l"
EndSection

Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option    "Xleds"        "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
#    Option    "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#    Option    "XkbModel"    "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#    Option    "XkbModel"    "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#    Option    "XkbLayout"    "de"
# or:
#    Option    "XkbLayout"    "de"
#    Option    "XkbVariant"    "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#    Option    "XkbOptions"    "ctrl:swapcaps"
# Or if you just want both to be control, use:
#    Option    "XkbOptions"    "ctrl:nocaps"
#
    Identifier  "Keyboard0"
    Driver      "keyboard"
    Option        "XkbRules" "xfree86"
    Option        "XkbModel" "pc105"
    Option        "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "IMPS/2"
    Option        "Device" "/dev/psaux"
    Option        "ZAxisMapping" "4 5"
    Option        "Emulate3Buttons" "yes"
EndSection

Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
    Identifier  "DevInputMice"
    Driver      "mouse"
    Option        "Protocol" "IMPS/2"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5"
    Option        "Emulate3Buttons" "no"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Unknown monitor"
    HorizSync    30.0 - 50.0
    VertRefresh  50.0 - 70.0
#    Option        "dpms"
EndSection

Section "Device"
    Identifier  "Videocard0"
    Driver      "nvidia"
    VendorName  "Videocard vendor"
    BoardName   "NVIDIA GeForce 4 MX 440 (generic)"
    Option "RenderAccel" "1"
#    Option "NvAGP" "1"
    # TV Out Setup
    Option      "TwinView"
    Option      "TwinViewOrientation" "Clone"
    Option      "SecondMonitorHorizSync" "30-50"
    Option      "SecondMonitorVertRefresh" "60"
    Option      "MetaModes" "1024x768, 1024x768; 800x600, 800x600;
640x480, 640x480;"
    Option      "TVStandard" "NTSC-M"
    Option      "TVOutFormat" "SVIDEO"
    Option      "TVOverScan" "0.6"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Videocard0"
    Monitor    "Monitor0"
    DefaultDepth     16
    SubSection "Display"
        Depth     16
        Modes    "800x600" "640x480"
    EndSubSection
EndSection

Section "DRI"
    Group        0
    Mode         0666
EndSection

-------------------------------------------------end
XF86Config.inprocess------------------------------

A strange thing I noted:  after running 'redhat-config-xfree86', I did
not get a line 'Options "dvi"' and I'm pretty sure I had one before...
And of course, since the first install had no difficulty with this step,
I did not back up my first XF86Config file... *rats*

I'm hoping that I'm just an idiot here;  that I've missed something
simple.  But I'm starting to panic a bit here.

Thanks in advance for any advice someone can offer me.  I have a
fabulous system I'm very happy with, working with DirectTV (!) save for
the small problem of the TV hookup...



Carl Petersen
"There are 10 types of people in the world, those the understand binary,
and those that don't."










More information about the mythtv-users mailing list