summaryrefslogtreecommitdiffstats
path: root/TVout
diff options
context:
space:
mode:
authorgabucino <gabucino@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-23 16:23:37 +0000
committergabucino <gabucino@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-23 16:23:37 +0000
commitf1d968302302a3054736652fd491b0e4ab116caa (patch)
treec49fee89be512efd73e1c2537bc9dbf64a8540b9 /TVout
parentcb6e521552ee6f1b4a6362fb79d0a1ae3da69835 (diff)
downloadmpv-f1d968302302a3054736652fd491b0e4ab116caa.tar.bz2
mpv-f1d968302302a3054736652fd491b0e4ab116caa.tar.xz
added "Dualhead with Monitors", and "Cloning with Monitors" modes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9486 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TVout')
-rwxr-xr-xTVout/matroxtv38
1 files changed, 38 insertions, 0 deletions
diff --git a/TVout/matroxtv b/TVout/matroxtv
index c7f8d30738..bea3afa31d 100755
--- a/TVout/matroxtv
+++ b/TVout/matroxtv
@@ -50,6 +50,15 @@ function SetTVstandard {
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 " [ 0 ] Clear & blank screen"
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 @@ case "$ABC" in
;;
1)
+ nomapping
matroxset -f /dev/fb1 -m 0
matroxset -f /dev/fb0 -m 1
defaultmode
@@ -93,12 +112,31 @@ case "$ABC" in
;;
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