1 .\" $NetBSD: grfconfig.8,v 1.15 2008/04/30 13:11:02 martin Exp $
3 .\" Copyright (c) 1997 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Ezra Story and Bernd Ernesti.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd alter grf device screen mode definitions at run time
43 is used to change or view the screen mode definition list contained
44 in a grf device. You may alter the console screen definition as well
45 as the definitions for the graphic screen. The console will automatically
46 reinitialize itself to the new screen mode.
48 The following flags and arguments are interpreted by
50 .Bl -tag -width indent
52 Print out a raw listing of the mode definitions instead of the
53 pretty list normally shown.
55 The grf device to manipulate. This argument is required.
57 The file which contains the mode definitions. If this argument
60 will print out of a list of the modes currently loaded into
63 .Sh MODE DEFINITION FILE
64 The mode definitions are taken from a file which has lines of the format:
66 num clk wid hi dep hbs hss hse ht vbs vss vse vt flags
68 .Bl -tag -width indent
70 The mode number or 'c' for the console mode.
72 The pixel clock in Hz.
74 The screen mode's width.
76 The screen mode's height.
78 The bitdepth of the mode. Use 4 for a text console mode.
80 The horizontal timing parameters for the mode in pixel values. All the
81 values are relative to the end of the horizontal blank (beginning of the
84 The vertical timing parameters for the mode in line values. All the
85 values are relative to the end of vertical blank (beginning of the displayed
88 By default every mode uses negative horizontal and vertical sync pulses,
89 it is non-interlaced and does not use scandoubling.
91 .Bl -tag -width sync-on-green -offset indent
93 Use the default flags: -hsync -vsync
99 Positive horizontal sync pulses
101 Negative horizontal sync pulses
103 Positive vertical sync pulses
105 Negative vertical sync pulses
107 Composite sync on green
112 ------------------------------------------------------
116 | *----------------------------------- |
121 |\*[Lt]-hse |\*[Lt]-hbe ! |\*[Lt]-hbs | | |
122 | | ! | hss-\*[Gt]| hse-\*[Gt]| hbe-\*[Gt]|
126 | |\*[Lt]============ wid =========+=====\*[Gt]| |
131 | ------------------------------------ |
135 ------------------------------------------------------
158 command first appeared in
161 The mode definition file changed two times.
165 all horizontal values were videoclock cycle values instead of pixel values:
167 num clk wid hi dep hbs hss hse hbe ht vbs vss vse vbe vt
169 1 31000000 640 480 8 80 86 96 102 104 480 489 492 517 520
170 2 31000000 640 480 8 80 86 96 102 104 240 244 246 258 260
171 3 31000000 640 480 8 80 86 96 102 104 960 978 984 1034 1040
178 num clk wid hi dep hbs hss hse hbe ht vbs vss vse vbe vt
180 1 31000000 640 480 8 640 688 768 816 832 480 489 492 517 520
181 2 31000000 640 480 8 640 688 768 816 832 240 244 246 258 260
182 3 31000000 640 480 8 640 688 768 816 832 960 978 984 1034 1040
184 the vertical values were used to select the interlace or doublescan mode.
185 All vertical values were half the width for the interlace mode and twice
186 the width for the doublescan mode.
191 num clk wid hi dep hbs hss hse ht vbs vss vse vt flags
193 1 31000000 640 480 8 640 688 768 832 480 489 492 520 default
194 2 31000000 640 480 8 640 688 768 832 480 489 492 520 interlace
195 3 31000000 640 480 8 640 688 768 832 480 489 492 520 doublescan
196 4 31000000 640 480 8 640 688 768 832 480 489 492 520 +hsync +vsync
198 hbe and vbe are computed in the grf drivers.
201 can not set the modes for
206 and it will not work for