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.
86 print the current or expected register values at appropriate points depending on
90 print a trace of the functions called.
93 print a verbose trace of the functions called.
98 as the VGA database rather than
109 are numbers specifying the display height, width, and depth respectively.
110 The mode must appear in
112 as a value for one of the monitor entries.
116 .BR 1024x768x[18][i] ,
117 .BR 1280x1024x[18][i] ,
123 indicates interlaced operation.
129 and configures the display to have a virtual
130 screen of the given size.
131 The physical screen will pan to follow the mouse.
132 This is useful on displays with small screens,
133 such as laptops, but can be confusing.
135 Using the monitor name
139 to use VESA BIOS calls to configure the display.
140 Also, if our VGA controller can't be found in
143 will try the VESA calls.
144 There are no entries for the
148 For a list of available VESA modes, use
154 Loading the special mode
161 switches out of graphics mode back into text mode.
162 It uses the VESA BIOS.
164 Change the display resolution:
167 aux/vga -l 1600x1200x8
170 Print the current VGA controller registers.
171 It is usually best to redirect the output of a
173 command to a file to prevent confusion caused by using the VGA
174 controller while trying to dump its state:
180 Force the VGA controller to a known state:
186 Print the current VGA controller state and what would be loaded
187 into it for a new resolution, but don't do the load:
190 aux/vga -ip 1376x1024x8 >/tmp/x
197 display type (default
201 VGA configuration file.
203 .B /sys/src/cmd/aux/vga
210 makes every effort possible to verify that the mode it is about
211 to load is valid and will bail out with an error message
212 before setting any registers if it encounters a problem.
213 However, things can go wrong, especially when playing with a
214 new VGA controller or monitor setting.
215 It is useful in such cases to have
216 the above command for setting the controller to a known state