xref: /netbsd/usr.sbin/grfconfig/grfconfig.8 (revision bf9ec67e)
1.\"	$NetBSD: grfconfig.8,v 1.12 2002/02/08 01:38:48 ross Exp $
2.\"
3.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Ezra Story and Bernd Ernesti.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
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.
17.\" 3. All advertising materials mentioning features or use of this software
18.\"    must display the following acknowledgement:
19.\"    This product includes software developed by the NetBSD
20.\"    Foundation, Inc. and its contributors.
21.\" 4. Neither the name of The NetBSD Foundation nor the names of its
22.\"    contributors may be used to endorse or promote products derived
23.\"    from this software without specific prior written permission.
24.\"
25.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
26.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35.\" POSSIBILITY OF SUCH DAMAGE.
36.\"
37.Dd October 7, 1994
38.Dt GRFCONFIG 8 amiga
39.Os
40.Sh NAME
41.Nm grfconfig
42.Nd alter grf device screen mode definitions at run time
43.Sh SYNOPSIS
44.Nm
45.Op Fl r
46.Ar device
47.Op Ar file
48.Sh DESCRIPTION
49.Nm
50is used to change or view the screen mode definition list contained
51in a grf device.  You may alter the console screen definition as well
52as the definitions for the graphic screen.  The console will automatically
53reinitialize itself to the new screen mode.
54.Pp
55The following flags and arguments are interpreted by
56.Nm "" :
57.Bl -tag -width indent
58.It Fl r
59Print out a raw listing of the mode definitions instead of the
60pretty list normally shown.
61.It Ar device
62The grf device to manipulate.  This argument is required.
63.It Ar file
64The file which contains the mode definitions.  If this argument
65is not specified,
66.Nm
67will print out of a list of the modes currently loaded into
68the grf device.
69.El
70.Sh MODE DEFINITION FILE
71The mode definitions are taken from a file which has lines of the format:
72.Pp
73num clk wid hi dep hbs hss hse ht vbs vss vse vt flags
74.Pp
75.Bl -tag -width indent
76.It Ar num
77The mode number or 'c' for the console mode.
78.It Ar clk
79The pixel clock in Hz.
80.It Ar wid
81The screen mode's width.
82.It Ar hi
83The screen mode's height.
84.It Ar dep
85The bitdepth of the mode. Use 4 for a text console mode.
86.It Ar hbs hss hse ht
87The horizontal timing parameters for the mode in pixel values.  All the
88values are relative to the end of the horizontal blank (beginning of the
89displayed area).
90.It Ar vbs vss vse vt
91The vertical timing paramters for the mode in line values.  All the
92values are relative to the end of vertical blank (beginning of the displayed
93area).
94.It Ar flags
95By default every mode uses negative horizontal and vertical sync pulses,
96it is non-interlaced and does not use scandoubling.
97.Pp
98.Bl -tag -width sync-on-green -offset indent
99.It default
100Use the default flags: -hsync -vsync
101.It doublescan
102Doublescan mode
103.It interlace
104Interlace mode
105.It +hsync
106Positive horizontal sync pulses
107.It -hsync
108Negative horizontal sync pulses
109.It +vsync
110Positive vertical sync pulses
111.It -vsync
112Negative vertical sync pulses
113.It sync-on-green
114Composite sync on green
115.El
116.El
117.Pp
118.Bd -literal
119 ------------------------------------------------------
120 |                           ^                        |
121 |                          vse                       |
122 |      (0,0)                                         |
123 |        *-----------------------------------        |
124 |        |                  ^        ^      |        |
125 |        |                 vbe       !      |        |
126 |        |                           !      |        |
127 |        |                           !      |        |
128 |\*[Lt]-hse   |\*[Lt]-hbe                      !      |\*[Lt]-hbs   |      |      |
129 |        |                           !      |   hss-\*[Gt]| hse-\*[Gt]| hbe-\*[Gt]|
130 |        |                          hi      |        |      |      |
131 |        |                           !      |        |
132 |        |                           !      |        |
133 |        |\*[Le]=========== wid =========+=====\*[Gt]|        |
134 |        |                           !      |        |
135 |        |                           !      |        |
136 |        |                           !      |        |
137 |        |                           v      |        |
138 |        ------------------------------------        |
139 |                           ^                        |
140 |                          vbs                       |
141 |                                                    |
142 ------------------------------------------------------
143                             ^
144                            vss
145                        - ------- -
146                             ^
147                            vse
148                        - ------- -
149                             ^
150                            vbe
151.Ed
152.Sh SEE ALSO
153.Xr console 4 ,
154.Xr grfcl 4 ,
155.Xr grfcv 4 ,
156.Xr grfcv3d 4 ,
157.Xr grfet 4 ,
158.Xr grfrh 4 ,
159.Xr grfrt 4 ,
160.Xr grful 4 ,
161.Xr iteconfig 8
162.Sh HISTORY
163The
164.Nm
165command first appeared in
166.Nx 1.0 .
167.Pp
168The mode definition file changed two times.
169.Pp
170In
171.Nx 1.0
172all horizontal values were videoclock cycle values instead of pixel values:
173.Pp
174 num clk      wid hi  dep hbs hss hse hbe ht  vbs vss vse vbe  vt
175.br
176 1   31000000 640 480  8   80  86  96 102 104 480 489 492  517  520
177 2   31000000 640 480  8   80  86  96 102 104 240 244 246  258  260
178 3   31000000 640 480  8   80  86  96 102 104 960 978 984 1034 1040
179.Pp
180In
181.Nx 1.1
182and
183.Nx 1.2 :
184.Pp
185 num clk      wid hi  dep hbs hss hse hbe ht  vbs vss vse vbe  vt
186.br
187 1   31000000 640 480  8  640 688 768 816 832 480 489 492  517  520
188 2   31000000 640 480  8  640 688 768 816 832 240 244 246  258  260
189 3   31000000 640 480  8  640 688 768 816 832 960 978 984 1034 1040
190.Pp
191the vertical values were used to select the interlace or doublescan mode.
192All vertical values were half the width for the interlace mode and twice
193the width for the doublescan mode.
194.Pp
195Beginning with
196.Nx 1.3 :
197.Pp
198 num clk      wid hi  dep hbs hss hse ht  vbs vss vse vt  flags
199.br
200 1   31000000 640 480  8  640 688 768 832 480 489 492 520 default
201 2   31000000 640 480  8  640 688 768 832 480 489 492 520 interlace
202 3   31000000 640 480  8  640 688 768 832 480 489 492 520 doublescan
203 4   31000000 640 480  8  640 688 768 832 480 489 492 520 +hsync +vsync
204.Pp
205hbe and vbe are computed in the grf drivers.
206.Sh BUGS
207.Nm
208can not set the modes for
209.Pa /dev/grf1 ,
210.Pa /dev/grf2
211and
212.Pa /dev/grf4
213and it will not work for
214.Pa /dev/grf0 .
215