aboutsummaryrefslogtreecommitdiffhomepage
path: root/TVout/matroxfbtune
blob: 012f6c6b792899618cc726b914bb5595bfc3641a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#!/bin/sh
# needs very much fixing

#
# 720x576, the upper left corner is right on my TV, but
# it's too tall and wide
#

LEFT=54
RIGHT=-36
UPPER=55
LOWER=-6
XRES=720
YRES=576

while [ 1 ]; do

clear

echo q w	left
echo a s	right
echo e r	upper
echo d f	lower
echo t y	xres
echo g h	yres
echo z		reset
echo x		save

echo n		LEFT
echo m		RIGHT
echo o		TALLER	-BUG-
echo k		SHORTER	-BUG-
echo p		UP
echo l		DOWN

echo $LEFT $RIGHT
echo $UPPER $LOWER
echo $XRES $YRES
echo
fbset

read ABC

case "$ABC" in
	q)
	LEFT=$(($LEFT-2))
	;;

	w)
	LEFT=$(($LEFT+2))
	;;

	a)
	RIGHT=$(($RIGHT-2))
	;;

	s)
	RIGHT=$(($RIGHT+2))
	;;

	e)
	UPPER=$(($UPPER-2))
	;;

	r)
	UPPER=$(($UPPER+2))
	;;

	d)
	LOWER=$(($LOWER-2))
	;;

	f)
	LOWER=$(($LOWER+2))
	;;

	t)
	XRES=$(($XRES-2))
	;;

	y)
	XRES=$(($XRES+2))
	;;

	g)
	YRES=$(($YRES-2))
	;;

	h)
	YRES=$(($YRES+2))
	;;

	n)
	LEFT=$(($LEFT-2))
	RIGHT=$(($RIGHT+2))
	;;

	m)
	LEFT=$(($LEFT+2))
	RIGHT=$(($RIGHT-2))
	;;

	o)
	UPPER=$(($UPPER-2))
	LOWER=$(($LOWER-2))
	YRES=$(($YRES+4))
	;;

	k)
	UPPER=$(($UPPER+2))
	LOWER=$(($LOWER+2))
	YRES=$(($YRES-4))
	;;

	p)
	UPPER=$(($UPPER-2))
	LOWER=$(($LOWER+2))
	;;

	l)
	UPPER=$(($UPPER+2))
	LOWER=$(($LOWER-2))
	;;

	z)
LEFT=54
RIGHT=-36
UPPER=55
LOWER=-6
XRES=720
YRES=576
	;;

	x)
	echo "fbset -fb /dev/fb1 -left $LEFT -right $RIGHT -upper $UPPER -lower $LOWER -hslen 46 -vslen 4 -xres $XRES -yres $YRES -vxres 720 -vyres 576 -depth 32 -laced false -bcast true" > save
	;;

esac

fbset -fb /dev/fb1 -left $LEFT -right $RIGHT -upper $UPPER -lower $LOWER -hslen 46 -vslen 4 -xres $XRES -yres $YRES -vxres 720 -vyres 576 -depth 32 -laced false -bcast true

done