summaryrefslogtreecommitdiffstats
path: root/TVout/fbset/fb.modes.5
blob: 0918f08f5dca6912fedb679e4b260a72854cebe3 (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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
.TH fb.modes 8 "Aug 1996" local "Linux frame buffer utils"
.SH NAME
fb.modes \- frame buffer modes file
.SH DESCRIPTION
.I /etc/fb.modes
contains an unlimited number of video mode descriptions. The general format
of a video mode is:
.sp
mode
.RI \" name \"
.RS
geometry
.RI < xres >
.RI < yres >
.RI < vxres >
.RI < vyres >
.RI < depth >
.br
timings
.RI < pixclock >
.RI < left >
.RI < right >
.RI < upper >
.RI < lower >
.RI < hslen >
.RI < vslen >
.br
.B options
.RI < value >
.RE
endmode
.SH OPTIONS
geometry options:
.RS
.TP
.I xres
visible horizontal resolution (in pixels)
.TP
.I yres
visible vertical resolution (in pixels)
.TP
.I vxres
virtual horizontal resolution (in pixels)
.TP
.I vyres
virtual vertical resolution (in pixels)
.TP
.I depth
display depth (in bits per pixel)
.RE
.PP
timing options:
.RS
.TP
.I pixclock
length of one pixel (in picoseconds)
.TP
.I left
left margin (in pixels)
.TP
.I right
right margin (in pixels)
.TP
.I upper
upper margin (in pixel lines)
.TP
.I lower
lower margin (in pixel lines)
.TP
.I hslen
horizontal sync length (in pixels)
.TP
.I vslen
vertical sync length (in pixel lines)
.RE
.PP
other options:
.RS
the first value of this options is the default
.TP
.IR \fBhsync "\ {" low | high }
the horizontal sync polarity
.TP
.IR \fBvsync "\ {" low | high }
the vertical sync polarity
.TP
.IR \fBcsync "\ {" low | high }
the composite sync polarity
.TP
.IR \fBextsync "\ {" false | true }
enable or disable external resync. If enabled the sync timings are not
generated by the frame buffer device and must be provided externally
instead. Note that this option may not be supported by every frame buffer
device
.TP
.IR \fBlaced "\ {" false | true }
enable or disable interlace. If enabled the display will be split in two
frames, each frame contains only even and odd lines respectively. These two
frames will be displayed alternating, this way twice the lines can be
displayed and the vertical frequency for monitor stays the same, but the
visible vertical frequency gets halved
.TP
.IR \fBdouble "\ {" false | true }
enable or disable doublescan. If enabled every line will be displayed twice
and this way the horizontal frequency can easily be doubled, so that the
same resolution can be displayed on different monitors, even if the
horizontal frequency specification differs. Note that this option may not be
supported by every frame buffer device
.RE
.SH INTERNALS
Generally a frame buffer display is organized as follows:
.sp
.ad c
+\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-+\-\-\-+
.br
.RB "|\ \ \ |\ \ \ \ \ \ \ " ^ "\ \ \ \ \ \ \ |\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ |\ \ \ \ \ \ \ " | "\ " \fI5 "\ \ \ \ \ |\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ |\ \ \ \ \ \ \ " v "\ \ \ \ \ \ \ |\ \ \ |\ \ \ |"
.br
+\-\-\-#################\-\-\-+\-\-\-+
.br
.RB "|\ \ \ #\ \ \ \ \ \ \ " ^ "\ \ \ \ \ \ \ #\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ #\ \ \ \ \ \ \ " | "\ \ \ \ \ \ \ #\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ #\ \ \ \ \ \ \ " | "\ \ \ \ \ \ \ #\ \ \ |\ \ \ |"
.br
.RI "| " 1 " #       " \fB| "   " 2 "   # " 3 " | " 4 " |"
.br
.RB "|" "<\->" "#" "<\-\-\-\-\-\-+\-\-\-\-\-\->" "#" "<\->" "|" "<\->" "|"
.br
.RB "|\ \ \ #\ \ \ \ \ \ \ " | "\ \ \ \ \ \ \ #\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ #\ \ \ \ \ \ \ " | "\ " \fI6 "\ \ \ \ \ #\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ #\ \ \ \ \ \ \ " | "\ \ \ \ \ \ \ #\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ #\ \ \ \ \ \ \ " v "\ \ \ \ \ \ \ #\ \ \ |\ \ \ |"
.br
+\-\-\-#################\-\-\-+\-\-\-+
.br
.RB "|\ \ \ |\ \ \ \ \ \ \ " ^ "\ \ \ \ \ \ \ |\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ |\ \ \ \ \ \ \ " | "\ " \fI7 "\ \ \ \ \ |\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ |\ \ \ \ \ \ \ " v "\ \ \ \ \ \ \ |\ \ \ |\ \ \ |"
.br
+\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-+\-\-\-+
.br
.RB "|\ \ \ |\ \ \ \ \ \ \ " ^ "\ \ \ \ \ \ \ |\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ |\ \ \ \ \ \ \ " | "\ " \fI8 "\ \ \ \ \ |\ \ \ |\ \ \ |"
.br
.RB "|\ \ \ |\ \ \ \ \ \ \ " v "\ \ \ \ \ \ \ |\ \ \ |\ \ \ |"
.br
+\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-+\-\-\-+
.sp
.ad n
.RS
.I 1
\t left margin
.br
.I 2
\t xres
.br
.I 3
\t right margin
.br
.I 4
\t horizontal sync len
.br
.I 5
\t upper margin
.br
.I 6
\t yres
.br
.I 7
\t lower margin
.br
.I 8
\t vertical sync len
.RE
.sp
The area bordered with `#' is the visible display area. Horizontal and
vertical frequencies can now easily be calculated, for this the sum of
horizontal or vertical values are important
.RS
.sp
htotal\ =\ left\ +\ xres\ +\ right\ +\ hslen
.br
vtotal\ =\ upper\ +\ yres\ +\ lower\ +\ vslen
.sp
.RE
The length of one line can now be calculated with pixclock
.RS
.sp
line\ =\ pixclock\ *\ htotal
.sp
.RE
and we have the horizontal frequency
.RS
.sp
hfreq\ =\ 1E12\ /\ line\ =\ 1E12\ /\ (pixclock\ *\ htotal)
.sp
.RE
To get the vertical frequency vtotal must eventually adjusted. If the
display is laced, vtotal must be halved or if the display is a doublescan
one, vtotal must be doubled. Now we can calculate the length of one frame
.RS
.sp
if\ (lace)\ \ \ vtotal\ /=\ 2
.br
if\ (double)\ vtotal\ *=\ 2
.sp
frame\ =\ vtotal\ *\ line
.sp
.RE
and we get also the vertical frequency
.RS
.sp
vfreq\ =\ 1E12\ /\ frame\ =\ hfreq\ /\ vtotal
.sp
.RE
.SH SEE ALSO
.BR fbset "(8), " fbdev (4)