[MPlayer-users] Matrox G400 TV out problem

Jay Graves jay at skabber.com
Mon Sep 9 19:45:01 CEST 2002


> Jay is looking for NTSC modes, as opposed to PAL, but the script
> appears to only support PAL. Any ideas? Now that I hear about that
> nonsense the G400 stuff does, I'm glad I just made my own gear to use
> with G200 for tv out. :)

yes, I tried the modes that were posted in this thread earlier "ntsc"
and "ntscl" but both of them produced a small distorted terminal with
thick green bars, on the TV and disabled my monitor.

Basically I have been editing the matroxtv script, I have attached it.
-- 

Jay Graves 
jay at skabber.com
jay.skabber.com

       O__                        
      _/`.\             
          `=( '

my gpg key is available at http://jay.skabber.com/JayGraves.key
-------------- next part --------------
#!/bin/sh
# Gabucino - no warranty
# you need fbset, and matroxfb modules loaded

# mode to use on the monitor in "1-Monitor only" and "4-Dualhead" mode
# (from /etc/fb.modes)
DEFAULTMODE="768x576-60"
#DEFAULTMODE="640x480-60"

#echo "You didn't check this file for possible mis-configurations ! :)"
#exit 1

while [ 1 ]; do

clear

echo " [ 1 ]	Monitor only"
echo " [ 2 ]	Cloning  - CRTC1 to Monitor and TV"
echo " [ 3 ]	Dualhead - CRTC1 to Monitor, CRTC2 to TV"

#echo " [ 4 ]	Cloning  - CRTC2 to Monitor and TV"
#echo " [ 5 ]	Dualhead - CRTC2 to Monitor, CRTC1 to TV"

echo

#echo " [ Q ]	All consoles to fb0"
#echo " [ W ]	tty3 to fb1"
#echo

echo " [ A ]	640x512"
echo " [ S ]	640x528"
echo " [ D ]	720x576"

read ABC

case "$ABC" in
	1)
	matroxset -f /dev/fb1 -m 0
	matroxset -f /dev/fb0 -m 1
	fbset -a -fb /dev/fb0 $DEFAULTMODE
	echo
	;;

	2)
	con2fb /dev/fb1 /dev/tty3  # Strange, this eliminates green bars
	matroxset -f /dev/fb1 -m 0
	matroxset -f /dev/fb0 -m 3
	matroxset 2
	# 640x512
#	fbset -fb /dev/fb1 -left 60 -right 0 -upper 70 -lower 39 -hslen 76 -vslen 4 -xres 640 -yres 480 -bcast true
#	fbset -fb /dev/fb1 -left 72 -right 40 -upper 30 -lower 10 -hslen 48 -vslen 5 -xres 640 -yres 480 -bcast true
#	fbset -fb /dev/fb1 -left 72 -right 40 -upper 15 -lower 5 -helsen 48 -vlsen 3 -xres 640 -yres 240 -bcast true
	fbset ntsc
	con2fb /dev/fb0 /dev/tty3  # Ok, now we can take it back
	;;


	3)
	fbset -a -fb /dev/fb0 $DEFAULTMODE
	echo
	matroxset -f /dev/fb0 -m 0
	matroxset -f /dev/fb1 -m 2
	matroxset -f /dev/fb0 -m 1
	matroxset 2
	;;

	4)
	matroxset -f /dev/fb0 -m 0
	matroxset -f /dev/fb1 -m 3
	matroxset 2
	;;

	5)
	matroxset -f /dev/fb1 -m 0
	matroxset -f /dev/fb0 -m 2
	matroxset -f /dev/fb1 -m 1
	matroxset 2
	# 640x512
	fbset -fb /dev/fb1 -left 60 -right 0 -upper 70 -lower 39 -hslen 76 -vslen 4 -xres 640 -yres 512 -bcast true
	;;

	q)
	con2fb /dev/fb0 /dev/tty1
	con2fb /dev/fb0 /dev/tty2
	con2fb /dev/fb0 /dev/tty3
	con2fb /dev/fb0 /dev/tty4
	con2fb /dev/fb0 /dev/tty5
	con2fb /dev/fb0 /dev/tty6
	;;

	w)
	con2fb /dev/fb1 /dev/tty3
	;;

	a)
	# 640x512
	fbset -fb /dev/fb1 -left 60 -right 0 -upper 70 -lower 39 -hslen 76 -vslen 4 -xres 640 -yres 512 -bcast true
	;;

	s)
	# 640x528
	fbset -fb /dev/fb1 -left 40 -right 0 -upper 63 -lower 29 -hslen 56 -vslen 4 -xres 640 -yres 528 -vxres 640 -vyres 528 -depth 32 -laced false -bcast true
	;;

	d)
	# 720x576
	fbset -fb /dev/fb1 -left 54 -right -36 -upper 55 -lower -6 -hslen 46 -vslen 4 -xres 720 -yres 576 -vxres 720 -vyres 576 -depth 32 -laced false -bcast true
	;;

esac

done
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20020909/8fa3b265/attachment.pgp>


More information about the MPlayer-users mailing list