[mythtv-users] Re: Marvel G400-TV

Stefan Frank sfr+lists at 6913304088794.gnuu.de
Tue Feb 17 15:52:20 EST 2004


Hi Troy,

one day i'll start yet another marvel g400 tv-out howto :)

HTH, Stefan

----- Forwarded message from Stefan Frank <sfr at gmx.net> -----

From: Stefan Frank
Subject: Re: G400 and TV Out - about to give up
To: Alberto Grazi <alberto.grazi at db.com>

Hi Alberto!

On Fri, 17 Oct 2003, Alberto Grazi wrote:

> Thanks Stefan! I really appreciate your help, I'll give it a try as soon 
> as I get home tomorrow!
> 
> PS: Do you have a script for the tvout procedure (fbset, matroxset and 
> various other)? I'd be curious to see it...

Sure, see below.

  #!/bin/sh
  #
  # tvout
  
  # needed for G400 only
  #modprobe -k i2c-algo-bit
  modprobe -k i2c-matroxfb
  modprobe -k matroxfb_crtc2
  modprobe -k matroxfb_maven
  
  matroxset -f /dev/fb0 -m 0 # this disconnects fb0 from outputs 
  matroxset -f /dev/fb0 -m 3 # this connects fb0 to both outputs 
  matroxset -f /dev/fb0 -o 1 1 # this sets fb0 to PAL output 
  
  #fbset -fb /dev/fb0 -xres 800 -yres 600
  
  fbset --all -fb /dev/fb0 640x512-52
  
  # 800x600 mode set via kernel command line parameter
  #fbset -fb /dev/fb0 800x600-60

The videomode 640x512-52 is configured in fb.modes like this:

mode "640x512-52"
    # D: 25.175 MHz, H: 32.442 kHz, V: 51.907 Hz
    geometry 640 512 640 528 32
    timings 39722 60 0 70 39 76 4
    bcast true
    accel true
    #rgba 8/16,8/8,8/0,8/24
endmode


----- End forwarded message -----

the tvout script is run before the iv script (see below) during bootup.
Note that i start X manually with startx from a console.

iv:
---

  #!/bin/sh
  
  /sbin/modprobe -k i2c-algo-bit bit_scan=1
  /sbin/modprobe -k i2c-matroxfb
  /sbin/modprobe -k matroxfb_maven
  
  d_i2c=1
  d_core=0
  d_mjpg=0
  d_mw=0
  
  /sbin/modprobe -k msp3400  debug=$d_i2c simple=0
  /sbin/modprobe -k ks0127 debug=$d_i2c
  /sbin/modprobe -k tuner    debug=$d_i2c
  
  /sbin/modprobe videodev
  
  /sbin/modprobe -k mga_core bes_brightness=31 mgacore_debug=$d_core \
  grab_debug=$d_mw
  /sbin/modprobe -k mgacap  debug=$d_mw
  /sbin/modprobe -k mgavideo default_norm=0 debug=$d_mw
  
  /sbin/modprobe -k zr36060 debug=$d_mjpg
  /sbin/modprobe -k i33     debug=$d_mjpg
  /sbin/modprobe -k mgajpg  debug=$d_mjpg



More information about the mythtv-users mailing list