3 vga \- configure a VGA card
33 configures a VGA controller for various display sizes and depths.
34 Using the monitor type specified in
44 uses the database of known VGA controllers and monitors in
49 the display via the devices provided by
54 use the VGA database entry corresponding to
57 \fL0xC0045="Stealth 64 DRAM Vers. 2.02"\fR)
58 rather than looking for identifying strings in the BIOS
62 dump the BIOS memory (in hex) to standard output and exit.
65 disable the use of the hardware graphics cursor.
68 include the color palette in whatever actions are performed,
69 usually printing the contents.
74 display the register values that will be loaded.
77 load the desired mode.
84 is usually set by including it in the
86 file read by the PC boot program.
89 print the current or expected register values at appropriate points depending on
93 print a trace of the functions called.
96 print a verbose trace of the functions called.
99 can be used to change the tilt of the screen.
112 as the VGA database rather than
117 .IB X x Y x Z[,S][,#N]
123 are numbers specifying the display height, width, and depth respectively.
125 is scaling mode, either
129 not specifying it disables scaling altogether.
131 is used to switch to a specific display using its index
134 The mode must appear in
136 as a value for one of the monitor entries.
140 .BR 1024x768x[18][i] ,
141 .BR 1280x1024x[18][i] ,
147 indicates interlaced operation.
153 and configures the display to have a virtual
154 screen of the given size.
156 Using the monitor name
160 to use VESA BIOS calls to configure the display.
161 Also, if our VGA controller can't be found in
164 will try the VESA calls.
165 There are no entries for the
169 For a list of available VESA modes and connected displays, use
175 Loading the special mode
182 switches out of graphics mode back into text mode.
183 It uses the VESA BIOS.
185 Change the display resolution:
188 aux/vga -l 1600x1200x8
191 Show connected and active displays:
194 aux/vga -m vesa -p | grep dsp
199 and load a specific mode:
202 aux/vga -m vesa -l '1920x1080x16,#4'
205 Print the current VGA controller registers.
206 It is usually best to redirect the output of a
208 command to a file to prevent confusion caused by using the VGA
209 controller while trying to dump its state:
215 Force the VGA controller to a known state:
221 Print the current VGA controller state and what would be loaded
222 into it for a new resolution, but don't do the load:
225 aux/vga -ip 1376x1024x8 >/tmp/x
232 display type (default
236 VGA configuration file.
238 .B /sys/src/cmd/aux/vga
244 makes every effort possible to verify that the mode it is about
245 to load is valid and will bail out with an error message
246 before setting any registers if it encounters a problem.
247 However, things can go wrong, especially when playing with a
248 new VGA controller or monitor setting.
249 It is useful in such cases to have
250 the above command for setting the controller to a known state
253 Scaling modes currently work with Intel and NVIDIA video
254 adapters only, using VESA. Intel doesn't support
258 Display switching currently works with Intel video adapters