xref: /netbsd-src/usr.sbin/grfconfig/grfconfig.8 (revision ace896fac114f559f7469472324fbe68bbe378e5)
1.\"	$NetBSD: grfconfig.8,v 1.7 1997/10/20 14:31:18 veego 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 NetBSD
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.Pp
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.
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.Pp
116.El
117.Pp
118.El
119.Pp
120.nf
121 ------------------------------------------------------
122 |                           ^                        |
123 |                          vse                       |
124 |      (0,0)                                         |
125 |        *-----------------------------------        |
126 |        |                  ^        ^      |        |
127 |        |                 vbe       !      |        |
128 |        |                           !      |        |
129 |        |                           !      |        |
130 |<-hse   |<-hbe                      !      |<-hbs   |      |      |
131 |        |                           !      |   hss->| hse->| hbe->|
132 |        |                          hi      |        |      |      |
133 |        |                           !      |        |
134 |        |                           !      |        |
135 |        |<============ wid =========+=====>|        |
136 |        |                           !      |        |
137 |        |                           !      |        |
138 |        |                           !      |        |
139 |        |                           v      |        |
140 |        ------------------------------------        |
141 |                           ^                        |
142 |                          vbs                       |
143 |                                                    |
144 ------------------------------------------------------
145                             ^
146                            vss
147                        - ------- -
148                             ^
149                            vse
150                        - ------- -
151                             ^
152                            vbe
153
154
155.Sh SEE ALSO
156.Xr console 4 ,
157.Xr iteconfig 8 ,
158.Xr grfcl 4 ,
159.Xr grfcv 4 ,
160.Xr grfcv3d 4 ,
161.Xr grfet 4 ,
162.Xr grfrh 4 ,
163.Xr grfrt 4 ,
164.Xr grful 4
165.Sh HISTORY
166The
167.Nm ""
168command first appeared in
169.Nx 1.0
170.Pp
171The mode definition file changed two times.
172.Pp
173In
174.Nx 1.0
175all horizontal values were videoclock cycle values instead of pixel values:
176.Pp
177 num clk      wid hi  dep hbs hss hse hbe ht  vbs vss vse vbe  vt
178.br
179 1   31000000 640 480  8   80  86  96 102 104 480 489 492  517  520
180 2   31000000 640 480  8   80  86  96 102 104 240 244 246  258  260
181 3   31000000 640 480  8   80  86  96 102 104 960 978 984 1034 1040
182.Pp
183In
184.Nx 1.1
185and
186.Nx 1.2 :
187.Pp
188 num clk      wid hi  dep hbs hss hse hbe ht  vbs vss vse vbe  vt
189.br
190 1   31000000 640 480  8  640 688 768 816 832 480 489 492  517  520
191 2   31000000 640 480  8  640 688 768 816 832 240 244 246  258  260
192 3   31000000 640 480  8  640 688 768 816 832 960 978 984 1034 1040
193.Pp
194the vertical values were used to select the interlace or doublescan mode.
195All vertical values were half the width for the interlace mode and twice
196the width for the doublescan mode.
197.Pp
198Beginning with
199.Nx 1.3 :
200.Pp
201 num clk      wid hi  dep hbs hss hse ht  vbs vss vse vt  flags
202.br
203 1   31000000 640 480  8  640 688 768 832 480 489 492 520 default
204 2   31000000 640 480  8  640 688 768 832 480 489 492 520 interlace
205 3   31000000 640 480  8  640 688 768 832 480 489 492 520 doublescan
206 4   31000000 640 480  8  640 688 768 832 480 489 492 520 +hsync +vsync
207.Pp
208hbe and vbe are computed in the grf drivers.
209.Pp
210.Sh BUGS
211.Nm ""
212can not set the modes for /dev/grf1, /dev/grf2 and /dev/grf4
213and it will not work for /dev/grf0.
214
215