annotate TVout/matroxtv @ 11783:c2e36b3193a1

Fix "panning" display Ease multibuffer. Cosmetics.
author lumag
date Mon, 12 Jan 2004 13:43:30 +0000
parents 649f1089d94d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
1 #!/bin/sh
7376
gabucino
parents: 2560
diff changeset
2 #
gabucino
parents: 2560
diff changeset
3 # Gabucino - no warranty, this script can BOOM your TV and/or monitor, or else.
10237
gabucino
parents: 9839
diff changeset
4 # v3.0
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
5 # This script has been tested and configured on a Matrox G400DH, a PAL TV,
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
6 # a 14" analog and a 15" digital monitor.
7376
gabucino
parents: 2560
diff changeset
7 #
gabucino
parents: 2560
diff changeset
8 # INSTALLATION:
gabucino
parents: 2560
diff changeset
9 # 1. READ MPLAYER'S TVOUT DOCUMENTATION!
10237
gabucino
parents: 9839
diff changeset
10 # 2. Choose proper mode at 'defaultmode', 'TVdefaultmode',
gabucino
parents: 9839
diff changeset
11 # and 'SetTVstandard' functions to fit your needs.
gabucino
parents: 9839
diff changeset
12 # You normally shouldn't touch anything else.
7376
gabucino
parents: 2560
diff changeset
13 # 3. Remove 'exit 1' safety check.
gabucino
parents: 2560
diff changeset
14 #
gabucino
parents: 2560
diff changeset
15
gabucino
parents: 2560
diff changeset
16 function defaultmode {
gabucino
parents: 2560
diff changeset
17 # You can choose the mode to use in monitor-only mode
gabucino
parents: 2560
diff changeset
18 # 640x480 60Hz 32bpp (14" monitors)
9839
ab635db0c549 mode changes should occur to all the consoles
gabucino
parents: 9838
diff changeset
19 fbset -a -xres 640 -yres 480 -vxres 640 -vyres 480 -depth 32 -pixclock 39721 -left 48 -right 16 -upper 33 -lower 10 -hslen 96 -vslen 2 -hsync high -accel true -laced false
7376
gabucino
parents: 2560
diff changeset
20 # 768x576 60Hz 32bpp (14" monitors)
9839
ab635db0c549 mode changes should occur to all the consoles
gabucino
parents: 9838
diff changeset
21 # fbset -a -xres 768 -yres 576 -vxres 768 -vyres 5460 -depth 32 -pixclock 26101 -left 144 -right 16 -upper 28 -lower 6 -hslen 112 -vslen 4 -accel true -laced false
7376
gabucino
parents: 2560
diff changeset
22 # 800x600 76Hz 32bpp (15" monitors)
9839
ab635db0c549 mode changes should occur to all the consoles
gabucino
parents: 9838
diff changeset
23 # fbset -a -xres 800 -yres 600 -vxres 800 -vyres 1440 -depth 32 -pixclock 20000 -left 128 -right 16 -upper 24 -lower 2 -hslen 96 -vslen 6 -laced false
7376
gabucino
parents: 2560
diff changeset
24 # 1024x768 70Hz 32bpp (15" monitors)
9839
ab635db0c549 mode changes should occur to all the consoles
gabucino
parents: 9838
diff changeset
25 # fbset -a -xres 1024 -yres 768 -vxres 1024 -vyres 1440 -depth 32 -pixclock 12500 -left 144 -right 32 -upper 30 -lower 2 -hslen 192 -vslen 6 -laced false
7376
gabucino
parents: 2560
diff changeset
26 }
gabucino
parents: 2560
diff changeset
27
gabucino
parents: 2560
diff changeset
28 function TVdefaultmode {
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
29
7376
gabucino
parents: 2560
diff changeset
30 ##
gabucino
parents: 2560
diff changeset
31 ## PAL modes
gabucino
parents: 2560
diff changeset
32 ##
gabucino
parents: 2560
diff changeset
33
gabucino
parents: 2560
diff changeset
34 # 640x512 80Hz 32bpp
10237
gabucino
parents: 9839
diff changeset
35 fbset -fb $1 -a -depth 32 -left 60 -right 0 -upper 70 -lower 39 -hslen 76 -vslen 4 -xres 640 -yres 512 -bcast true -laced false
7376
gabucino
parents: 2560
diff changeset
36 # 640x528 83Hz 32bpp
10237
gabucino
parents: 9839
diff changeset
37 # fbset -fb $1 -a -depth 32 -left 40 -right 0 -upper 63 -lower 29 -hslen 56 -vslen 4 -xres 640 -yres 528 -vxres 640 -vyres 528 -laced false -bcast true
7376
gabucino
parents: 2560
diff changeset
38 # 720x576 78Hz 32bpp
10237
gabucino
parents: 9839
diff changeset
39 # fbset -fb $1 -a -depth 32 -left 54 -right -36 -upper 55 -lower -6 -hslen 46 -vslen 4 -xres 720 -yres 576 -vxres 720 -vyres 576 -laced false -bcast true
7376
gabucino
parents: 2560
diff changeset
40
gabucino
parents: 2560
diff changeset
41 ##
gabucino
parents: 2560
diff changeset
42 ## NTSC modes
gabucino
parents: 2560
diff changeset
43 ##
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
44
7376
gabucino
parents: 2560
diff changeset
45 # 640x240 non-interlaced 32bpp
10237
gabucino
parents: 9839
diff changeset
46 # fbset -fb $1 -a -depth 32 -xres 640 -yres 240 -vxres 640 -vyres 240 -pixclock 79443 -left 72 -right 40 -upper 15 -lower 5 -hslen 48 -vslen 3 -laced false
7376
gabucino
parents: 2560
diff changeset
47 # 640x480 interlaced 32bpp
10237
gabucino
parents: 9839
diff changeset
48 # fbset -fb $1 -a -depth 32 -xres 640 -yres 480 -vxres 640 -vyres 480 -pixclock 79443 -left 72 -right 40 -upper 30 -lower 10 -hslen 48 -vslen 5 -laced true
7376
gabucino
parents: 2560
diff changeset
49 }
gabucino
parents: 2560
diff changeset
50
gabucino
parents: 2560
diff changeset
51 function SetTVstandard {
9838
gabucino
parents: 9487
diff changeset
52 matroxset 1 # PAL
7376
gabucino
parents: 2560
diff changeset
53 # matroxset 2 # NTSC
gabucino
parents: 2560
diff changeset
54 }
9485
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
55
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
56 function SetMonitorMode {
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
57 matroxset 128
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
58 }
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
59
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
60 function mappingreset {
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
61 matroxset -f /dev/fb0 -m 0
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
62 matroxset -f /dev/fb1 -m 0
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
63 matroxset -f /dev/fb0 -m 1
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
64 con2fb /dev/fb0 /dev/tty1
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
65 con2fb /dev/fb0 /dev/tty2
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
66 SetMonitorMode
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
67 defaultmode
9485
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
68 }
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
69
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
70 function warn {
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
71 clear
10237
gabucino
parents: 9839
diff changeset
72 echo "tty2 will be automatically transferred to fb1 using the con2fb utility."
gabucino
parents: 9839
diff changeset
73 echo
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
74 echo
10237
gabucino
parents: 9839
diff changeset
75 echo "A big \"1\" letter will be displayed on tty1 after the change."
gabucino
parents: 9839
diff changeset
76 echo "A big \"2\" letter will be displayed on tty2 after the change."
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
77 echo
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
78 echo
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
79 echo "If you read this, PRESS ANY KEY TO CONTINUE"
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
80 read
9485
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
81 }
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
82
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
83 function warn2 {
10237
gabucino
parents: 9839
diff changeset
84 id1 > /dev/tty1 &
gabucino
parents: 9839
diff changeset
85 id2 > /dev/tty2 &
gabucino
parents: 9839
diff changeset
86 }
gabucino
parents: 9839
diff changeset
87
gabucino
parents: 9839
diff changeset
88 function id1 {
gabucino
parents: 9839
diff changeset
89 sleep 1
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
90 clear
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
91 echo
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
92 echo
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
93 echo
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
94 echo
10237
gabucino
parents: 9839
diff changeset
95 echo
gabucino
parents: 9839
diff changeset
96 echo
gabucino
parents: 9839
diff changeset
97 echo
gabucino
parents: 9839
diff changeset
98 echo
gabucino
parents: 9839
diff changeset
99 echo
gabucino
parents: 9839
diff changeset
100 echo
gabucino
parents: 9839
diff changeset
101 echo
gabucino
parents: 9839
diff changeset
102 echo " ****"
gabucino
parents: 9839
diff changeset
103 echo " *****"
gabucino
parents: 9839
diff changeset
104 echo " ******"
gabucino
parents: 9839
diff changeset
105 echo " *******"
gabucino
parents: 9839
diff changeset
106 echo " ***"
gabucino
parents: 9839
diff changeset
107 echo " ***"
gabucino
parents: 9839
diff changeset
108 echo " ***"
gabucino
parents: 9839
diff changeset
109 echo " ***"
gabucino
parents: 9839
diff changeset
110 echo " ***"
gabucino
parents: 9839
diff changeset
111 echo " *****"
gabucino
parents: 9839
diff changeset
112 echo
gabucino
parents: 9839
diff changeset
113 echo
gabucino
parents: 9839
diff changeset
114 echo " FAST console"
gabucino
parents: 9839
diff changeset
115 echo
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
116 echo
10237
gabucino
parents: 9839
diff changeset
117 echo " Press ALT-F1 to change here"
gabucino
parents: 9839
diff changeset
118 }
gabucino
parents: 9839
diff changeset
119
gabucino
parents: 9839
diff changeset
120 function id2 {
gabucino
parents: 9839
diff changeset
121 sleep 1
gabucino
parents: 9839
diff changeset
122 clear
gabucino
parents: 9839
diff changeset
123 echo
gabucino
parents: 9839
diff changeset
124 echo
gabucino
parents: 9839
diff changeset
125 echo
gabucino
parents: 9839
diff changeset
126 echo
gabucino
parents: 9839
diff changeset
127 echo
gabucino
parents: 9839
diff changeset
128 echo
gabucino
parents: 9839
diff changeset
129 echo
gabucino
parents: 9839
diff changeset
130 echo
gabucino
parents: 9839
diff changeset
131 echo
gabucino
parents: 9839
diff changeset
132 echo
gabucino
parents: 9839
diff changeset
133 echo
gabucino
parents: 9839
diff changeset
134 echo " *****"
gabucino
parents: 9839
diff changeset
135 echo " ** **"
gabucino
parents: 9839
diff changeset
136 echo " * **"
gabucino
parents: 9839
diff changeset
137 echo " **"
gabucino
parents: 9839
diff changeset
138 echo " **"
gabucino
parents: 9839
diff changeset
139 echo " **"
gabucino
parents: 9839
diff changeset
140 echo " **"
gabucino
parents: 9839
diff changeset
141 echo " **"
gabucino
parents: 9839
diff changeset
142 echo " ** **"
gabucino
parents: 9839
diff changeset
143 echo " *******"
gabucino
parents: 9839
diff changeset
144 echo
gabucino
parents: 9839
diff changeset
145 echo
gabucino
parents: 9839
diff changeset
146 echo " SLOW console"
gabucino
parents: 9839
diff changeset
147 echo
gabucino
parents: 9839
diff changeset
148 echo
gabucino
parents: 9839
diff changeset
149 echo " Press ALT-F2 to change here"
gabucino
parents: 9839
diff changeset
150 }
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
151
7376
gabucino
parents: 2560
diff changeset
152 echo
gabucino
parents: 2560
diff changeset
153 echo "Please read MPlayer's TV-out documentation, and install 'matroxset' and 'fbset'."
gabucino
parents: 2560
diff changeset
154 echo "Then edit this script to suit your monitor+TV set."
gabucino
parents: 2560
diff changeset
155 echo
9487
gabucino
parents: 9486
diff changeset
156 exit 1
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
157
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
158 while [ 1 ]; do
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
159
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
160 clear
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
161
7524
3a9a1530ab2d function for blanking+clearing screen
gabucino
parents: 7376
diff changeset
162 echo " [ 0 ] Clear & blank screen"
7376
gabucino
parents: 2560
diff changeset
163 echo " [ 1 ] Monitor only"
9485
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
164 echo
10237
gabucino
parents: 9839
diff changeset
165 echo " [ 2 ] Cloning - CRTC1 -> Monitor"
gabucino
parents: 9839
diff changeset
166 echo " CRTC2 -> TV"
gabucino
parents: 9839
diff changeset
167 echo
gabucino
parents: 9839
diff changeset
168 echo " [ 3 ] Cloning - CRTC1 -> Monitor1"
gabucino
parents: 9839
diff changeset
169 echo " CRTC2 -> Monitor2"
9485
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
170 echo
10237
gabucino
parents: 9839
diff changeset
171 echo " [ 4 ] DualHead - CRTC1 -> Monitor1"
gabucino
parents: 9839
diff changeset
172 echo " CRTC2 -> Monitor2"
gabucino
parents: 9839
diff changeset
173 echo
gabucino
parents: 9839
diff changeset
174 echo " [ 5 ] DualHead - CRTC1 -> Monitor2 (SWAP!)"
gabucino
parents: 9839
diff changeset
175 echo " CRTC2 -> Monitor1"
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
176 echo
10237
gabucino
parents: 9839
diff changeset
177 echo " [ 6 ] DualHead - CRTC1 -> Monitor1"
gabucino
parents: 9839
diff changeset
178 echo " CRTC2 -> TV"
gabucino
parents: 9839
diff changeset
179 echo
gabucino
parents: 9839
diff changeset
180 echo " [ 7 ] DualHead - CRTC1 -> TV (SWAP!)"
gabucino
parents: 9839
diff changeset
181 echo " CRTC2 -> Monitor1"
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
182
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
183 echo
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
184
10237
gabucino
parents: 9839
diff changeset
185 echo "-- TV MODES on /dev/fb0 -- TV MODES on /dev/fb1"
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
186 echo
10237
gabucino
parents: 9839
diff changeset
187 echo " [ a ] 640x512 PAL [ A ] 640x512 PAL"
gabucino
parents: 9839
diff changeset
188 echo " [ s ] 640x528 PAL [ S ] 640x528 PAL"
gabucino
parents: 9839
diff changeset
189 echo " [ d ] 720x576 PAL [ D ] 720x576 PAL"
gabucino
parents: 9839
diff changeset
190 echo " [ f ] 640x240 NTSC [ F ] 640x240 NTSC"
gabucino
parents: 9839
diff changeset
191 echo " [ g ] 640x480 NTSC, interlaced [ G ] 640x480 NTSCl"
gabucino
parents: 9839
diff changeset
192 echo
gabucino
parents: 9839
diff changeset
193 echo " (Warning, fb0 and fb1 tend to change RANDOMLY with these mode changers..)"
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
194
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
195 read ABC
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
196
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
197 case "$ABC" in
7524
3a9a1530ab2d function for blanking+clearing screen
gabucino
parents: 7376
diff changeset
198 0)
3a9a1530ab2d function for blanking+clearing screen
gabucino
parents: 7376
diff changeset
199 clear
3a9a1530ab2d function for blanking+clearing screen
gabucino
parents: 7376
diff changeset
200 setterm -cursor off
3a9a1530ab2d function for blanking+clearing screen
gabucino
parents: 7376
diff changeset
201 setterm -blank 0
3a9a1530ab2d function for blanking+clearing screen
gabucino
parents: 7376
diff changeset
202 read
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
203 setterm -cursor on
7524
3a9a1530ab2d function for blanking+clearing screen
gabucino
parents: 7376
diff changeset
204 ;;
3a9a1530ab2d function for blanking+clearing screen
gabucino
parents: 7376
diff changeset
205
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
206 1)
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
207 mappingreset
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
208 echo
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
209 ;;
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
210
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
211 2)
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
212 mappingreset
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
213 matroxset -f /dev/fb0 -m 3
7376
gabucino
parents: 2560
diff changeset
214 SetTVstandard
10237
gabucino
parents: 9839
diff changeset
215 TVdefaultmode /dev/fb0
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
216 ;;
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
217
9485
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
218 3)
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
219 mappingreset
9485
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
220 matroxset -f /dev/fb0 -m 3
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
221 ;;
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
222
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
223 4)
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
224 warn
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
225 mappingreset
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
226 matroxset -f /dev/fb0 -m 1
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
227 matroxset -f /dev/fb1 -m 2
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
228 warn2
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
229 ;;
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
230
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
231 5)
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
232 warn
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
233 mappingreset
9485
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
234 matroxset -f /dev/fb0 -m 2
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
235 matroxset -f /dev/fb1 -m 1
9486
35355ec9f2b7 now it looks much better. Anyone wants to port this script to use
gabucino
parents: 9485
diff changeset
236 warn2
9485
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
237 ;;
10ac5e716014 added "Dualhead with Monitors", and "Cloning with Monitors" modes
gabucino
parents: 7524
diff changeset
238
10237
gabucino
parents: 9839
diff changeset
239 6)
gabucino
parents: 9839
diff changeset
240 warn
gabucino
parents: 9839
diff changeset
241 mappingreset
gabucino
parents: 9839
diff changeset
242 con2fb /dev/fb1 /dev/tty2
gabucino
parents: 9839
diff changeset
243 matroxset -f /dev/fb0 -m 1
gabucino
parents: 9839
diff changeset
244 matroxset -f /dev/fb1 -m 2
gabucino
parents: 9839
diff changeset
245 SetTVstandard
gabucino
parents: 9839
diff changeset
246 TVdefaultmode /dev/fb1
gabucino
parents: 9839
diff changeset
247 warn2
gabucino
parents: 9839
diff changeset
248 ;;
gabucino
parents: 9839
diff changeset
249
gabucino
parents: 9839
diff changeset
250 7)
gabucino
parents: 9839
diff changeset
251 warn
gabucino
parents: 9839
diff changeset
252 mappingreset
gabucino
parents: 9839
diff changeset
253 con2fb /dev/fb1 /dev/tty2
gabucino
parents: 9839
diff changeset
254 matroxset -f /dev/fb0 -m 2
gabucino
parents: 9839
diff changeset
255 matroxset -f /dev/fb1 -m 1
gabucino
parents: 9839
diff changeset
256 SetTVstandard
gabucino
parents: 9839
diff changeset
257 TVdefaultmode /dev/fb0
gabucino
parents: 9839
diff changeset
258 warn2
gabucino
parents: 9839
diff changeset
259 ;;
gabucino
parents: 9839
diff changeset
260
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
261 a)
7376
gabucino
parents: 2560
diff changeset
262 # 640x512 80Hz 32bpp
10237
gabucino
parents: 9839
diff changeset
263 fbset -depth 32 -left 60 -right 0 -upper 70 -lower 39 -hslen 76 -vslen 4 -xres 640 -yres 512 -bcast true -laced false
gabucino
parents: 9839
diff changeset
264 ;;
gabucino
parents: 9839
diff changeset
265
gabucino
parents: 9839
diff changeset
266 A)
gabucino
parents: 9839
diff changeset
267 # 640x512 80Hz 32bpp
gabucino
parents: 9839
diff changeset
268 fbset -fb /dev/fb1 -depth 32 -left 60 -right 0 -upper 70 -lower 39 -hslen 76 -vslen 4 -xres 640 -yres 512 -bcast true -laced false
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
269 ;;
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
270
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
271 s)
7376
gabucino
parents: 2560
diff changeset
272 # 640x528 83Hz 32bpp
10237
gabucino
parents: 9839
diff changeset
273 fbset -depth 32 -left 40 -right 0 -upper 63 -lower 29 -hslen 56 -vslen 4 -xres 640 -yres 528 -vxres 640 -vyres 528 -laced false -bcast true
gabucino
parents: 9839
diff changeset
274 ;;
gabucino
parents: 9839
diff changeset
275
gabucino
parents: 9839
diff changeset
276 S)
gabucino
parents: 9839
diff changeset
277 # 640x528 83Hz 32bpp
gabucino
parents: 9839
diff changeset
278 fbset -fb /dev/fb1 -depth 32 -left 40 -right 0 -upper 63 -lower 29 -hslen 56 -vslen 4 -xres 640 -yres 528 -vxres 640 -vyres 528 -laced false -bcast true
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
279 ;;
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
280
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
281 d)
7376
gabucino
parents: 2560
diff changeset
282 # 720x576 78Hz 32bpp
10237
gabucino
parents: 9839
diff changeset
283 # fbset -depth 32 -left 54 -right -36 -upper 55 -lower -6 -hslen 46 -vslen 4 -xres 720 -yres 576 -vxres 720 -vyres 576 -laced false -bcast true
gabucino
parents: 9839
diff changeset
284 fbset -depth 32 -right -36 -lower -6 -hslen 46 -vslen 4 -xres 720 -yres 576 -vxres 720 -vyres 576 -laced false -bcast true
gabucino
parents: 9839
diff changeset
285 ;;
gabucino
parents: 9839
diff changeset
286
gabucino
parents: 9839
diff changeset
287 D)
gabucino
parents: 9839
diff changeset
288 # 720x576 78Hz 32bpp
gabucino
parents: 9839
diff changeset
289 # fbset -fb /dev/fb1 -depth 32 -left 54 -right -36 -upper 55 -lower -6 -hslen 46 -vslen 4 -xres 720 -yres 576 -vxres 720 -vyres 576 -laced false -bcast true
gabucino
parents: 9839
diff changeset
290 fbset -fb /dev/fb1 -depth 32 -right -36 -lower -6 -hslen 46 -vslen 4 -xres 720 -yres 576 -vxres 720 -vyres 576 -laced false -bcast true
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
291 ;;
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
292
7376
gabucino
parents: 2560
diff changeset
293 f)
gabucino
parents: 2560
diff changeset
294 # 640x240 non-interlaced 32bpp
10237
gabucino
parents: 9839
diff changeset
295 fbset -depth 32 -xres 640 -yres 240 -vxres 640 -vyres 240 -pixclock 79443 -left 72 -right 40 -upper 15 -lower 5 -hslen 48 -vslen 3 -laced false
gabucino
parents: 9839
diff changeset
296 ;;
gabucino
parents: 9839
diff changeset
297
gabucino
parents: 9839
diff changeset
298 F)
gabucino
parents: 9839
diff changeset
299 # 640x240 non-interlaced 32bpp
gabucino
parents: 9839
diff changeset
300 fbset -fb /dev/fb1 -depth 32 -xres 640 -yres 240 -vxres 640 -vyres 240 -pixclock 79443 -left 72 -right 40 -upper 15 -lower 5 -hslen 48 -vslen 3 -laced false
7376
gabucino
parents: 2560
diff changeset
301 ;;
gabucino
parents: 2560
diff changeset
302
gabucino
parents: 2560
diff changeset
303 g)
gabucino
parents: 2560
diff changeset
304 # 640x480 interlaced 32bpp
10237
gabucino
parents: 9839
diff changeset
305 fbset -depth 32 -xres 640 -yres 480 -vxres 640 -vyres 480 -pixclock 79443 -left 72 -right 40 -upper 30 -lower 10 -hslen 48 -vslen 5 -laced true
gabucino
parents: 9839
diff changeset
306 ;;
gabucino
parents: 9839
diff changeset
307
gabucino
parents: 9839
diff changeset
308 G)
gabucino
parents: 9839
diff changeset
309 # 640x480 interlaced 32bpp
gabucino
parents: 9839
diff changeset
310 fbset -fb /dev/fb1 -depth 32 -xres 640 -yres 480 -vxres 640 -vyres 480 -pixclock 79443 -left 72 -right 40 -upper 30 -lower 10 -hslen 48 -vslen 5 -laced true
7376
gabucino
parents: 2560
diff changeset
311 ;;
2487
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
312 esac
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
313
ac3c0836aaa1 hope it's not too buggy, and overall useful
gabucino
parents:
diff changeset
314 done