3 vga \- configure a VGA card
29 configures a VGA controller for various display sizes and depths.
30 Using the monitor type specified in
40 uses the database of known VGA controllers and monitors in
45 the display via the devices provided by
50 use the VGA database entry corresponding to
53 \fL0xC0045="Stealth 64 DRAM Vers. 2.02"\fR)
54 rather than looking for identifying strings in the BIOS
58 dump the BIOS memory (in hex) to standard output and exit.
61 disable the use of the hardware graphics cursor.
64 include the color palette in whatever actions are performed,
65 usually printing the contents.
70 display the register values that will be loaded.
73 load the desired mode.
80 is usually set by including it in the
82 file read by the PC boot program.
85 print the current or expected register values at appropriate points depending on
89 print a trace of the functions called.
92 print a verbose trace of the functions called.
97 as the VGA database rather than
108 are numbers specifying the display height, width, and depth respectively.
109 The mode must appear in
111 as a value for one of the monitor entries.
115 .BR 1024x768x[18][i] ,
116 .BR 1280x1024x[18][i] ,
122 indicates interlaced operation.
128 and configures the display to have a virtual
129 screen of the given size.
130 The physical screen will pan to follow the mouse.
131 This is useful on displays with small screens,
132 such as laptops, but can be confusing.
134 Using the monitor name
138 to use VESA BIOS calls to configure the display.
139 Also, if our VGA controller can't be found in
142 will try the VESA calls.
143 There are no entries for the
147 For a list of available VESA modes, use
153 Loading the special mode
160 switches out of graphics mode back into text mode.
161 It uses the VESA BIOS.
163 Change the display resolution:
166 aux/vga -l 1600x1200x8
169 Print the current VGA controller registers.
170 It is usually best to redirect the output of a
172 command to a file to prevent confusion caused by using the VGA
173 controller while trying to dump its state:
179 Force the VGA controller to a known state:
185 Print the current VGA controller state and what would be loaded
186 into it for a new resolution, but don't do the load:
189 aux/vga -ip 1376x1024x8 >/tmp/x
196 display type (default
200 VGA configuration file.
202 .B /sys/src/cmd/aux/vga
208 makes every effort possible to verify that the mode it is about
209 to load is valid and will bail out with an error message
210 before setting any registers if it encounters a problem.
211 However, things can go wrong, especially when playing with a
212 new VGA controller or monitor setting.
213 It is useful in such cases to have
214 the above command for setting the controller to a known state