1 .\" $NetBSD: vga.4,v 1.14 2003/05/06 08:42:19 wiz Exp $
3 .\" Copyright (c) 1999, 2000
4 .\" Matthias Drochner. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd VGA graphics driver for wscons
34 .Cd options VGA_CONSOLE_SCREENTYPE="??x??"
35 .Cd options VGA_CONSOLE_ATI_BROKEN_FONTSEL
39 .Cd "wsdisplay* at vga? console ?"
43 graphics hardware within the
46 It doesn't provide direct device
47 driver entry points but makes its functions available via
54 driver supports text-mode hardware acceleration on the
57 Currently, the driver runs the display with a 720\(mu400 pixel resolution.
60 text-mode accelerator divides the display into fixed-size
62 The size of the character cells specifies the number of characters available
63 on the screen and the resolution of the font.
68 driver are described by the number of character cells available
70 See below for a complete list of supported screen modes in the
74 Each screen mode requires a suitable font to be loaded into
77 utility, before the screen can be used.
79 and the screen mode must match for use on the 720\(mu400 display.
80 For example, a screen mode with 80 columns and 40 rows requires
81 a font where each character is 8 pixels wide and 10 pixels high.
84 driver can display fonts of the original
86 type and ISO-8859-1 encoded fonts.
87 A builtin font of 256 characters and 8\(mu16 pixels is always
94 hardware supports the display of 16 different colours at the same
98 colour systems to use fonts with 512 characters at any one time.
99 This is due to the fact that with VGA adapters one can specify an
100 alternate font to be used instead of bright letters
101 (used for highlighting on the screen).
102 As an experimental feature, the
107 driver distribution can be used too if the kernel option
108 .Dq WSCONS_SUPPORT_PCVTFONTS
109 was set at compile time.
110 This is only useful with the
112 screen types; a font containing the
114 range of characters must be available too on this screen.
116 Currently, the following screen types are supported:
121 text mode with 80 columns and 25 rows.
122 Sixteen different colors can be displayed at the same time.
123 Characters are 8\(mu16 pixels, and a font consists of 256 characters.
125 is a modified version of the previous.
126 It only allows 8 colors to be displayed.
127 In exchange, it can access two fonts at the same time, so that
128 512 different characters can be displayed.
130 A text mode with 80 columns and 40 rows.
131 Similar to the standard mode, 16 colors and 256 characters are
133 Characters are 8\(mu10 pixels.
134 For this mode to be useful, a font of that character size must
139 a version with 512 displayable characters but 8 colors only.
141 A text mode with 80 columns and 50 rows.
142 Similar to the standard mode, 16 colors and 256 characters are
144 Characters are 8\(mu8 pixels.
145 For this mode to be useful, a font of that character size must
150 a version with 512 displayable characters but 8 colors only.
154 screen type which displays 24 lines only.
155 It uses the standard 8x16 VGA font.
156 This mode might be useful for applications which depend on closer
162 but with 512 character slots and 8 colors.
165 If you have an Ati videocard and you are experiencing problems with
166 fonts other than 80x25, you can try to set
167 .Cd options VGA_CONSOLE_ATI_BROKEN_FONTSEL
168 in you kernel configuration and see if it helps.
172 driver supports multiple virtual screens on one physical
174 The screens allocated on one display can be of different
176 The type is determined at the time the virtual screen is created
177 and can't be changed later.
178 Screens are either created at kernel startup
179 (then the default type is used) or later with help of the
190 Only a subset of the possible text modes is supported.
193 cards are supposed to emulate an
195 if a monochrome display is connected.
196 In this case, the device will naturally not support colors at
197 all, but offer the capability to display underlined characters
205 screen types will not be available.
206 This mode of operation has not been tested.