changeset 9485:10ac5e716014

added "Dualhead with Monitors", and "Cloning with Monitors" modes
author gabucino
date Sun, 23 Feb 2003 16:23:37 +0000
parents 551d1f5ca980
children 35355ec9f2b7
files TVout/matroxtv
diffstat 1 files changed, 38 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/TVout/matroxtv	Sun Feb 23 13:55:59 2003 +0000
+++ b/TVout/matroxtv	Sun Feb 23 16:23:37 2003 +0000
@@ -50,6 +50,15 @@
 	matroxset 1		# PAL
 	# matroxset 2		# NTSC
 }
+
+function SetMonitorMode {
+	matroxset 128
+}
+
+function nomapping {
+       con2fb /dev/fb0 /dev/tty1
+       con2fb /dev/fb0 /dev/tty2
+}
 	
 echo
 echo "Please read MPlayer's TV-out documentation, and install 'matroxset' and 'fbset'."
@@ -65,7 +74,16 @@
 echo " [ 1 ]    Monitor only"
 echo "                          /---> Monitor"
 echo " [ 2 ]    DualHead - CRTC1"
+echo " [ 2 ]    Cloning - CRTC1" 
 echo "                          \\---> TV"
+echo
+echo "                          /---> Monitor"
+echo " [ 3 ]    Cloning - CRTC1"
+echo "                          \\---> Monitor"
+echo
+echo "                     CRTC1 ---> Monitor"
+echo " [ 4 ]    DualHead -"
+echo "                     CRTC2 ---> Monitor"
 
 echo
 
@@ -86,6 +104,7 @@
 	;;
 
 	1)
+	nomapping
 	matroxset -f /dev/fb1 -m 0
 	matroxset -f /dev/fb0 -m 1
 	defaultmode
@@ -93,12 +112,31 @@
 	;;
 
 	2)
+	nomapping
 	matroxset -f /dev/fb1 -m 0
 	matroxset -f /dev/fb0 -m 3
 	SetTVstandard
 	TVdefaultmode
 	;;
 
+	3)
+	nomapping
+	matroxset -f /dev/fb1 -m 0
+	matroxset -f /dev/fb0 -m 3
+	SetMonitorMode
+	defaultmode
+	;;
+
+	4)
+	nomapping
+	matroxset -f /dev/fb0 -m 2
+	matroxset -f /dev/fb1 -m 1
+	SetMonitorMode
+	defaultmode
+	con2fb /dev/fb1 /dev/tty1
+	con2fb /dev/fb1 /dev/tty2
+	;;
+
 	a)
 	# 640x512 80Hz 32bpp
 	fbset -depth 32 -left 60 -right 0 -upper 70 -lower 39 -hslen 76 -vslen 4 -xres 640 -yres 512 -bcast true