comparison TVout/matroxtv @ 9485:10ac5e716014

added "Dualhead with Monitors", and "Cloning with Monitors" modes
author gabucino
date Sun, 23 Feb 2003 16:23:37 +0000
parents 3a9a1530ab2d
children 35355ec9f2b7
comparison
equal deleted inserted replaced
9484:551d1f5ca980 9485:10ac5e716014
48 48
49 function SetTVstandard { 49 function SetTVstandard {
50 matroxset 1 # PAL 50 matroxset 1 # PAL
51 # matroxset 2 # NTSC 51 # matroxset 2 # NTSC
52 } 52 }
53
54 function SetMonitorMode {
55 matroxset 128
56 }
57
58 function nomapping {
59 con2fb /dev/fb0 /dev/tty1
60 con2fb /dev/fb0 /dev/tty2
61 }
53 62
54 echo 63 echo
55 echo "Please read MPlayer's TV-out documentation, and install 'matroxset' and 'fbset'." 64 echo "Please read MPlayer's TV-out documentation, and install 'matroxset' and 'fbset'."
56 echo "Then edit this script to suit your monitor+TV set." 65 echo "Then edit this script to suit your monitor+TV set."
57 echo 66 echo
63 72
64 echo " [ 0 ] Clear & blank screen" 73 echo " [ 0 ] Clear & blank screen"
65 echo " [ 1 ] Monitor only" 74 echo " [ 1 ] Monitor only"
66 echo " /---> Monitor" 75 echo " /---> Monitor"
67 echo " [ 2 ] DualHead - CRTC1" 76 echo " [ 2 ] DualHead - CRTC1"
77 echo " [ 2 ] Cloning - CRTC1"
68 echo " \\---> TV" 78 echo " \\---> TV"
79 echo
80 echo " /---> Monitor"
81 echo " [ 3 ] Cloning - CRTC1"
82 echo " \\---> Monitor"
83 echo
84 echo " CRTC1 ---> Monitor"
85 echo " [ 4 ] DualHead -"
86 echo " CRTC2 ---> Monitor"
69 87
70 echo 88 echo
71 89
72 echo " [ A ] 640x512 PAL" 90 echo " [ A ] 640x512 PAL"
73 echo " [ S ] 640x528 PAL" 91 echo " [ S ] 640x528 PAL"
84 setterm -blank 0 102 setterm -blank 0
85 read 103 read
86 ;; 104 ;;
87 105
88 1) 106 1)
107 nomapping
89 matroxset -f /dev/fb1 -m 0 108 matroxset -f /dev/fb1 -m 0
90 matroxset -f /dev/fb0 -m 1 109 matroxset -f /dev/fb0 -m 1
91 defaultmode 110 defaultmode
92 echo 111 echo
93 ;; 112 ;;
94 113
95 2) 114 2)
115 nomapping
96 matroxset -f /dev/fb1 -m 0 116 matroxset -f /dev/fb1 -m 0
97 matroxset -f /dev/fb0 -m 3 117 matroxset -f /dev/fb0 -m 3
98 SetTVstandard 118 SetTVstandard
99 TVdefaultmode 119 TVdefaultmode
120 ;;
121
122 3)
123 nomapping
124 matroxset -f /dev/fb1 -m 0
125 matroxset -f /dev/fb0 -m 3
126 SetMonitorMode
127 defaultmode
128 ;;
129
130 4)
131 nomapping
132 matroxset -f /dev/fb0 -m 2
133 matroxset -f /dev/fb1 -m 1
134 SetMonitorMode
135 defaultmode
136 con2fb /dev/fb1 /dev/tty1
137 con2fb /dev/fb1 /dev/tty2
100 ;; 138 ;;
101 139
102 a) 140 a)
103 # 640x512 80Hz 32bpp 141 # 640x512 80Hz 32bpp
104 fbset -depth 32 -left 60 -right 0 -upper 70 -lower 39 -hslen 76 -vslen 4 -xres 640 -yres 512 -bcast true 142 fbset -depth 32 -left 60 -right 0 -upper 70 -lower 39 -hslen 76 -vslen 4 -xres 640 -yres 512 -bcast true